Skip to content

feat: Add workflow URL to EC2 instance tags #1448

feat: Add workflow URL to EC2 instance tags

feat: Add workflow URL to EC2 instance tags #1448

Re-run triggered July 14, 2025 05:08
Status Failure
Total duration 1m 30s
Artifacts

lambda.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
src/scale-runners/scale-up.test.ts > scaleUp with public GH > on repo level > creates a runner with correct config and labels: lambdas/functions/control-plane/src/scale-runners/scale-up.test.ts#L574
AssertionError: expected "spy" to be called with arguments: [ { …(9) } ] Received: 1st spy call: [ { + "amiIdSsmParameterName": undefined, "ec2instanceCriteria": { "instanceAllocationStrategy": "lowest-price", "instanceTypes": [ "m5.large", ], + "maxSpotPrice": undefined, "targetCapacityType": "spot", }, "environment": "unit-test-environment", + "githubJobId": "1", "launchTemplateName": "lt-1", "numberOfRunners": 1, "onDemandFailoverOnError": [], "runnerOwner": "Codertocat/hello-world", "runnerType": "Repo", "subnets": [ "subnet-123", ], "tracingEnabled": false, + "workflowUrl": undefined, }, ] Number of calls: 1 ❯ src/scale-runners/scale-up.test.ts:574:28
src/scale-runners/scale-up.test.ts > scaleUp with public GH > on org level > creates a runner with labels in s specific group: lambdas/functions/control-plane/src/scale-runners/scale-up.test.ts#L531
AssertionError: expected "spy" to be called with arguments: [ { …(9) } ] Received: 1st spy call: [ { + "amiIdSsmParameterName": undefined, "ec2instanceCriteria": { "instanceAllocationStrategy": "lowest-price", "instanceTypes": [ "m5.large", ], + "maxSpotPrice": undefined, "targetCapacityType": "spot", }, "environment": "unit-test-environment", + "githubJobId": "1", "launchTemplateName": "lt-1", "numberOfRunners": 1, "onDemandFailoverOnError": [], "runnerOwner": "Codertocat", "runnerType": "Org", "subnets": [ "subnet-123", ], "tracingEnabled": false, + "workflowUrl": undefined, }, ] Number of calls: 1 ❯ src/scale-runners/scale-up.test.ts:531:28
src/scale-runners/scale-up.test.ts > scaleUp with public GH > on org level > creates a runner with correct config: lambdas/functions/control-plane/src/scale-runners/scale-up.test.ts#L524
AssertionError: expected "spy" to be called with arguments: [ { …(9) } ] Received: 1st spy call: [ { + "amiIdSsmParameterName": undefined, "ec2instanceCriteria": { "instanceAllocationStrategy": "lowest-price", "instanceTypes": [ "m5.large", ], + "maxSpotPrice": undefined, "targetCapacityType": "spot", }, "environment": "unit-test-environment", + "githubJobId": "1", "launchTemplateName": "lt-1", "numberOfRunners": 1, "onDemandFailoverOnError": [], "runnerOwner": "Codertocat", "runnerType": "Org", "subnets": [ "subnet-123", ], "tracingEnabled": false, + "workflowUrl": undefined, }, ] Number of calls: 1 ❯ src/scale-runners/scale-up.test.ts:524:28
src/scale-runners/scale-up.test.ts > scaleUp with GHES > on repo level > creates a runner and ensure the group argument is ignored: lambdas/functions/control-plane/src/scale-runners/scale-up.test.ts#L450
AssertionError: expected "spy" to be called with arguments: [ { …(9) } ] Received: 1st spy call: [ { + "amiIdSsmParameterName": undefined, "ec2instanceCriteria": { "instanceAllocationStrategy": "lowest-price", "instanceTypes": [ "m5.large", ], + "maxSpotPrice": undefined, "targetCapacityType": "spot", }, "environment": "unit-test-environment", + "githubJobId": "1", "launchTemplateName": "lt-1", "numberOfRunners": 1, "onDemandFailoverOnError": [], "runnerOwner": "Codertocat/hello-world", "runnerType": "Repo", "subnets": [ "subnet-123", ], "tracingEnabled": false, + "workflowUrl": undefined, }, ] Number of calls: 1 ❯ src/scale-runners/scale-up.test.ts:450:28
src/scale-runners/scale-up.test.ts > scaleUp with GHES > on repo level > creates a runner with correct config and labels: lambdas/functions/control-plane/src/scale-runners/scale-up.test.ts#L443
AssertionError: expected "spy" to be called with arguments: [ { …(9) } ] Received: 1st spy call: [ { + "amiIdSsmParameterName": undefined, "ec2instanceCriteria": { "instanceAllocationStrategy": "lowest-price", "instanceTypes": [ "m5.large", ], + "maxSpotPrice": undefined, "targetCapacityType": "spot", }, "environment": "unit-test-environment", + "githubJobId": "1", "launchTemplateName": "lt-1", "numberOfRunners": 1, "onDemandFailoverOnError": [], "runnerOwner": "Codertocat/hello-world", "runnerType": "Repo", "subnets": [ "subnet-123", ], "tracingEnabled": false, + "workflowUrl": undefined, }, ] Number of calls: 1 ❯ src/scale-runners/scale-up.test.ts:443:28
src/scale-runners/scale-up.test.ts > scaleUp with GHES > on org level > creates a runner with ami id override from ssm parameter: lambdas/functions/control-plane/src/scale-runners/scale-up.test.ts#L248
AssertionError: expected "spy" to be called with arguments: [ { …(10) } ] Received: 1st spy call: @@ -4,19 +4,22 @@ "ec2instanceCriteria": { "instanceAllocationStrategy": "lowest-price", "instanceTypes": [ "m5.large", ], + "maxSpotPrice": undefined, "targetCapacityType": "spot", }, "environment": "unit-test-environment", + "githubJobId": "1", "launchTemplateName": "lt-1", "numberOfRunners": 1, "onDemandFailoverOnError": [], "runnerOwner": "Codertocat", "runnerType": "Org", "subnets": [ "subnet-123", ], "tracingEnabled": false, + "workflowUrl": undefined, }, ] Number of calls: 1 ❯ src/scale-runners/scale-up.test.ts:248:28
src/scale-runners/scale-up.test.ts > scaleUp with GHES > on org level > creates a runner with labels in a specific group: lambdas/functions/control-plane/src/scale-runners/scale-up.test.ts#L242
AssertionError: expected "spy" to be called with arguments: [ { …(9) } ] Received: 1st spy call: [ { + "amiIdSsmParameterName": undefined, "ec2instanceCriteria": { "instanceAllocationStrategy": "lowest-price", "instanceTypes": [ "m5.large", ], + "maxSpotPrice": undefined, "targetCapacityType": "spot", }, "environment": "unit-test-environment", + "githubJobId": "1", "launchTemplateName": "lt-1", "numberOfRunners": 1, "onDemandFailoverOnError": [], "runnerOwner": "Codertocat", "runnerType": "Org", "subnets": [ "subnet-123", ], "tracingEnabled": false, + "workflowUrl": undefined, }, ] Number of calls: 1 ❯ src/scale-runners/scale-up.test.ts:242:28
src/scale-runners/scale-up.test.ts > scaleUp with GHES > on org level > creates a runner with correct config: lambdas/functions/control-plane/src/scale-runners/scale-up.test.ts#L235
AssertionError: expected "spy" to be called with arguments: [ { …(9) } ] Received: 1st spy call: [ { + "amiIdSsmParameterName": undefined, "ec2instanceCriteria": { "instanceAllocationStrategy": "lowest-price", "instanceTypes": [ "m5.large", ], + "maxSpotPrice": undefined, "targetCapacityType": "spot", }, "environment": "unit-test-environment", + "githubJobId": "1", "launchTemplateName": "lt-1", "numberOfRunners": 1, "onDemandFailoverOnError": [], "runnerOwner": "Codertocat", "runnerType": "Org", "subnets": [ "subnet-123", ], "tracingEnabled": false, + "workflowUrl": undefined, }, ] Number of calls: 1 ❯ src/scale-runners/scale-up.test.ts:235:28
src/runners/dispatch.test.ts > Dispatcher > handle work flow job events > should sort matcher with exact first.: lambdas/functions/webhook/src/runners/dispatch.test.ts#L145
AssertionError: expected "sendActionRequest" to be called with arguments: [ { id: 3169272040, …(6) } ] Received: 1st sendActionRequest call: @@ -5,7 +5,8 @@ "installationId": 0, "queueId": "match", "repoOwnerType": "Organization", "repositoryName": "terraform-aws-github-runner", "repositoryOwner": "github-aws-runners", + "workflowUrl": "https://api.github.com/repos/github-aws-runners/terraform-aws-github-runner/actions/runs/1068820843", }, ] Number of calls: 1 ❯ src/runners/dispatch.test.ts:145:33
src/runners/dispatch.test.ts > Dispatcher > handle work flow job events > should match labels: lambdas/functions/webhook/src/runners/dispatch.test.ts#L98
AssertionError: expected "sendActionRequest" to be called with arguments: [ { id: 3169272040, …(6) } ] Received: 1st sendActionRequest call: @@ -5,7 +5,8 @@ "installationId": 0, "queueId": "ubuntu-queue-id", "repoOwnerType": "Organization", "repositoryName": "terraform-aws-github-runner", "repositoryOwner": "github-aws-runners", + "workflowUrl": "https://api.github.com/repos/github-aws-runners/terraform-aws-github-runner/actions/runs/1068820843", }, ] Number of calls: 1 ❯ src/runners/dispatch.test.ts:98:33
build (22)
No files were found with the provided path: ./**/coverage. No artifacts will be uploaded.