Skip to content

Main green: refresh call-graph accuracy baseline after #6864/#6870/#6881, re-bless 4 DOOM goldens after #6899 - #6908

Merged
squid-protocol merged 2 commits into
mainfrom
fix/main-green-after-6881
Oct 28, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
fix/main-green-after-6881

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Main has been red on two gates since this afternoon, and PRs have merged over them (neither check is required). This PR only re-blesses; it changes no engine code.

1. Call-graph accuracy baseline (c, cpp, tcl)

call_graph_accuracy.py --ci has failed on every engine PR since #6881 (e.g. #6894). #6864, #6870 and #6881 each moved the numbers, and none refreshed the baseline (last refreshed in #6799). I ran the gate at each commit on the pinned crucible (v1.7.0):

Commit Change
#6864 tcl switch arms tcl recall 71.2 -> 69.3
#6870 dead preprocessor branches c recall 99.3 -> 96.4 (+380 FN), cpp recall 99.0 -> 97.6
#6881 macro bodies at use site c precision 99.4 -> 97.4 (+261 FP), cpp 98.2 -> 97.8

The #6881 shift is by design: tree-sitter cannot see calls inside a macro body. The #6870 shift needs a decision from the owner. The new misses are calls behind toggles never #defined in the tree, such as Py_GIL_DISABLED, Py_REF_DEBUG, MZ_USE_JIT and MICROPY_GC_SPLIT_HEAP. This matches the #6770 rule and libclang's default build, which DOOM check 7 needs. But these are build-configuration switches, not dead code, so the engine now hides real edges for free-threaded/debug CPython builds. This PR records the current behaviour; it does not endorse it.

I edited only the c, cpp and tcl entries by hand, and no other language changes. A local --regenerate would also have rewritten typescript, because nyx has tree-sitter-language-pack 1.21.0 and CI has 1.22.1.

2. DOOM-rosetta goldens (odamex, gzdoom, fastdoom, srb2)

#6899 merged with its DOOM-rosetta run failing on these four ports (run 40715491522). Only small numbers move:

  • odamex: precision 0.983 -> 0.9829, unscored 576 -> 578
  • gzdoom: precision 0.9662 -> 0.9663, unscored 3894 -> 3889
  • fastdoom: precision 0.9993 -> 0.9997, unscored 87 -> 86
  • srb2: unscored 2531 -> 2530

expected_fails does not change. A local check on main reproduced CI's drift exactly, and the re-blessed goldens check ok.

After this

Open DOOM PRs such as #6903 need to merge main and re-bless their own moved ports again. #6903's branch is behind #6899, which is why it shows 19+ ports "failing callgraph".

Part of #6770, #6266

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 28, 2026 12:14
…6870/#6881

Per-commit runs on the pinned crucible (v1.7.0) attribute every drop:
- #6864 (tcl switch arms): tcl recall 71.2 -> 69.3
- #6870 (dead preprocessor branches): c recall 99.3 -> 96.4, cpp recall
  99.0 -> 97.6; the new misses are calls behind toggles never defined in
  the tree (Py_GIL_DISABLED, Py_REF_DEBUG, MZ_USE_JIT, MICROPY_GC_SPLIT_HEAP)
  that tree-sitter still counts
- #6881 (macro bodies expanded at the use site): c precision 99.4 -> 97.4,
  cpp 98.2 -> 97.8; tree-sitter cannot see calls inside macro bodies

None of the three refreshed the baseline, so the gate failed on every
engine PR since. Only c, cpp and tcl change; other languages untouched.

Part of #6770

Co-Authored-By: Claude Opus 5.5 <[email protected]>
#6899 merged with these four goldens drifted (its own DOOM-rosetta run
40715491522 failed on them). Only summary.callgraph_unscored moves, plus
callgraph_precision in the fourth decimal on three ports:
  odamex   precision 0.983 -> 0.9829, unscored 576 -> 578
  gzdoom   precision 0.9662 -> 0.9663, unscored 3894 -> 3889
  fastdoom precision 0.9993 -> 0.9997, unscored 87 -> 86
  srb2     unscored 2531 -> 2530
No expected_fails change. A local check on main reproduced CI's drift exactly.

Part of #6266

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol
squid-protocol merged commit a379397 into main Oct 28, 2026
40 checks passed
@squid-protocol
squid-protocol deleted the fix/main-green-after-6881 branch October 28, 2026 16:56
squid-shepherd Bot pushed a commit that referenced this pull request Oct 28, 2026
…6770) (#6922)

* Nested macro names leave Calls Out To (Part of #6770)

Macro expansion in calls_out_to lists the functions a macro reaches, never a
nested macro name. Regraft of #6903 onto current main.

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

* Re-bless goldens, DOOM rosetta and call-graph baseline for nested macro names (Part of #6770)

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

* Re-bless fastdoom/srb2 and call-graph baseline on top of #6908 (Part of #6770)

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

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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