-
Notifications
You must be signed in to change notification settings - Fork 121
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
ec2-test-framework enhancements and graviton 4 testing #1715
Conversation
82582e8
to
76273e5
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1715 +/- ##
=======================================
Coverage 78.35% 78.36%
=======================================
Files 573 573
Lines 96065 96123 +58
Branches 13764 13781 +17
=======================================
+ Hits 75270 75325 +55
+ Misses 20195 20194 -1
- Partials 600 604 +4 ☔ View full report in Codecov by Sentry. |
for reservation in ec2_describe_response.unwrap().reservations() { | ||
log::info!("Checking Instance {:?}", reservation.instances()); | ||
for instance in reservation.instances() { | ||
// Prune ec2 instances hanging more than 120 minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this also handle cleaning up duplicate instances in the case of second push to the same PR creating a new job and the results of the first job being unused?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To add to this, we should probably use tags on the instance to indicate the metadata about what pull request its related to, what the commit head is when you launch it with run-instances, and tag it with something to indicate that it is part of the ec2-test-framework. Then your filter here can be to look for that indicator tag, and then you can use the other tags with the PR number, head commit etc to determine if an instance should be nuked cause its an old push.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback Sean! Yeah it would be a bit more to support this, but doable.
I was planning on adding the CODEBUILD_SOURCE_VERSION
(which contains the commit hash) to the ec2 tags, then reuse a bit of your PR commit logic above to terminate the right instances.
I guess that coincides with your proposal, do let me know if there's any part of the puzzle I'm missing though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got things working and the ec2 instances are now pruned at the same pace as our Codebuild jobs.
04df854
to
f57697f
Compare
f57697f
to
b2a8b52
Compare
2b859e6
to
009f925
Compare
ef78581
to
f947c39
Compare
f947c39
to
76a70c0
Compare
## What's Changed * Added options to x509 tool by @ecdeye in #1696 * Add support to detect Neoverse V2 cores by @andrewhop in #1706 * Move OCSP functions for Ruby out of internal.h by @samuel40791765 in #1704 * Add aes-256-xts to EVP_get_cipherbyname by @torben-hansen in #1707 * Match using CMAKE_SYSTEM_PROCESSOR_LOWER by @justsmth in #1709 * Update MySQL to 9.0.0 by @skmcgrail in #1685 * [EC] Unify scalar multiplication for P-256/384/521 by @dkostic in #1693 * Adds const qualifier to ciphertext parameter in EVP_PKEY_decapsulate by @maddeleine in #1713 * Upstream merge 2024 06 24 by @nebeid in #1661 * NIST SP 800-108r1-upd1: KDF Counter Implementation by @skmcgrail in #1644 * Upstream merge 2024 07 09 by @nebeid in #1694 * Design for support of HMAC precomputed keys by @fabrice102 in #1574 * Fix for select point from table in ec_nistp scalar_mul by @dkostic in #1719 * X509toolcomparison by @ecdeye in #1714 * AWS-LC s2n-bignum update 2024-07-22 by @dkostic in #1718 * Add OpenVPN to CI by @smittals2 in #1705 * Lower required Go version, add CI test for specific version by @andrewhop in #1717 * ec2-test-framework enhancements and graviton 4 testing by @samuel40791765 in #1715 * sha + chacha: Move AArch64/X86-64 dispatching to C. by @justsmth in #1625 * Show number of pruned ec2 instances in dashboard by @samuel40791765 in #1728 * rsa and md5 tools by @ecdeye in #1722 * FIPS 203 IPD update: ML-KEM-IPD-768 and ML-KEM-IPD-1024 by @jakemas in #1724 * bump mysql CI to 9.0.1 by @samuel40791765 in #1727 * Support utility OCSP request functions by @samuel40791765 in #1708 * add support for OCSP_SINGLERESP functions by @samuel40791765 in #1703
Issues:
Resolves
P131897680
Description of changes:
Call-outs:
N/A
Testing:
Local fork CI run: samuel40791765#33
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.