Run tests concurrently in CI#845
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #845 +/- ##
==========================================
- Coverage 88.52% 88.19% -0.34%
==========================================
Files 15 15
Lines 2989 2989
==========================================
- Hits 2646 2636 -10
- Misses 343 353 +10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
zhixiangli
reviewed
May 13, 2026
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.
This PR enables concurrent test execution in CI using
pytest-xdistto speed up the build process. It also addresses several test failures that were exposed by running against the emulator in a parallel environment.Key Changes
CI Infrastructure & Parallelization
pytest-xdist: Added-n autotopytestcalls in.github/workflows/ci.ymland addedpytest-xdisttoenvironment_gcsfs.yamlandpyproject.toml.gcsfs/tests/settings.pyto append the xdist worker ID (e.g.,_gw0) to bucket names. This ensures that parallel workers do not conflict by operating on the same buckets.ci.ymland setSTORAGE_EMULATOR_HOSTglobally. This ensures all workers share a single emulator instance rather than trying to spin up conflicting docker containers.Test Fixes & Cleanups
test_signon Emulator: Skipped this test entirely when running against the emulator. The emulator does not support signed URL validation.test_credentials_from_raw_tokenon Emulator: Skipped this test on the emulator because the emulator accepts any token, causing the test to fail when it expects an invalid credentials error.gcsfs/tests/fake-secret.jsonwhich was malformed (invalid PEM format) and causedDefaultCredentialsErrorin extended tests. Updated CI to usefake-service-account-credentials.jsonwhich contains a validly formatted dummy key.