Repository navigation
DOOM distribution.py: exclude vendored code (Part of #6097) - #6741
Conversation
…ons (Part of #6097) load_metrics takes the engine's vendor test (doom_scorer._engine_vendor_test, as lineage.py and the rosetta check already use) and run() reads each port's clone for it; a port with no clone is skipped. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
PR #6741 @ 6a51f55: 1 failed check(s) == full-suite part 1/3 (failure) -- real |
|
No description provided. |
|
No description provided. |
|
No description provided. |
1 similar comment
|
No description provided. |
Part of #6097. Checklist: partial [c:7aa491be] -- distribution.py was the one study consumer still counting vendored code; the three callgraph-oracle comparators are listed below.
What
tests/tools/doom_speedrun/distribution.pynow drops functions under directories the engine'sVendorDirectoryDetectorcalls vendored (load_metrics(db, vendored);run()reads<work>/repos/<port>, skipping a port with a scan but no clone, aslineage.pydoes). README blind-spot updated.Class / Sibling gaps
Class: study readers of the per-port scan DB (
function_data/file_data) that must not count vendored code. Members:doom_scorer.py(already excludes, #4545/#5464),lineage.py(already),doom_rosetta_check.read_scan(already; goldens unchanged),distribution.py(fixed here, tested over 6 detector rules:third_party_*/3rdparty-*prefix, known library name, versioned name, nested). Not DB-count consumers:fidelity.py,study_report.py.Sibling gaps:
callgraph_oracle.py:339,ts_callgraph_oracle.py:245,objc_callgraph_oracle.py:88read the scan's functions to compare against a compiler/ctags reference; whether vendored files belong in that comparison is a different question (the reference covers them too), so not changed here. No burned-estate program needs any of these.Facts checked
tests/golden_doom_rosetta) already apply the vendor test inread_scan; distribution output is not golden-pinned, so nothing to re-bless.distribution.pyselected fromfunction_datawithout a path filter among the study modules that report distributions.Gates
pr_gates --fast8/8,--ratchets9 pass / 0 skipped;test_doom_distribution/lineage/study_report,test_source_readspass; plainpytestfrom /tmp passes.🤖 Generated with Claude Code