Repository navigation
Fix main's red Backend CI after #13850 and #13806 - #13930
Merged
Merged
Conversation
Member
Author
|
@codex review |
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. |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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.
Main (bd06376) is red in Backend CI on five tests, seen on every PR based on it (#13914, #13919). Four come from #13850 and #13806, which are both right; one comes from my own #13909. Each is reproduced locally on main and fixed here.
From #13850 (token preview)
test_every_long_lived_spawner_consults_the_shutdown_latch:core/training/token_preview.pyadopts its worker withadopt_pidbut was in neither the gated nor the not-gated set. It already checksis_process_shutting_down()before spawning, so it belongs with the gated spawners, but a gated spawner also has to recheck after adopting: a quit that lands between the check andadopt_pidhappens after the shutdown sweep took its snapshot, and the worker would outlive it._spawn_lockednow rechecks right after adopting, and if the latch is set it stops the new worker and raisesTokenPreviewError("Unsloth is shutting down."), the same message_start_lockeduses. The module goes into the gated set.New test
test_a_quit_that_races_the_spawn_reaps_the_new_workerdrives that race: the latch flips insideProcess.start(), and the worker must be stopped and the call refused.test_the_dataset_format_check_installs_the_decoder:check_format_responsenow reads its rows throughload_preview_slice, which callsensure_audio_decoding()before any tier, so the wiring is intact. The test only readcheck_format_response's own source. It now checks thatcheck_format_responsereads throughload_preview_slice, and thatload_preview_sliceinstalls the decoder before its first read (resolve_dataset_path(/load_dataset(), which also pins the ordering the old form never checked.test_the_subprocess_tokenizes_and_masks_typed_text: the completion-masking half imports unsloth in the worker, as training does, and Backend CI has torch but nounsloth_zoo(Unsloth: Please install unsloth_zoo via pip install unsloth_zoo then retry!). The test skipped only when torch was missing; it now also skips whenunsloth_zoois not importable. The plain tokenization half still runs everywhere.From #13806 (drafter training)
test_owner_training_start_status_cancel_bytes_are_unchanged: the training status details gained"drafter": null. The test pins the exact status bytes on purpose, so a new field is a deliberate, one-line update to the expected dict.From #13909 (mine)
test_python_children_are_told_to_emit_utf8: #13909 made the drafter capability probe decode its child as UTF-8 but setPYTHONIOENCODINGon its own line, while this guard requires the child env to go throughutf8_child_env()at the call site. The probe now passesenv = utf8_child_env(env), which sets the same variable through the shared helper.Verification
test_audio_dataset_decode.py,test_chat_text_encoding.py,test_job_accounts.py,test_orchestrator_unload_cancel.py,test_token_preview.py,test_text_io_encoding.py,test_drafter_training.py: 1144 passed. One failure,test_capability_child_process_runs_for_real, fails identically on main on this host (it runs the probe in a real child interpreter) and is not failing in CI.unsloth_zooimportable: the token preview real-worker test tokenizes, then skips the masking half with its reason.never rechecks the latch after adopting) and the new race test fails (DID NOT RAISE TokenPreviewError).ensure_audio_decoding()moved afterresolve_dataset_path(inload_preview_slice: the decoder test fails (the decoder must be installed before the first row is read).tests/test_formatter_fixed_point.py: passes.