Repository navigation
DOOM-rosetta: tree-sitter call-graph oracle for non-C/C++ ports (Part of #5874) - #5962
Conversation
…avascript/python ports (Part of #5874) ts_callgraph_oracle.py scores check 7 for the non-C/C++ ports whose language tree-sitter covers; a port with none reports callgraph n/a. Golden re-blessed for the 8 ports that moved (callgraph columns only); 5 ports added to expected_fails (managed-doom, mochadoom, helion, sqldoom, cssdoom). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #5962 @ 5f760c6: 3 failed check(s) == full-suite (failure) -- real == full-suite part 1/3 (failure) -- real == shard 1 (1669449 LOC) (failure) -- real |
…est; skip when unavailable (Part of #5874) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (26d0c65) is not the one a maintainer labelled |
|
No description provided. |
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
|
No description provided. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (18e8395) is not the one a maintainer labelled |
1 similar comment
|
CI shepherd: the head of this PR (18e8395) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
|
PR #5962 @ 18e8395: 1 failed check(s) == shard 1 (1669449 LOC) (failure) -- real |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…xpects callgraph (Part of #5874) mood: map_state_to_cobol calls _format_ammo_record, _format_entity_record and _format_player_record; the engine misses them (9 misses, recall 0.9598). freedoom (92 oracle calls) and doom-scheme (15) agree fully. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (a3b86b0) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
Part of #5874 (slice 2; slice 1 = #5949). Item 3: extend the call-graph oracle past C/C++.
What
tests/tools/doom_speedrun/ts_callgraph_oracle.py: the body oracle (tree-sitter function node at the engine start line; every call whose callee is a port-defined bare name; self-edges dropped) for go, java, csharp, rust, javascript, python, the languages the scorer's tree-sitter oracle already maps.doom_scorer.callgraph_checkuses the C/C++ oracle for aLICENSEDC/C++ port (unchanged, so those goldens do not move) and this one otherwise; a port with none of those six languages staysn/a(unscored, shown). Scoring is the slice-1 rule (misses = 0 andabsent/comment/stringengine-only = 0).Oracle blind spots found by reading real source and fixed before blessing: Rust macro arguments are unparsed tokens (
vec![T::default(); n]was a falseabsent), butquote!bodies are emitted code, not calls; a C#: base(...)initializer sits outside the method body (falseabsentfor helion).Class table (languages in the corpus)
function-pointer)sizeof)absent(stringkeyword read as a callee); helion 59 misses, 9absent(aWritebody overrun)activateLiftat lifts.js:81 verified in source)_log_failure,prepare_renderer,closein_runverified in source)n/aGolden re-blessed for 8 ports (callgraph columns only;
doom_rosetta_check.pyscope report shows no other field moved).expected_failsgainscallgraphfor managed-doom, mochadoom, helion, sqldoom, cssdoom (sqldoom/cssdoom also keepfunctions).test_doom_speedrun.pytouched only to give a fake scan DB the columns the oracle reads (a 6th hand-written file, a fixture fix for this PR's own failure).Gates
pr_gates --fast7/7,audit_checkclear, tree-wide guards +tests/doom_rosetta+tests/tools/test_doom_speedrun.pypass,pytestfrom/tmppasses.--ratchetsnot run (no engine/regex change; golden-master/ground-truth untouched).Remaining slices
TS_FUNC_NODEShas no entry): each needs its own call-node spec.LICENSEDgate and no committed baseline (scorer only); owner to confirm that is acceptable for non-C ports.Sibling gaps
Write -> EnsureMenuKey/Exists/GetCommandArray(body overrun into the next method, FileConfig.cs:134); managed-doomToString -> string(a C# keyword read as a callee). Source: this PR's oracle output.LICENSED(C port with a Python tool) score the C/C++ files only.🤖 Generated with Claude Code