Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS CodeBuild GitHub Job Pruner #980

Merged
merged 6 commits into from
May 9, 2023
Merged

AWS CodeBuild GitHub Job Pruner #980

merged 6 commits into from
May 9, 2023

Conversation

skmcgrail
Copy link
Member

Description of changes:

  • Adds a lambda function to each stack which queries the active CodeBuild jobs for the stack's associated CodeBuild project and calls StopBuild on any CodeBuild batch that is stale (isn't the current HEAD commit of the pull request). This should help alleviate scenarios where we are hitting resource limits due to having a PR pushed to multiple times in a small window.
  • Lambda function emits a metric on how many builds are stopped for each project using the CloudWatch embedded metric format
  • Updates the CDK application to V2.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and
the ISC license.

justsmth
justsmth previously approved these changes May 2, 2023
tests/ci/cdk/app.py Outdated Show resolved Hide resolved
tests/ci/cdk/cdk/components.py Outdated Show resolved Hide resolved
@skmcgrail skmcgrail force-pushed the codebuild branch 2 times, most recently from e660c21 to fc2db1a Compare May 5, 2023 17:02
justsmth
justsmth previously approved these changes May 5, 2023
samuel40791765
samuel40791765 previously approved these changes May 5, 2023
@skmcgrail skmcgrail merged commit d66b1bd into aws:main May 9, 2023
@skmcgrail skmcgrail deleted the codebuild branch May 9, 2023 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants