Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: extend wait for bucket metadata consistency in system tests #1053

Merged
merged 3 commits into from
Jun 2, 2023

Conversation

andrewsg
Copy link
Contributor

No description provided.

@andrewsg andrewsg requested review from a team as code owners May 26, 2023 01:27
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: storage Issues related to the googleapis/python-storage API. labels May 26, 2023
# clean one each rerun. "unique_name" is unique per test iteration, not
# per test rerun.
global ebh_bucket_iteration
ebh_bucket_iteration += 1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not simply use uuid.uuid4().hex[:10] to have unique names without tracking?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I figured if we need to examine the artifacts or their logs later, having them in order would make it easier to determine which one we're looking for.

Copy link
Contributor

@cojenco cojenco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewing the flaky tests related to this caching change, let's also apply await_config_changes_propagate or appropriate retries around bucket metadata patches. Otherwise looks good, thank you!

i.e. https://github.com/googleapis/python-storage/blob/main/tests/system/test_bucket.py#L693-L694
i.e. https://github.com/googleapis/python-storage/blob/main/tests/system/test_bucket.py#L921-L938

@andrewsg
Copy link
Contributor Author

https://github.com/googleapis/python-storage/blob/main/tests/system/test_bucket.py#L693-L694

Surprisingly this error turned out to be related to the pytest-rerunfailures process and was not the root cause. It's fixed by changing the bucket to not be session-shared.

https://github.com/googleapis/python-storage/blob/main/tests/system/test_bucket.py#L921-L938

I'll take a look at this one now. Thanks!

@andrewsg
Copy link
Contributor Author

PTAL @cojenco

@andrewsg andrewsg added the owlbot:run Add this label to trigger the Owlbot post processor. label May 30, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 30, 2023
@cojenco cojenco added the owlbot:run Add this label to trigger the Owlbot post processor. label May 31, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/python-storage API. kokoro:force-run Add this label to force Kokoro to re-run the tests. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants