Skip to content

chore(storage): stop flaky uniform bucket-level access ACL acceptance tests - #36767

Merged
amanda-tarafa merged 1 commit into
mainfrom
chore/storage-ubla-acl-flake
Dec 3, 2026
Merged

amanda-tarafa merged 1 commit into
mainfrom
chore/storage-ubla-acl-flake

Conversation

@torreypayne

Copy link
Copy Markdown
Member

The two "unable to modify file ACL rules" tests in bucket_uniform_bucket_level_access_test.rb fail intermittently with Google::Cloud::InvalidArgumentError expected but nothing was raised (5 of the last 16 nightly runs), even after the suite's three whole-test retries. Right after uniform bucket-level access is enabled, an object ACL write can still succeed for a short time.

Retry the must_raise expectation with try_with_backoff (up to 15 seconds) until the write is rejected. try_with_backoff gains an optional exceptions: argument so it can retry on Minitest::Assertion.

Verified with 10 consecutive runs on Ruby 4.0 and 3 on Ruby 3.2, none needing a whole-test retry.

Related to b/552162906.

@torreypayne
torreypayne added this pull request to stack #36770 December 2, 2026 19:42
@torreypayne
torreypayne marked this pull request as ready for review December 3, 2026 00:48
@torreypayne
torreypayne requested review from a team and yoshi-approver as code owners December 3, 2026 00:48
@torreypayne
torreypayne force-pushed the chore/storage-ubla-acl-flake branch from a5a67e7 to ca00fe5 Compare December 3, 2026 00:48
… tests

Right after uniform bucket-level access is enabled, an object ACL write
can still succeed for a short time, so the "unable to modify file ACL
rules" tests intermittently saw no InvalidArgumentError. Retry the
expectation with try_with_backoff, which now accepts the exception
classes to retry on, until the write is rejected.
@amanda-tarafa
amanda-tarafa force-pushed the chore/storage-ubla-acl-flake branch from 0cd5c0b to 6b3a1ec Compare December 3, 2026 03:59
@amanda-tarafa
amanda-tarafa merged commit 52fa754 into main Dec 3, 2026
20 checks passed
@amanda-tarafa
amanda-tarafa deleted the chore/storage-ubla-acl-flake branch December 3, 2026 04:34
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.

2 participants