Skip to content

Re-bless DOOM-rosetta and refresh the call-graph accuracy baseline after #6793 (Part of #6266) - #6799

Merged
squid-shepherd[bot] merged 9 commits into
mainfrom
churn/6266-doom-bless-20261027
Oct 27, 2026
Merged

squid-shepherd[bot] merged 9 commits into
mainfrom
churn/6266-doom-bless-20261027

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Part of #6266. Follow-up to #6793, which was already merged (13:20Z) when the shepherd:needs-fix request arrived, so there was no open branch to fix: this PR carries the two red checks that #6793's merge left on main.

What was red, and why

  1. doom-rosetta test_port_matches_golden (woof, odamex, doom3-bfg, srb2, doomsday, nugget-doom): C/C++: a backslash-continued directive is blanked to its last line (Part of #6266) #6793's engine fix drops continued-#define body calls, which moves only callgraph fields in tests/golden_doom_rosetta. Re-blessed with doom_rosetta_check.py --update --yes. Scope: precision up on all six (nugget-doom engine-only unscored 21 -> 0, srb2 55 -> 27); recall cost is 4 misses (srb2 2 -> 4, odamex 21 -> 23).

  2. call-graph-accuracy-audit (cpp recall 99.7 -> 99.0): not caused by C/C++: a backslash-continued directive is blanked to its last line (Part of #6266) #6793. The pre-C/C++: a backslash-continued directive is blanked to its last line (Part of #6266) #6793 parent (e3a3c84c0~1) measures the same 99.0. Bisected on the crucible: FN 25 -> 38 at C++ explicit destructor call p->~T() is a call to the ~T unit; re-bless goldens (Part of #5630) #6762 (x->~T() is recorded as the unit ~T, tree-sitter names it T), 38 -> 77 at C++ a conversion operator does not call its target type; a qualified function-type argument is no call (Part of #6266) #6776 (String(operator Vector2()) names a conversion operator, not the Vector2 type; read in godot variant.cpp:1610, the tree-sitter side is the false positive). Neither PR refreshed tests/call_graph_accuracy_baseline.json; regenerated here (cpp precision 96.6 -> 98.2, FP 271 -> 137, other languages move slightly in the right direction).

  3. Precheck pr_gates --fast red on affected in 6 s (reported four times, never reproduced): churn's precheck runs the gates under /usr/bin/python3, which has no pytest, and tests/tools/affected_tests.py ran sys.executable -m pytest -> No module named pytest. Earlier rounds ran the gates from the selfscan venv, which has pytest, so it always passed for them. Fix: affected_tests.pytest_command() falls back to the pytest on PATH with this checkout first on PYTHONPATH (the trap pr_gates._tool_bin_dir already closes for ruff), with 3 tests in tests/tools/test_affected_tests.py. This reaches every churn PR whose change touches a test, not just this one. The two files are this PR's only hand-written ones; ruff 0.17.1 also reflowed one over-long line in each.

File-cap exception: the tests/golden_doom_rosetta/*.json.gz files (ten after the third bless below) are one atomic, mechanical re-bless (doom_rosetta_check.py --update --yes) of the ports that #6793 moved; splitting them would leave the unblessed ports' doom-rosetta checks red.

Second bless (needs-fix round 2): #6796 (dead_code ignores eval in prose and // in URL strings) merged after the first bless and drops 1-2 GG-SAST-DEAD_CODE findings on doomretro, nugget-doom, odamex and woof (summary counts only). Re-blessed those four; doomretro is a seventh golden file, covered by the file-cap exception above.

Third bless (Opus rescue): the earlier rounds re-blessed only the ports CI had flagged, so each round surfaced more #6796 drift. This round ran doom_rosetta_check.py --update --yes over all 44 ports at the merged head: only chocolate-doom, crispy-doom and doo-cr drift (summary by_level/by_rule/sarif_total, one GG-SAST-DEAD_CODE fewer each); the other 41 match. No further #6796 drift remains on any port.

Sibling gaps

Class: a macro defined inside a function and invoked in it. Its body now belongs to no function, but the oracle credits the calls to the invoker. Misses: srb2 hw_main.c:356 HWR_RenderPlane (SETUP3DVERT -> P_GetSlopeZAt, FloatToFixed), odamex common/md5.cpp:140 and odalaunch/src/md5.cpp:138 md5_process (H). Needs real macro expansion at use sites. The burned-estate program: none (DOOM ports, not mainframe).

Checklist: partial [c:0254d813] -- as in #6793; absent/unparsed classes and per-port 0/0 remain.

Verification

pr_gates --fast 9/9 (also under the precheck's /usr/bin/python3, affected 45 files / 199 s); call_graph_accuracy.py --regenerate ran at this head; doom_rosetta/oracle unit tests 140 passed. Merged origin/main (clean). The full -m doom_rosetta shard run is CI's; the local doom_rosetta_check.py over all 44 ports before the bless listed exactly these six ports.

Lessons for agents

  • doom_rosetta_check.py takes its own heavy slot: do not wrap it in heavy-run.sh on a one-slot box (self-deadlock, load 0.0 and an empty log).
  • When main changes a SARIF/summary field on DOOM ports, re-bless all 44 ports (doom_rosetta_check.py --update --yes, no --only) instead of only the ports in the red shard: CI shards report a few ports at a time, so a partial bless comes back red round after round.
  • A gate that fails for the churn precheck but not for you: rerun it as the precheck does, env -i HOME=$HOME PATH=$HOME/.local/bin:/usr/local/bin:/usr/bin:/bin tests/tools/box/heavy-run.sh /usr/bin/python3 tests/tools/pr_gates.py --fast.
  • A "needs-fix" request can arrive after the PR merged: check gh api repos/.../pulls/N -q .merged first.

🤖 Generated with Claude Code

squid-protocol and others added 3 commits October 27, 2026 11:19
…ersion-operator decisions (Part of #6266)

cpp recall 99.7 -> 99.0 (FN 24 -> 77), precision 96.6 -> 98.2 (FP 271 -> 137). Bisected on the
language-crucible: 25 -> 38 FN at #6762 (x->~T() is the unit ~T, tree-sitter says T), 38 -> 77 at #6776
(String(operator Vector2()) names a conversion operator, not the Vector2 type; read in godot variant.cpp).
Neither PR refreshed this baseline; #6793 does not move it (the pre-#6793 parent measures the same 99.0).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… callgraph on 6 ports (Part of #6266)

Only callgraph fields move: woof, odamex, doom3-bfg, srb2, doomsday, nugget-doom gain precision
(nugget-doom unscored 21 -> 0, srb2 55 -> 27). Cost: 4 misses (srb2 2 -> 4, odamex 21 -> 23) where a macro
defined inside a function is invoked in it (HWR_RenderPlane SETUP3DVERT, md5_process H): the oracle credits the
body to the invoking function, the engine no longer does. Macro expansion is a sibling gap.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 27, 2026 15:32
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 27, 2026 15:34
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #6799 @ e735e2c: 1 failed check(s)

== shard 3 (1667394 LOC) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40532253471/job/122290382049
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[woof]
errors:
E AssertionError:
tests/doom_rosetta/test_doom_rosetta.py:47: AssertionError
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[woof] - AssertionError:
##[error]Process completed with exit code 1.
log tail:
woof: 3 difference(s) from the golden
summary.by_level: {'error': 3, 'warning': 31} -> {'warning': 29, 'error': 3}
summary.by_rule: {'GG-SAST-DEAD_CODE': 4, 'GG-SAST-ENTROPY': 3, 'GG-SAST-HIGH_RISK_EXECUTION': 3, 'GG-SAST-IO': 1, 'GG-SAST-REFLECTION_METAPROGRAMMING': 3, 'GG-SAST-UNPINNED_INSTALL': 20} -> {'GG-SAST-UNPINNED_INSTALL': 20, 'GG-SAST-ENT
summary.sarif_total: 34 -> 32
(bless an intended change with tests/tools/doom_rosetta_check.py --update --yes)
assert not "woof: 3 difference(s) from the golden\n summary.by_level: {'error': 3, 'warning': 31} -> {'warning': 29, 'error': 3}..._RISK_EXECUTION': 3, 'GG-SAST-DEAD_CODE': 2, 'GG-SAST-REFLECTION_METAPROGRAMMING': 3}\n summary.sarif_total
1 failed, 10 passed, 26 deselected in 204.00s (0:03:23)
##[error]Process completed with exit code 1.
##[group]Run s=$(( $(date +%s) - T0 ))
s=$(( $(date +%s) - T0 ))
echo "shard 3 (1667394 LOC): ${s}s" >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
DOOM_SPEEDRUN_WORK: /home/runner/work/gitgalaxy/gitgalaxy/../doom-work
DOOM_ROSETTA_PORTS: doom-ios,doom-wasm,doom3-bfg,dsda-doom,eternity,freedoom,fsharp-doom,gore,linuxdoom,puredoom,woof
T0: 1793115649
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/6dbc3fb1-c8cc-41c5-90d3-a882af95111b' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 27, 2026
…ODE findings on 4 ports (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #6799 @ 606308f: 1 failed check(s)

== shard 4 (1666524 LOC) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40535740712/job/122302575033
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[crispy-doom] tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[doo-cr]
errors:
E AssertionError:
tests/doom_rosetta/test_doom_rosetta.py:47: AssertionError
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[crispy-doom] - AssertionError:
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[doo-cr] - AssertionError:
##[error]Process completed with exit code 1.
log tail:
doo-cr: 3 difference(s) from the golden
summary.by_level: {'warning': 14} -> {'warning': 13}
summary.by_rule: {'GG-SAST-DEAD_CODE': 1, 'GG-SAST-UNPINNED_INSTALL': 13} -> {'GG-SAST-UNPINNED_INSTALL': 13}
summary.sarif_total: 14 -> 13
(bless an intended change with tests/tools/doom_rosetta_check.py --update --yes)
assert not "doo-cr: 3 difference(s) from the golden\n summary.by_level: {'warning': 14} -> {'warning': 13}\n summary.by_rule: {...ST-DEAD_CODE': 1, 'GG-SAST-UNPINNED_INSTALL': 13} -> {'GG-SAST-UNPINNED_INSTALL': 13}\n summary.sarif_total
2 failed, 10 passed, 26 deselected in 199.19s (0:03:19)
##[error]Process completed with exit code 1.
##[group]Run s=$(( $(date +%s) - T0 ))
s=$(( $(date +%s) - T0 ))
echo "shard 4 (1666524 LOC): ${s}s" >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
DOOM_SPEEDRUN_WORK: /home/runner/work/gitgalaxy/gitgalaxy/../doom-work
DOOM_ROSETTA_PORTS: agentic-cobol-doom-cc,crispy-doom,doo-cr,doomf77,fastdoom,helion,inter-doom,kocoa-doom,managed-doom,prboom-plus,sqldoom,srb2
T0: 1793116926
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/f6076e04-7493-430b-90fd-9ba288b6ad2c' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

squid-protocol and others added 2 commits October 27, 2026 12:22
…on chocolate-doom, crispy-doom, doo-cr (Part of #6266)

Full 44-port doom_rosetta_check at this head: only these three drift,
summary counts only (by_level, by_rule, sarif_total); the other 41 match.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (0c1c46f) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-shepherd
squid-shepherd Bot disabled auto-merge October 27, 2026 16:39
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 27, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 27, 2026 16:48
squid-protocol and others added 2 commits October 27, 2026 12:51
…precheck 6 s red on #6799)

Churn's precheck runs pr_gates under /usr/bin/python3, which has no pytest, so
`sys.executable -m pytest` failed `affected` in 6 s on every branch whose change
reaches a test; under the selfscan venv it passed, so earlier runs could not
reproduce it. Fall back to the `pytest` on PATH with this checkout first on
PYTHONPATH (the same trap pr_gates' _tool_bin_dir closes for ruff). Part of #6266.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (b024112) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-shepherd
squid-shepherd Bot disabled auto-merge October 27, 2026 16:56
@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Oct 27, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 27, 2026 16:59
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant