Repository navigation
fix(backend): drop the last two references to a file deleted in WS-G cleanup - #12748
undivisible merged 2 commits into
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
Verified both deletions against the head tree — this closes out the WS-G reference sweep cleanly.
Cross-checks: CI is green on this head, including Backend Hermetic Merge Gate, Backend unit suite, and Hygiene. Thanks for auditing both files end-to-end instead of just deleting the entry that surfaced — that's exactly the right instinct for a follow-up to a partial sweep. Ready from my side. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
undivisible
left a comment
There was a problem hiding this comment.
Verdict: approve
Complete remainder of the #12740 / WS-G stale-ref sweep: drops the two leftover d_test_models.py entries from pyrightconfig.json and .import_time_side_effects_legacy. No behavior change (file already gone). CI green (Backend unit suite, hermetic e2e, OpenAPI, cubic).
Non-blocking
Update the legacy allowlist header Total: 29 entries → 28 so it matches the file (cubic P3). Happy to re-check if you push that one-liner.
|
Follow-up on the approve: please still land the one-liner |
|
Fixed on
Verified rather than assumed: Header and content now agree. One line, no behaviour change. |
|
The red
Same error in both, and in this PR's run: This PR's actual diff is two files: Neither erroring suite is in it, and neither imports anything this PR touches. I did check whether the allowlist edit could be implicated, since Tracked as #12779 with the evidence. Not something I can fix from this branch — it sits in the conversations/merge isolation harness, and I have offered there to bisect the No push here; nothing about this PR needs changing. |
|
The gate you are waiting on now has a fix in flight: #12546. Root cause confirmed and reproduced. #12546 defers that import to its only consumer, so no Nothing about this PR changes. Flagging it because the condition you named — unit green via "merge of a #12779 fix, or equivalent" — now has a candidate. |
|
CI has now confirmed the fix, so the blocker on this PR has a verified remedy rather than a candidate. #12785's Root cause, for the record: Nothing changes on this PR. Once #12785 lands, a merge of |
…cleanup a7bc5fd ("chore(backend): remove dead modules and orphaned WS-G promotion family") deleted backend/scripts/stt/d_test_models.py. BasedHardware#12740 swept the CI guardrail references to files that cleanup removed; two were left behind: backend/pyrightconfig.json:62 "scripts/stt/d_test_models.py" backend/tests/.import_time_side_effects_legacy:34 backend/scripts/stt/d_test_models.py The pyright one is the visible symptom. Every backend type check prints File or directory ".../backend/scripts/stt/d_test_models.py" does not exist. before doing its work. It does not fail the run, which is the problem: a config that always reports one missing include is a config where the next genuinely missing include reads as normal output. Audited both files rather than removing only the entry that surfaced. Of 29 non-comment entries in the legacy list and every non-glob path in pyrightconfig.json, this is the only stale one -- .venv and pretrained_models are gitignored directories, correctly excluded rather than missing. Verified: bash scripts/typecheck.sh reports 0 errors with no missing-file line. Failure-Class: none Co-Authored-By: Claude Opus 5 <[email protected]>
The file's own header claimed 29 entries while the list now holds 28. That is the same stale-signal class this PR exists to clear: a header nobody recomputes is a header that quietly stops describing the file, exactly like the pyright include and manifest entry pointing at a script that was deleted. Caught in review. Failure-Class: none Co-Authored-By: Claude Opus 5 <[email protected]>
7b7a6e8 to
3f059f6
Compare
Follow-up to #12740.
What changed and why
a7bc5fd0c2("chore(backend): remove dead modules and orphaned WS-G promotion family") deletedbackend/scripts/stt/d_test_models.py. #12740 swept the CI guardrail references to files that cleanup removed — theslow_guardrail_manifest.txtentry that was failing the Backend unit suite. Two references were left behind:The pyright one is the visible symptom. Every backend type check prints this before doing its work:
It does not fail the run, and that is the reason to fix it rather than leave it: a config that always reports one missing include is a config where the next genuinely missing include reads as normal output. The same argument #12740 made for the manifest applies here, one layer down.
Scope
Audited both files rather than deleting only the entry that surfaced, since the point of a follow-up to a partial sweep is not to be partial again:
.import_time_side_effects_legacy— 29 non-comment entries, this is the only one whose path is absent from the tree.pyrightconfig.json— every non-glob path checked. Besides this entry only.venvandpretrained_modelsare absent, and both are gitignored directories that are correctly excluded rather than stale.So this is the complete remainder, not another instalment.
How it was verified
No missing-file line in the output.
pyrightconfig.jsonstill parses as valid JSON.Two deletions, no behaviour change:
d_test_models.pydoes not exist, so nothing was being type-checked or allow-listed through either entry.Failure-Class: none