Repository navigation
DOOM call-graph oracles: drop vendored code (Part of #6097) - #6746
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
1 similar comment
|
No description provided. |
|
PR #6746 @ ca707ff: 15 failed check(s) == db2 (cancelled) -- infra == db2 ${{ matrix.shard }} (cancelled) -- infra == det (failure) -- real == full-suite (failure) -- real == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth (failure) -- infra == ground-truth part ${{ matrix.shard }} (cancelled) -- infra == ground-truth-warm (cancelled) -- infra == plan the suite parts (cancelled) -- infra == publish-history (cancelled) -- infra == shard ${{ matrix.group }}/3 (cancelled) -- infra == shard ${{ matrix.shard }} (cancelled) -- infra == shard ${{ matrix.shard }} (${{ matrix.loc }} LOC) (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
|
No description provided. |
Part of #6097. Checklist: partial [c:7aa491be] -- the call-graph oracles now drop vendored code; the committed
callgraph_baseline.jsonis not re-measured (needs the full scan set).Follow-up to #6741 (distribution.py) and #6745 (whole-port-set measurement).
study_reportalready reaches vendor handling throughdistributionandlineage; the remaining readers of the scan DB that did not filter were the three call-graph oracles.Changes
callgraph_oracle.load_port(repo, db, vendored=None): skips vendored relpaths, so a library's functions are neither oracle callers nor members of the defined-name set.run()passesdoom_scorer._engine_vendor_test(repo).ts_callgraph_oracle.load_portandobjc_callgraph_oracle.score: samevendoredparameter, CLImainpasses the engine test.distribution.load_metrics(DOOM distribution.py: exclude vendored code (Part of #6097) #6741); library callers keep the old behaviour.tests/tools/test_callgraph_oracle.py: four engine vendor rules (third-party prefix,3rdparty-, known library name, versioned name) for the C/C++ loader, and the ts loader.Class / Sibling gaps
Class: every study reader of a scan's
function_datajoined tofile_data. Handled:distribution.load_metrics(#6741),lineage(earlier),subsystem_distribution(viaload_metrics),callgraph_oracle,ts_callgraph_oracle,objc_callgraph_oracle(here).study_reportreads only through those. Sibling gaps: (1)callgraph_baseline.jsonwas measured with vendored code in the port set; re-measuring needs the full scan set (callgraph_oracle.py --baselineover<work>/scans/<sha>), not run here. No burned-estate program needs it. (2) The ObjC loader has no test (needs a parseable ObjC fixture); the filter there is a list comprehension on the same test.Facts checked
pr_gates.py --fast: 8/8 pass.pyteston test_callgraph_oracle, test_doom_distribution, test_doom_study_report: 40 passed; also test_source_reads, test_generated_branch, test_change_classifier pass.🤖 Generated with Claude Code