Skip to content

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/AI-Hypercomputer/maxtext/pull/4513 from Shuwen-Fang:sort_one_sparsecore cccf4ecd7360fbb63557537ccc731eb4f5d0b102 - #4657

Merged
copybara-service[bot] merged 2 commits into
mainfrom
test_955639639
Jul 29, 2026
Merged

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

FUTURE_COPYBARA_INTEGRATE_REVIEW=#4513 from Shuwen-Fang:sort_one_sparsecore cccf4ec

`load_dynamic.py` imports `google.cloud.storage` at module scope, which
breaks pytest collection of `tests/unit/checkpointing_test.py` in
decoupled mode (`DECOUPLE_GCLOUD=TRUE`), where `google-cloud-storage` is
intentionally not installed. Same failure and same fix as #4003 for
`utils/utils.py`, following the existing `gcloud_stub` pattern.

- `load_dynamic.py`: bind `storage = gcs_storage()` instead of importing
  `google.cloud.storage` directly.
- `checkpointing_test.py`: three tests patched
  `google.cloud.storage.Client`, which cannot be resolved when the
  package is absent. Patch the module-level `load_dynamic.storage`
  binding instead, matching the existing `gcs_storage` test in the same
  file.

Non-decoupled behavior is unchanged: `gcs_storage()` returns the real
`google.cloud.storage` module when it is installed.
@copybara-service
copybara-service Bot merged commit 484fec1 into main Jul 29, 2026
9 of 11 checks passed
@copybara-service
copybara-service Bot deleted the test_955639639 branch July 29, 2026 17:14
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.

3 participants