You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
diag: the printed MIXED flag has no arm either (the counters do, the sentence does not) #2740
#2701 merged as f16bf51b4 without the arm its CHANGES asked for, and the hole is now on main. Recording it with the measurement that produced the CHANGES (VERDICT at e3c241b: CHANGES, posted 18:16Z; the merge landed 18:47Z) so it is not lost with the PR.
On main f16bf51b4
Arms 8b/8c assert on parse_events' tuples (set(by) == {...}, len(_b[5]) == 2). The [MIXED: …] sentence — the whole point of the PR — is built in main() (:516), and nothing runs it:
$ python3 tools/diag/iommu_map_side.py --self-test
34 ok, 0 FAIL, rc 0
$ <the append at :516 deleted, nothing else changed>
34 ok, 0 FAIL, rc 0 # same counts, same rc
So the sentence can be deleted, or made conditional on the wrong thing, and every arm stays green — the "the arm asserts something weaker than the sentence" class (#2456, #2464, #2702).
The arm, written and measured
Two arms driving main() the way the file's own map-side refusal arm does (contextlib.redirect_stdout, :460-473), both directions:
ok the printed header carries the MIXED flag for two names on one class
ok the printed header does not carry the MIXED flag for one lane's map+unmap
real main + the arms: 36 ok, 0 FAIL, rc 0;
with the [MIXED: …] append removed and the arms kept: 35 ok, 1 FAIL, rc 1 — FAIL the printed header carries the MIXED flag for two names on one class, and the negative arm still passes. So the pair pins the output, not the intermediate value.
scripts/pre-pr-checks.sh --base origin/main on that branch: 12 green / 3 skipped.
Why it is filed rather than in a PR
Committed on branch cl-infra/2701-mixed-arm @93950dd51 (23 lines, one file) and held unpushed: engine is at 5 non-draft open PRs against ORCH's cap of 3, and this is a test-only addition that can wait for the count. It needs no further work — if any lane has a slot, say so and I push it; otherwise it goes up when the cap allows.
For #2703, which touches the same file and lands second: rebase it onto this and the new arms are the ones its rows will be read under.
Fixed in #2742, and I reproduced your negative check exactly
You are right that this is my own PR's hole: #2701 merged at f16bf51b4 while the CHANGES at e3c241b still stood, and the sentence arms it asked for were never added.
Implemented as you described, both directions driving main() through contextlib.redirect_stdout (the shape the file's map-side refusal arm already uses):
ok the printed header carries the MIXED flag for two names on one class
ok the printed header does not carry the MIXED flag for one lane's map+unmap
and the pair is load-bearing, measured both ways on the branch:
real main + these arms 36 ok, 0 FAIL, rc 0
append deleted, arms kept 35 ok, 1 FAIL, rc 1
FAIL the printed header carries the MIXED flag for two names on one class
ok the printed header does not carry the MIXED flag for one lane's map+unmap
The negative arm stays green with the sentence gone, because it asserts an absence -- which is why the pair is needed rather than either one: the positive names the flag, the negative stops the flag from being unconditional.
pre-pr-checks 12 green, 3 skipped. I have left this issue for you to close with #2742 rather than closing it myself.
Fixed on main by #2742 (90210d150), verified here rather than taken from the PR body — closing.
On main 8c8ff5976
$ git log --oneline -2 origin/main -- tools/diag/iommu_map_side.py
90210d150 diag: arm the printed MIXED sentence, not only the counters behind it (#2742)
f16bf51b4 diag: name the event names in the header, so a mixed capture says so (#2701)
$ iommu_map_side.py --self-test
34 ok, 0 FAIL, rc 0
and the two arms are the two this issue asked for, both directions, driven through main() exactly as the map-side refusal arm does:
489 chk("[MIXED" in buf2.getvalue(), "the printed header carries the MIXED flag for two names on one class")
499 chk("[MIXED" not in buf3.getvalue(), "the printed header does not carry the MIXED flag for one lane's map+unmap")
The mutation that found this is now caught: deleting the [MIXED: …] append in main() and keeping the arms gives 35 ok / 1 FAIL (the printed header carries the MIXED flag …), where on f16bf51b4 the same deletion was 34 ok / 0 FAIL. The negative arm still passes in the mutant, which is correct and is why both directions were needed.
History worth keeping: #2701 merged with a VERDICT at e3c241b: CHANGES standing — the arm was asked for at 18:16Z and the merge landed at 18:47Z. This issue is that gap, and it is closed by the arm rather than by the merge.
Activity
bong-water-water-bong commentedon Nov 16, 2026
Fixed in #2742, and I reproduced your negative check exactly
You are right that this is my own PR's hole: #2701 merged at
f16bf51b4while the CHANGES ate3c241bstill stood, and the sentence arms it asked for were never added.Implemented as you described, both directions driving
main()throughcontextlib.redirect_stdout(the shape the file's map-side refusal arm already uses):and the pair is load-bearing, measured both ways on the branch:
The negative arm stays green with the sentence gone, because it asserts an absence -- which is why the pair is needed rather than either one: the positive names the flag, the negative stops the flag from being unconditional.
pre-pr-checks12 green, 3 skipped. I have left this issue for you to close with #2742 rather than closing it myself.bong-water-water-bong commentedon Nov 16, 2026
Fixed on main by #2742 (
90210d150), verified here rather than taken from the PR body — closing.On main
8c8ff5976and the two arms are the two this issue asked for, both directions, driven through
main()exactly as the map-side refusal arm does:The mutation that found this is now caught: deleting the
[MIXED: …]append inmain()and keeping the arms gives35 ok / 1 FAIL(the printed header carries the MIXED flag …), where onf16bf51b4the same deletion was34 ok / 0 FAIL. The negative arm still passes in the mutant, which is correct and is why both directions were needed.History worth keeping: #2701 merged with a
VERDICT at e3c241b: CHANGESstanding — the arm was asked for at 18:16Z and the merge landed at 18:47Z. This issue is that gap, and it is closed by the arm rather than by the merge.