Skip to content

Fix the backend CI guards main fails after the decision and ComfyUI merges - #12958

Merged
danielhanchen merged 2 commits into
mainfrom
fix-main-ci-backend-1007
Oct 7, 2026
Merged

danielhanchen merged 2 commits into
mainfrom
fix-main-ci-backend-1007

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

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.

Failing test Introduced by Cause Fix
tests/test_source_read_encoding.py [13], [15] #12939, #12878 read_text() / write_text() without an encoding in tests/test_decision_gguf_real.py:208,210 and studio/backend/tests/test_comfy_file_detection.py:26 pass encoding = "utf-8"
test_orchestrator_unload_cancel.py::test_every_long_lived_spawner_consults_the_shutdown_latch #12939 core/systemone/native_worker.py adopts a child but was in neither set. It already checks the shutdown latch before the spawn and rereads it in _wait_ready after adopt_pid. list it in the guarded set, and add a test that pins that behaviour
test_job_accounts.py::test_export_owner_single_mode_preserves_operation_and_status_bytes #12939 vs the byte pin from #10588 #12939 deliberately added the optional decision field to the export status response; it is null for any non-decision model. add "decision": None to the expected bytes

The new shutdown test

test_a_shutdown_that_begins_during_the_spawn_kills_the_new_server sets the latch after the pre-spawn gate has passed. It then asserts:

  • the spawned server is dead;
  • NativeError("... stopped while it loaded") is raised;
  • no 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)

main this branch
tests/test_source_read_encoding.py, tests/test_decision_gguf_real.py 2 failed 16 passed, 2 skipped
test_comfy_file_detection, test_job_accounts, test_orchestrator_unload_cancel, test_decision_native under -n 4 2 failed 542 passed

…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.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 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 ⚠️ Failed 2026-10-07T15:44:32.469249Z 565011f New commits
🔒 Security Review ⚠️ Failed 2026-10-07T14:48:15.145034Z a3580f8 PR opened
ℹ️ 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 Summary

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-07T14:48:11.269107Z a3580f8 PR opened
ℹ️ 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. Keep it up!

Reviewed commit: a3580f8bfa

ℹ️ 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

Copy link
Copy Markdown
Member Author

The red Source lint here is the risky loader baseline for native_worker.py:114 and decision_gguf.py:61, which #12954 recorded and merged a few minutes ago (d801c84671). A rebase clears it; the rest of this PR covers the other main failures (test_job_accounts, the shutdown latch guard, the test encoding reads), which still reproduce on d801c84671.

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