Skip to content

Commit 2098ebb

Browse files
authored
Merge branch 'main' into feat-custom-scale-error
2 parents 9fb2553 + 47b6a29 commit 2098ebb

File tree

8 files changed

+216
-205
lines changed

8 files changed

+216
-205
lines changed

lambdas/functions/ami-housekeeper/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"dependencies": {
2727
"@aws-github-runner/aws-powertools-util": "*",
2828
"@aws-github-runner/aws-ssm-util": "*",
29-
"@aws-sdk/client-ec2": "^3.943.0",
30-
"@aws-sdk/client-ssm": "^3.943.0",
29+
"@aws-sdk/client-ec2": "^3.948.0",
30+
"@aws-sdk/client-ssm": "^3.948.0",
3131
"cron-parser": "^5.4.0"
3232
},
3333
"nx": {

lambdas/functions/control-plane/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"@aws-github-runner/aws-powertools-util": "*",
3434
"@aws-github-runner/aws-ssm-util": "*",
3535
"@aws-lambda-powertools/parameters": "^2.29.0",
36-
"@aws-sdk/client-ec2": "^3.943.0",
37-
"@aws-sdk/client-sqs": "^3.943.0",
36+
"@aws-sdk/client-ec2": "^3.948.0",
37+
"@aws-sdk/client-sqs": "^3.948.0",
3838
"@middy/core": "^6.4.5",
3939
"@octokit/auth-app": "8.1.2",
4040
"@octokit/core": "7.0.6",

lambdas/functions/gh-agent-syncer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
},
2929
"dependencies": {
3030
"@aws-github-runner/aws-powertools-util": "*",
31-
"@aws-sdk/client-s3": "^3.943.0",
32-
"@aws-sdk/lib-storage": "^3.943.0",
31+
"@aws-sdk/client-s3": "^3.948.0",
32+
"@aws-sdk/lib-storage": "^3.948.0",
3333
"@middy/core": "^6.4.5",
3434
"@octokit/rest": "22.0.1",
3535
"axios": "^1.13.2"

lambdas/functions/termination-watcher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"dependencies": {
2626
"@aws-github-runner/aws-powertools-util": "*",
27-
"@aws-sdk/client-ec2": "^3.943.0",
27+
"@aws-sdk/client-ec2": "^3.948.0",
2828
"@middy/core": "^6.4.5"
2929
},
3030
"nx": {

lambdas/functions/webhook/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"all": "yarn build && yarn format && yarn lint && yarn test"
1818
},
1919
"devDependencies": {
20-
"@aws-sdk/client-eventbridge": "^3.943.0",
20+
"@aws-sdk/client-eventbridge": "^3.948.0",
2121
"@octokit/webhooks-types": "^7.6.1",
2222
"@types/aws-lambda": "^8.10.155",
2323
"@types/express": "^5.0.3",
@@ -30,11 +30,11 @@
3030
"dependencies": {
3131
"@aws-github-runner/aws-powertools-util": "*",
3232
"@aws-github-runner/aws-ssm-util": "*",
33-
"@aws-sdk/client-sqs": "^3.943.0",
33+
"@aws-sdk/client-sqs": "^3.948.0",
3434
"@middy/core": "^6.4.5",
3535
"@octokit/rest": "22.0.1",
3636
"@octokit/types": "^16.0.0",
37-
"@octokit/webhooks": "^14.1.3",
37+
"@octokit/webhooks": "^14.2.0",
3838
"aws-lambda": "^1.0.7"
3939
},
4040
"nx": {

lambdas/functions/webhook/src/runners/dispatch.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ async function handleWorkflowJob(
3636
body: `Workflow job not queued, not dispatching to queue.`,
3737
};
3838
}
39+
40+
logger.debug(
41+
`Processing workflow job event - Repository: ${body.repository.full_name}, ` +
42+
`Job ID: ${body.workflow_job.id}, Job Name: ${body.workflow_job.name}, ` +
43+
`Run ID: ${body.workflow_job.run_id}, Labels: ${JSON.stringify(body.workflow_job.labels)}`,
44+
);
3945
// sort the queuesConfig by order of matcher config exact match, with all true matches lined up ahead.
4046
matcherConfig.sort((a, b) => {
4147
return a.matcherConfig.exactMatch === b.matcherConfig.exactMatch ? 0 : a.matcherConfig.exactMatch ? -1 : 1;
@@ -51,7 +57,10 @@ async function handleWorkflowJob(
5157
queueId: queue.id,
5258
repoOwnerType: body.repository.owner.type,
5359
});
54-
logger.info(`Successfully dispatched job for ${body.repository.full_name} to the queue ${queue.id}`);
60+
logger.info(
61+
`Successfully dispatched job for ${body.repository.full_name} to the queue ${queue.id} - ` +
62+
`Job ID: ${body.workflow_job.id}, Job Name: ${body.workflow_job.name}, Run ID: ${body.workflow_job.run_id}`,
63+
);
5564
return {
5665
statusCode: 201,
5766
body: `Successfully queued job for ${body.repository.full_name} to the queue ${queue.id}`,
@@ -61,7 +70,9 @@ async function handleWorkflowJob(
6170
const notAcceptedErrorMsg = `Received event contains runner labels '${body.workflow_job.labels}' from '${
6271
body.repository.full_name
6372
}' that are not accepted.`;
64-
logger.warn(notAcceptedErrorMsg);
73+
logger.warn(
74+
`${notAcceptedErrorMsg} - Job ID: ${body.workflow_job.id}, Job Name: ${body.workflow_job.name}, Run ID: ${body.workflow_job.run_id}`,
75+
);
6576
return { statusCode: 202, body: notAcceptedErrorMsg };
6677
}
6778

lambdas/libs/aws-ssm-util/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"dependencies": {
2525
"@aws-github-runner/aws-powertools-util": "*",
26-
"@aws-sdk/client-ssm": "^3.943.0"
26+
"@aws-sdk/client-ssm": "^3.948.0"
2727
},
2828
"nx": {
2929
"includedScripts": [

0 commit comments

Comments
 (0)