Skip to content

C++ ctor member initializers are not calls; oracle credits listed bases only (Part of #6266) - #6748

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

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/6266-20261026T1539Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #6266. Owner decisions: see the issue (Track D, 2026-10-25: finish the DOOM study).

What

A C++ constructor's initializer-list entry : type(t) (a data member) was recorded as a call and resolved to any same-named free function, an engine false positive that the callgraph oracle scored as engine-only.

  • detector._ctor_init_span: a bare entry at the top level of a ctor's colon list carries the <init> qualifier (cpp only).
  • call_resolver: such an entry stays a call only when the name resolves to a class (base-class ctor); otherwise it is dropped. The marker is stripped before output.
  • callgraph_oracle: a base-class initializer is credited only when the owning class actually lists that base (class_names now returns class -> bases).

Checklist: partial [c:9e7fe6a3] -- this shape class only (ctor member initializers); other scored shapes remain per the ports' misses
Checklist: partial [c:0254d813] -- odamex, doom3-bfg, eternity, srb2, edge-classic still fail callgraph (goldens re-measured, no expected_fails change); gzdoom, doomsday, helion, kocoa-doom, sqldoom unchanged
Checklist: partial [c:84996f5e] -- no PERFECT count posted by this PR

Class / Sibling gaps

Class: C++ constructor initializer-list entries (member : m(x) vs base : Base(x)) mis-read as calls. Members handled: bare member entry naming a free function (dropped), base-class entry (kept, credited by oracle only when listed in the class head), template base. Not covered: brace-initialised member (: m{x}) ends the span, so entries after it keep prior behaviour (sibling gap); qualified ns::Base(x) entries; non-cpp languages with init lists (none known). Other scored callgraph shapes for the 10 ports remain (see issue); helion (C#) unread; mood/sqldoom Python body cut at multi-line triple-quoted string (engine).

Evidence

  • doom_rosetta_check.py --only doom3-bfg,eternity,odamex,srb2,edge-classic: all ok against the regenerated goldens (doom3-bfg, eternity, odamex re-blessed).
  • Crucible golden (both legs) re-blessed: drift is cpp Calls Out To losing member names (e.g. godot Variant::Variant drops type) plus the downstream graph metrics (fan-in/out, pagerank, blast radius, network_macro). Only the calls_out_to binary was not line-diffed.
  • pr_gates --fast 9/9 pass on the final head (an earlier red affected gate was the test_callgraph_oracle dict-shape failure, fixed here); --ratchets 9/9 pass.
  • Hand-written files: detector.py, call_resolver.py, callgraph_oracle.py, test_calls_out_ctor_init_list_6266.py, test_callgraph_oracle.py (5).

File-cap exception: the 3 tests/golden_doom_rosetta/*.json.gz files are regenerated goldens (doom_rosetta_check --update), not hand-written; hand-written files are the 5 listed above.

Remaining slices

Further shape classes for the 10 ports; drop callgraph from expected_fails per port as each reaches zero; the #6266 shape-breakdown comment.

🤖 Generated with Claude Code

@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 17:01
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 26, 2026 17:01
@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 #6748 @ 549363c: 1 failed check(s)

== shard 1 (1669449 LOC) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40364751061/job/121719451678
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:
summary.callgraph_misses: 1567 -> 1659
summary.callgraph_precision: 0.9523 -> 0.9624
summary.callgraph_recall: 0.9777 -> 0.9764
summary.callgraph_unscored: 1767 -> 1705
(bless an intended change with tests/tools/doom_rosetta_check.py --update --yes)
assert not 'doomsday: 5 difference(s) from the golden\n summary.callgraph_engine_only: 1673 -> 977\n summary.callgraph_misses: ..._precision: 0.9523 -> 0.9624\n summary.callgraph_recall: 0.9777 -> 0.9764\n summary.callgraph_unscored: 17
1 failed, 9 passed, 26 deselected in 160.67s (0:02:40)
##[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: 1793034136
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/2f2363d8-e056-4f75-91a5-b299c11b5d31' 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 6407003 into main Oct 26, 2026
118 of 121 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6266-20261026T1539Z branch October 26, 2026 17:10
@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 26, 2026
@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 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