Skip to content

Tests: fix the two spoof-safety lint failures on main - #15454

Merged
danielhanchen merged 1 commit into
mainfrom
fix/fsdp2-bnb-sync-real-cuda-guard
Oct 27, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix/fsdp2-bnb-sync-real-cuda-guard

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Repo tests (CPU, studio) fails on main in tests/python/test_accelerator_skip_guards.py, which keeps tests from reading a probe that tests/_zoo_aggressive_cuda_spoof.py patches to True for the whole session:

Test-only change.

check main this PR
tests/python/test_accelerator_skip_guards.py 2 failed passed
test_accelerator_skip_guards.py + test_fsdp2_bnb_optim_sync.py + test_tp_replica_gloo.py (CPU) 44 passed, 1 skipped

…safety lint

tests/python/test_accelerator_skip_guards.py fails on main: the side-stream test
in test_fsdp2_bnb_optim_sync.py skips on torch.cuda.is_available() (patched True by
the CUDA spoof), and test_tp_replica_gloo.py reloads the adapter with no
torch_device, so PEFT picks the spoofed CUDA device on a CPU runner.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T23:41:15.552320Z 73fdee3 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 73fdee344e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit a4e651e into main Oct 27, 2026
17 of 21 checks passed
@danielhanchen
danielhanchen deleted the fix/fsdp2-bnb-sync-real-cuda-guard branch October 27, 2026 01:02
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