Repository navigation
Fix the backend CI guards main fails after the decision and ComfyUI merges - #12958
Conversation
…yUI merges Each of these PRs was green on its own; the repo-wide guards they now trip landed or tightened alongside them. The risky-loader baseline and the parallel-isolation entry for the same merges are in #12954. - test_source_read_encoding: pass encoding="utf-8" in test_decision_gguf_real.py (#12939) and test_comfy_file_detection.py (#12878). - test_every_long_lived_spawner_consults_the_shutdown_latch: native_worker.py (#12939) gates before the spawn and rereads the latch in _wait_ready after adopt_pid, so it belongs in the guarded set. Add a test that pins the race it closes: a latch set during the spawn kills the new server and removes its key file. - test_export_owner_single_mode_preserves_operation_and_status_bytes: #12939 added the optional decision field to the export status response, null for any other model. The byte-for-byte expectation from #10588 now includes it.
|
@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 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. Keep it up! 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". |
|
The red |
Summary
Three Backend CI checks have been red on main since the Oct 7 decision-model and ComfyUI merges. Each PR passed on its own; these repo-wide guards only failed once they were combined. #12954 covers the other checks from the same merges: the risky-loader baseline, the parallel-isolation timing entry, and the frontend. This PR touches none of its files.
In every case the product code is right, and only the tests needed updating.
tests/test_source_read_encoding.py[13], [15]read_text()/write_text()without an encoding intests/test_decision_gguf_real.py:208,210andstudio/backend/tests/test_comfy_file_detection.py:26encoding = "utf-8"test_orchestrator_unload_cancel.py::test_every_long_lived_spawner_consults_the_shutdown_latchcore/systemone/native_worker.pyadopts a child but was in neither set. It already checks the shutdown latch before the spawn and rereads it in_wait_readyafteradopt_pid.test_job_accounts.py::test_export_owner_single_mode_preserves_operation_and_status_bytesdecisionfield to the export status response; it is null for any non-decision model."decision": Noneto the expected bytesThe new shutdown test
test_a_shutdown_that_begins_during_the_spawn_kills_the_new_serversets the latch after the pre-spawn gate has passed. It then asserts:NativeError("... stopped while it loaded")is raised;decision_llama_api_key_*file is left behind.It passes on the unchanged
native_worker.py, so it pins existing behaviour rather than changing it.Verification (Python 3.13, CPU torch, same installs as Backend CI)
tests/test_source_read_encoding.py,tests/test_decision_gguf_real.pytest_comfy_file_detection,test_job_accounts,test_orchestrator_unload_cancel,test_decision_nativeunder-n 4