Skip to content

test(storage): serialize transport tracing tests to fix flaky test - #6520

Open
vsharonlynn wants to merge 1 commit into
googleapis:mainfrom
vsharonlynn:fix-flake
Open

test(storage): serialize transport tracing tests to fix flaky test#6520
vsharonlynn wants to merge 1 commit into
googleapis:mainfrom
vsharonlynn:fix-flake

Conversation

@vsharonlynn

Copy link
Copy Markdown
Contributor

Fixes #6324 .

@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label Aug 24, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the integration tests in src/storage/src/storage/transport.rs to run serially by adding the #[serial] attribute from the serial_test crate. This change allows several previously ignored flaky tests, such as open_object_success, open_appendable_object_success, and open_appendable_object_finalize_success, to be re-enabled. I have no feedback to provide.

@codecov

codecov Bot commented Aug 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.65%. Comparing base (102298f) to head (b21ebaf).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6520      +/-   ##
==========================================
+ Coverage   96.39%   96.65%   +0.25%     
==========================================
  Files         301      301              
  Lines       84762    84751      -11     
==========================================
+ Hits        81706    81914     +208     
+ Misses       3056     2837     -219     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vsharonlynn
vsharonlynn marked this pull request as ready for review August 24, 2026 04:50
@vsharonlynn
vsharonlynn requested review from a team as code owners August 24, 2026 04:50
@joshuatants

joshuatants commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Out of curiosity, why did allowing the tests to run in parallel cause flakiness?

@coryan coryan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Out of curiosity, why did allowing the tests to run in parallel cause flakiness?

Because only one test can set the global tracing dispatcher at a time. However, this is unlikely to work. This is serializing all the tests in this module, but cargo runs the tests in the crate in parallel. Any other test setting the global will break you.

There is a way to set the dispatcher for the current task, but that has failed us elsewhere.

We are finding that all these tracing tests are flaky across the board. We may need to move to cargo nextest for CI. In the interim, I think it is safer to leave them disabled.

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 Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flake: storage appendable object tracing missing finalize

3 participants