Repository navigation
Name the encoding when the offload test reads llama.py - #10039
Merged
Merged
Conversation
main is red on Repo tests (CPU): FAILED tests/test_source_read_encoding.py::test_checked_in_file_reads_name_an_encoding offenders: tests/test_offload_frozen_module_device.py:40, :254 #10034 added that file with two bare read_text() calls, and its own CI caught them. It merged at 02:54:14 on head 14c6f0b; the fix I pushed to that branch landed a few minutes later and so is not in the squash. Same change, against main. The gate is right and the reads were wrong. Both read unsloth/models/llama.py, a checked-in source file, with the platform default encoding, which is cp1252 on Windows. Latent rather than live: llama.py is 177,788 bytes and currently all ASCII, so nothing breaks today. Failing at the point the read is added is exactly what the gate is for -- otherwise this surfaces months from now, on Windows only, when someone puts a non-ASCII character in llama.py. test_source_read_encoding and the file's own 20 tests pass: 21 passed.
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 Aug 31, 2026
This was referenced Aug 31, 2026
danielhanchen
added a commit
that referenced
this pull request
Aug 31, 2026
lonexreb
added a commit
to lonexreb/unsloth
that referenced
this pull request
Sep 16, 2026
…f-closing issue Main has no PR gate for the team, so Backend CI going red on a direct push is routine -- and the cost is never the fix, it is the noticing. A red main sits until someone happens to look, every branch cut meanwhile inherits the failure families into its own PR runs, and the eventual fixer starts by re-deriving which push since the last green broke it. Aug 29-31 ran that cycle three times, once with the same two-line fix built twice in parallel (unslothai#10039/unslothai#10041) because nothing said the break was known. When a Backend CI run on main completes red, look up the last green main run, list the commits between the two heads -- the complete suspect set, usually one or two pushes -- and open ONE labeled issue carrying the range, the failing jobs, and the run link. Repeat reds update the same issue; the first green closes it, so the issue's lifetime IS main's red window. Ships inert per ci-capacity.yml's convention: writes are gated on the MAIN_RED_GUARD_ENABLED repository variable, and until it is set the workflow prints the issue it would have filed to the job summary on every real red, so its output can be judged before it is allowed to speak.
lonexreb
added a commit
to lonexreb/unsloth
that referenced
this pull request
Sep 16, 2026
…f-closing issue Main has no PR gate for the team, so Backend CI going red on a direct push is routine -- and the cost is never the fix, it is the noticing. A red main sits until someone happens to look, every branch cut meanwhile inherits the failure families into its own PR runs, and the eventual fixer starts by re-deriving which push since the last green broke it. Aug 29-31 ran that cycle three times, once with the same two-line fix built twice in parallel (unslothai#10039/unslothai#10041) because nothing said the break was known. When a Backend CI run on main completes red, look up the last green main run, list the commits between the two heads -- the complete suspect set, usually one or two pushes -- and open ONE labeled issue carrying the range, the failing jobs, and the run link. Repeat reds update the same issue; the first green closes it, so the issue's lifetime IS main's red window. Ships inert per ci-capacity.yml's convention: writes are gated on the MAIN_RED_GUARD_ENABLED repository variable, and until it is set the workflow prints the issue it would have filed to the job summary on every real red, so its output can be judged before it is allowed to speak.
lonexreb
added a commit
to lonexreb/unsloth
that referenced
this pull request
Sep 16, 2026
…f-closing issue Main has no PR gate for the team, so Backend CI going red on a direct push is routine -- and the cost is never the fix, it is the noticing. A red main sits until someone happens to look, every branch cut meanwhile inherits the failure families into its own PR runs, and the eventual fixer starts by re-deriving which push since the last green broke it. Aug 29-31 ran that cycle three times, once with the same two-line fix built twice in parallel (unslothai#10039/unslothai#10041) because nothing said the break was known. When a Backend CI run on main completes red, look up the last green main run, list the commits between the two heads -- the complete suspect set, usually one or two pushes -- and open ONE labeled issue carrying the range, the failing jobs, and the run link. Repeat reds update the same issue; the first green closes it, so the issue's lifetime IS main's red window. Ships inert per ci-capacity.yml's convention: writes are gated on the MAIN_RED_GUARD_ENABLED repository variable, and until it is set the workflow prints the issue it would have filed to the job summary on every real red, so its output can be judged before it is allowed to speak.
lonexreb
added a commit
to lonexreb/unsloth
that referenced
this pull request
Sep 16, 2026
…f-closing issue Main has no PR gate for the team, so Backend CI going red on a direct push is routine -- and the cost is never the fix, it is the noticing. A red main sits until someone happens to look, every branch cut meanwhile inherits the failure families into its own PR runs, and the eventual fixer starts by re-deriving which push since the last green broke it. Aug 29-31 ran that cycle three times, once with the same two-line fix built twice in parallel (unslothai#10039/unslothai#10041) because nothing said the break was known. When a Backend CI run on main completes red, look up the last green main run, list the commits between the two heads -- the complete suspect set, usually one or two pushes -- and open ONE labeled issue carrying the range, the failing jobs, and the run link. Repeat reds update the same issue; the first green closes it, so the issue's lifetime IS main's red window. Ships inert per ci-capacity.yml's convention: writes are gated on the MAIN_RED_GUARD_ENABLED repository variable, and until it is set the workflow prints the issue it would have filed to the job summary on every real red, so its output can be judged before it is allowed to speak.
lonexreb
added a commit
to lonexreb/unsloth
that referenced
this pull request
Sep 27, 2026
…f-closing issue Main has no PR gate for the team, so Backend CI going red on a direct push is routine -- and the cost is never the fix, it is the noticing. A red main sits until someone happens to look, every branch cut meanwhile inherits the failure families into its own PR runs, and the eventual fixer starts by re-deriving which push since the last green broke it. Aug 29-31 ran that cycle three times, once with the same two-line fix built twice in parallel (unslothai#10039/unslothai#10041) because nothing said the break was known. When a Backend CI run on main completes red, look up the last green main run, list the commits between the two heads -- the complete suspect set, usually one or two pushes -- and open ONE labeled issue carrying the range, the failing jobs, and the run link. Repeat reds update the same issue; the first green closes it, so the issue's lifetime IS main's red window. Ships inert per ci-capacity.yml's convention: writes are gated on the MAIN_RED_GUARD_ENABLED repository variable, and until it is set the workflow prints the issue it would have filed to the job summary on every real red, so its output can be judged before it is allowed to speak.
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.
What is red
mainis failingRepo tests (CPU):Why it is on main
#10034 added that file with two bare
read_text()calls, and its own CI caught them -- that was its single failing check. It merged at02:54:14on head14c6f0b5c; the fix I had pushed to that branch landed a few minutes later, so it is not in the squash. This is the same change, reapplied againstmain.The verdict
The gate is right and the reads were wrong. Both read
unsloth/models/llama.py, a checked-in source file, with the platform default encoding --cp1252on Windows.Latent rather than live:
llama.pyis 177,788 bytes and currently all ASCII, so nothing breaks today. Failing at the point the read is added is precisely what this gate is for. Without it, the breakage surfaces months from now, on Windows only, the first time someone puts a non-ASCII character inllama.py.Verification
tests/test_source_read_encoding.pyand the file's own 20 tests: 21 passed.The gate's own effectiveness needs no separate mutation check here -- it demonstrably caught this on #10034's CI before the merge.