Skip to content

chore(integ-tests): tests leak a testing bucket under Atmosphere - #1956

Draft
rix0rrr wants to merge 1 commit into
mainfrom
huijbers/do-delete-unmanaged-bucket
Draft

chore(integ-tests): tests leak a testing bucket under Atmosphere#1956
rix0rrr wants to merge 1 commit into
mainfrom
huijbers/do-delete-unmanaged-bucket

Conversation

@rix0rrr

@rix0rrr rix0rrr commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

The integ tests had a facility to clean up some stacks, and then clean up buckets that may be left behind by those tests.

When introducing Atmosphere, we made the assumption that all resources would be managed by stacks, and since Atmosphere would clean up the account by deleting all stacks there would be no need to run that specific cleanup task when running under atmosphere.

For most cases, rememberToDeleteBucket() was called as "just-in-case" mechanism, if the stack didn't fully delete for some reason or if the bucket was created with RemovalPolicy RETAIN. But for some cases, like in the "upgrade bootstrapping from a previous existing bootstrap bucket" case, there would be an unmanaged bucket being left behind that would only get cleaned up by the rememberToDeleteBucket() call.


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

The integ tests had a facility to clean up some stacks, and then clean
up buckets that may be left behind by those tests.

When introducing Atmosphere, we made the assumption that all resources
would be managed by stacks, and since Atmosphere would clean up the
account by deleting all stacks there would be no need to run that
specific cleanup task when running under atmosphere.

For most cases, `rememberToDeleteBucket()` was called as "just-in-case"
mechanism, if the stack didn't fully delete for some reason or if the
bucket was created with RemovalPolicy `RETAIN`. But for some cases,
like in the "upgrade bootstrapping from a previous existing bootstrap
bucket" case, there would be an unmanaged bucket being left behind that
would only get cleaned up by the `rememberToDeleteBucket()` call.
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.32%. Comparing base (05014c3) to head (07587b5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1956   +/-   ##
=======================================
  Coverage   91.32%   91.32%           
=======================================
  Files          79       79           
  Lines       12216    12216           
  Branches     1724     1724           
=======================================
  Hits        11156    11156           
  Misses       1025     1025           
  Partials       35       35           
Flag Coverage Δ
suite.unit 91.32% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants