Skip to content

fix(storage): resolve race condition in compose object test - #25

Open
mahendra-google wants to merge 1 commit into
mainfrom
fix/compose-object-test-flake
Open

fix(storage): resolve race condition in compose object test#25
mahendra-google wants to merge 1 commit into
mainfrom
fix/compose-object-test-flake

Conversation

@mahendra-google

@mahendra-google mahendra-google commented Aug 7, 2026

Copy link
Copy Markdown
Owner

This PR provides fix to the issue.
The flake occurred because ChangeDefaultStorageClassTest was changing the storage class of the shared bucket BucketNameGeneric to COLDLINE. When ComposeObjectTest ran concurrently, it failed with a BadRequest because it attempted to compose objects with mixed storage classes (Standard vs Coldline).
This change has removed a shared bucket BucketNameGeneric used in ChangeDefaultStorageClassTest to prevent modifying the default storage class of the shared BucketNameGeneric bucket, eliminating
test flakiness and mixed-storage-class compose errors in ComposeObjectTest

@mahendra-google
mahendra-google force-pushed the fix/compose-object-test-flake branch from 84fba94 to 1b74679 Compare August 7, 2026 13:05
- Use an isolated bucket in ChangeDefaultStorageClassTest to prevent modifying
the default storage class of the shared BucketNameGeneric bucket, eliminating
test flakiness and mixed-storage-class compose errors in ComposeObjectTest.

Fixes GoogleCloudPlatform#2038
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.

1 participant