Repository navigation
Repair the three checks that are red on main itself - #11207
Merged
Merged
Conversation
…tted #11025, #10533 and #11067 each landed today with a blank line the ruff-format-with-kwargs hook removes or adds, so `pre-commit run --all-files` is red on main. Every open PR inherits that: pre-commit.ci evaluates the PR merged with main, finds files to rewrite that the PR never touched, and pushes them onto the PR branch, which is how unrelated files end up in a diff. On a branch too far behind main to apply, it fails outright instead. Output of the repo's own hook, with the pinned ruff 0.6.9. Blank lines only.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Sep 17, 2026
shaojun
pushed a commit
to shaojun/unsloth
that referenced
this pull request
Sep 29, 2026
…tted (unslothai#11207) unslothai#11025, unslothai#10533 and unslothai#11067 each landed today with a blank line the ruff-format-with-kwargs hook removes or adds, so `pre-commit run --all-files` is red on main. Every open PR inherits that: pre-commit.ci evaluates the PR merged with main, finds files to rewrite that the PR never touched, and pushes them onto the PR branch, which is how unrelated files end up in a diff. On a branch too far behind main to apply, it fails outright instead. Output of the repo's own hook, with the pinned ruff 0.6.9. Blank lines only. Co-authored-by: danielhanchen <[email protected]>
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.
Summary
Three checks are red on
mainitself right now, and every open PR inherits all three. Same shape as #11139. None of this is any PR's doing; all of it landed onmaintoday.1.
pre-commit.ci: three files landed unformattedpre-commit run --all-filesrewrites three files that arrived today, each with a blank line theruff-format-with-kwargshook adds or removes:studio/backend/tests/test_kv_cache_estimate_attention_plan.py, from Studio: honour an unmeasured context request and price the real attention plan #11025tests/studio/install/test_install_node_prebuilt_logic.py, from Installer: recover from and explain an unreadable llama.cpp cache on Windows #10533unsloth/models/sentence_transformer.py, from Route save_method="lora" to the adapter save instead of the merge #11067This is the hook's own output, run with the ruff 0.6.9 that
.pre-commit-config.yamlpins under the hook'sadditional_dependencies. Blank lines only.It matters more than the diff suggests, because pre-commit.ci evaluates a PR merged with
mainand then pushes any fix to the PR's own branch. Whilemainis unformatted, every open PR is offered an autofix commit touching files it never went near:main, the push lands and the PR silently acquires unrelated files. That has already happened, on Make the GRPO canary run through Unsloth's own batch sampler #11126, where a[pre-commit.ci] auto fixescommit putstudio/backend/main.pyand two Studio test files into a PR about the GRPO batch sampler.a conflict occurred when applying fixes to the pr.Neither is fixable inside the affected PR. Pulling
mainin only imports the drift; committing the fix there puts the unrelated files back in the diff.2.
Repo tests (CPU, python): two skip guards read a spoofed probetests/python/test_accelerator_skip_guards.py::test_no_skip_guard_reads_a_spoofable_accelerator_probefails on cleanmain, no PR content at all:Both files came in with #11038.
tests/_zoo_aggressive_cuda_spoof.pypatches that probe to True process-wide, so both tests un-skip on a CPU-only runner and try to load a real checkpoint throughFastLanguageModel.Gated on the probes the failing test names, and on the distinction its sibling
test_no_cuda_only_test_is_gated_on_the_broad_accelerator_probeenforces:has_real_cuda()fortest_apply_qkv_fallback_end_to_end, which asks for a cuda device, andhas_real_accelerator()for the other, which does not. All 24 guard tests pass afterwards, and the two files still collect: 76 passed, 2 deselected.3.
Repo tests (CPU, python): a launcher test takes the real, shared runtime lockAlso observed red, on #11126, job 104949989945:
unsloth_cli/commands/studio.pyresolvesSTUDIO_HOMEonce, at import, and_studio_runtime_launch_guardtakes a non-blockingflockon the one.studio-runtime.lockbeneath it. Left at the real~/.unsloth/studio, that file is shared by every xdist worker, so two tests in this shard that reachupdate()together collide and the loser exits 1 on a machine where nothing is wrong. Confirmed directly:_configure_windowsalready redirectedSTUDIO_HOMEattmp_path; the tests that build their own environment, including the one that failed, did not. Moved into thestudiofixture so it cannot be missed again.Measured either side of the change, with the real lock file deleted first:
~/.unsloth/studio/.studio-runtime.lockafter the file runsChecks
scripts/run_ruff_format.pyover all 2681 tracked Python files: no further changes.tests/python/test_accelerator_skip_guards.py: 24 passed.tests/test_apply_qkv_fallback.py tests/test_lora_dropout_patch_summary.py: 76 passed, 2 deselected.-n 8: 99 passed, 32 skipped.tests/python tests/kaggle(the shard),-n 8: the guard failure is gone.