Repository navigation
Match the widened _stream_completion return in four stale assertions - #8120
danielhanchen wants to merge 4 commits into
Conversation
|
Worth stating what this PR is blocking, because the reds across the open PR set are circular and none of them can clear alone. Three repo-wide reds are in play, each fixed by a different PR, and each PR is red only because of the other two:
This PR currently sits at 25 SUCCESS with exactly one red, Those come from #7985 widening I verified the three together rather than assuming they compose: a staging branch carrying all three passes the full matrix. So the ordering is just a merge-order question, and this one is the cheapest of the three to take first, since it is four assertions and a guard test with no source change. Confirmed locally on this branch: |
|
main is red in three independent places right now, and each of these three PRs fixes exactly one of them, so every one of them still shows the other two as failures. Merging all three in any order turns main green; merging any one alone will not.
None of the three touches the others' files, so there are no conflicts between them. |
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 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". |
|
Superseded by #8132, closing. #8132 rewrote The three-way CI deadlock between this, #8115 and #8110 is therefore gone. #8110 has been rebased onto main and narrowed to the part that is still a real defect: five duplicated |
Four assertions in
test_research_runs_hardening.pystill expect the 3-tuple_stream_completionreturned before #7985 widened it to carryusage:Two compare against a 3-tuple, two unpack into three names. Most call sites in the file were updated with that change; these were missed.
Why it matters beyond this file
Backend testsruns on every Python in the matrix, so this is red on 3.10, 3.11, 3.12 and 3.13 for every open PR regardless of what that PR touches. Confirmed on two branches that share no files with this one and no files with each other: #8110 (tests/security/) and #8115 (tests/python/,tests/studio/) fail identically.The change
The four sites, updated to the current arity.
usageisNonein these fixtures, so the added element isNonein the comparisons and_usagein the unpacks.Plus a guard, because nothing tied the two together and that is why the drift was invisible until CI ran.
test_every_stream_assertion_matches_the_return_arityreads the tuple width from_stream_completion's own return annotation and checks every_run_streamcomparison and unpack in the file against it. It counts only top-level commas, so the nesteddict[str, int]does not read as two extra members, and it asserts that both shapes are actually present so it cannot pass vacuously.Verification
tests/test_research_runs_hardening.py: 122 passed.