Skip to content

Clean up versioned bucket objects after put-object e2e specs - #1628

Merged
aramprice merged 1 commit into
mainfrom
fix/s3-validator-e2e-versioned-cleanup
Nov 19, 2026
Merged

aramprice merged 1 commit into
mainfrom
fix/s3-validator-e2e-versioned-cleanup

Conversation

@aramprice

@aramprice aramprice commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Problem

bbr-cli/test-build-s3-config-validator has failed consistently since build 118 (most recently #124). Every versioned spec times out after 20s at * Can get object versions ..., while all unversioned specs pass.

CanGetObjectVersions (internal/s3/s3client.go) issues one HeadObject per object version, serially. The --validate-put-object specs write delete_me to the versioned e2e bucket twice per build and never remove it. Each write adds a version that is never removed, so the scan grew until it exceeded the timeout. The failures went from intermittent (115, 118) to all four versioned specs (124).

Change

  • Add an AfterEach to the versioned --validate-put-object context that waits for the validator to exit, then deletes every version of delete_me.
  • Raise the four versioned Eventually timeouts from 20s to 60s, matching the rest of the file. 5cd6767 bumped the others but left these at the 20s set in 7ee6f8d.

Notes

  • The bucket's existing backlog of delete_me versions has been purged manually, and a lifecycle rule (NoncurrentVersionExpiration: 1 day on prefix delete_me) has been added to the bucket.
  • Confirmed that the CI role (assumed via AWS_ASSUMED_ROLE_ARN with the CI access key) has the permissions the new AfterEach needs on ci-bbr-cli-s3-validator-e2e-versioned: listing versions under delete_me (s3:ListBucketVersions) and deleting a specific version of delete_me (s3:DeleteObjectVersion) both succeeded.
  • Verified locally with go vet and by compiling the test package; the e2e suite needs the CI credentials, so it will be exercised by the pipeline.

🤖 Generated with Claude Code

test-build-s3-config-validator has failed consistently since build 118.
Every versioned spec times out at "Can get object versions" while the
unversioned specs pass.

CanGetObjectVersions issues a HeadObject for every version in the bucket.
The --validate-put-object specs write delete_me to the versioned e2e
bucket on every run and never remove it, so versions accumulated until
the serial scan exceeded the 20s Eventually timeout.

Delete every delete_me version after each versioned put-object spec so
the bucket stays bounded. Also raise the four versioned timeouts to 60s,
matching the rest of the file; 5cd6767 bumped the unversioned specs but
left these at the 20s set in 7ee6f8d.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aramprice
aramprice enabled auto-merge (rebase) November 18, 2026 21:59
@aramprice
aramprice requested review from a team, Alphasite and s4heid and removed request for a team November 18, 2026 22:00
@aramprice
aramprice disabled auto-merge November 18, 2026 22:00
@aramprice aramprice moved this from Inbox to Pending Review | Discussion in Foundational Infrastructure Working Group Nov 19, 2026
@aramprice
aramprice enabled auto-merge (rebase) November 19, 2026 16:13
@aramprice
aramprice merged commit 37c2c97 into main Nov 19, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from Pending Review | Discussion to Pending Merge | Prioritized in Foundational Infrastructure Working Group Nov 19, 2026
@aramprice
aramprice deleted the fix/s3-validator-e2e-versioned-cleanup branch November 19, 2026 19:03
@github-project-automation github-project-automation Bot moved this from Pending Merge | Prioritized to Done in Foundational Infrastructure Working Group Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants