Repository navigation
DOOM call-graph: --clang folds the libclang reference into callgraph_baseline.json (Part of #5630, slice 2) - #6768
Merged
Conversation
…baseline.json and the nightly gate (Part of #5630, slice 2) callgraph_oracle.py --clang runs doom_clang_calls.run_port on the scanned C ports; the baseline gains a per-port clang section (recall, precision, fatal-error file count, disagreements in clean files) and --baseline fails when clang recall/precision drop or the clean-file disagreement count grows. The doom-rosetta nightly passes --clang and installs the pinned libclang. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
|
|
||
| def run_clang(ports, work, sha): | ||
| """The libclang reference over the C ports among ``ports`` that have a scan: ({port: result}, why-not or None).""" | ||
| import doom_clang_calls # lazy: it imports this module, and libclang is optional |
This was referenced Oct 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #5630 (slice 2 of 3). Follows #6766.
What
callgraph_oracle.py --clangruns the libclang reference (doom_clang_calls.run_port) on the scanned C ports and folds it into the same run:--write-baselinestores aclangsection per port (clang_edges,engine_edges,agree,recall,precision,files_fatal,disagreements_in_clean_files); a run without--clangkeeps the committed section.--baselinefails when a port's clang recall or precision drops past--tolerance, a baselined port is missing, ordisagreements_in_clean_filesgrows. Disagreements in fatal-error files are reported but never gated (they move with the missing headers, not the engine).--clangwith no libclang prints why and fails--fail-on-regression(a silent skip would un-gate the nightly).doom-rosetta.ymlnightlycallgraphjob: installsci/requirements/callgraph.txt(libclang 18.1.1, same as local) and passes--clang;pull_requestpaths gain the two clang tool modules (test_workflow_paths_cover_the_check_imports); the pin table line intest_pipeline_pins.pymoves 109 -> 110.Needs the owner: this PR edits
.github/workflows/doom-rosetta.yml(nightly--clang+ libclang install + pull_request paths), which the churn queue item did not authorise. It cannot be dropped without turningtest_workflow_paths_cover_the_check_importsred (the check lazily imports the clang modules), so the owner should approve the workflow edit or tell me to import them differently.Evidence
Fresh scan at
2ac09c8aeof the 15 C ports; the non-clang oracle numbers equal the committed baseline for all 15 (no engine drift), so only theclangsection was added (engine_sha and the rest untouched). Clean-file disagreements: puredoom 61, nugget-doom 6, woof 6, inter-doom 3, doomretro 2, the other 10 ports 0. Clang recall 0.936-0.996, precision 0.748-0.981 (fatal-error files dominate the gap). Unit tests: 56 passed intest_callgraph_oracle.py(+3 new: clang gate, baseline view, no-libclang skip).pr_gates --fast: 9/9. Not run:--ratchets(no engine, golden or ledger input changes) and the nightly itself (schedule/dispatch only).Class / Sibling gaps
Class: C/C++ call-graph references gated against
callgraph_baseline.json. Members: tree-sitter body oracle + consensus (gated before this PR); libclang on the 15 C ports (gated here); libclang on the C++ ports (doomsday, eternity, gzdoom, odamex, srb2, doom3-bfg, doom3do, edge-classic, ...): not covered,clang_callgraph.pyreads C only. Sibling gaps: puredoom's 61 clean-file disagreements are unread leads (a real engine gap or a clang guess is not yet decided); the other-languagets_callgraph_oracle.pyhas no baseline gate here.Remaining slices
Slice 3 (per the issue): triage and fix the clean-file disagreements, starting with puredoom, then tighten the baseline.
Cross-repo
None.
🤖 Generated with Claude Code