Repository navigation
chore(storage): stop flaky uniform bucket-level access ACL acceptance tests - #36767
Merged
Merged
Conversation
torreypayne
marked this pull request as ready for review
December 3, 2026 00:48
torreypayne
force-pushed
the
chore/storage-ubla-acl-flake
branch
from
December 3, 2026 00:48
a5a67e7 to
ca00fe5
Compare
amanda-tarafa
approved these changes
Dec 3, 2026
amanda-tarafa
force-pushed
the
chore/storage-ubla-acl-flake
branch
from
December 3, 2026 03:53
ca00fe5 to
0cd5c0b
Compare
… 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
force-pushed
the
chore/storage-ubla-acl-flake
branch
from
December 3, 2026 03:59
0cd5c0b to
6b3a1ec
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The two "unable to modify file ACL rules" tests in
bucket_uniform_bucket_level_access_test.rbfail intermittently withGoogle::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_raiseexpectation withtry_with_backoff(up to 15 seconds) until the write is rejected.try_with_backoffgains an optionalexceptions:argument so it can retry onMinitest::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.