Skip to content

DOOM call-graph oracles: drop vendored code (Part of #6097) - #6746

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6097-20261026T1547Z
Oct 26, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6097-20261026T1547Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6097. Checklist: partial [c:7aa491be] -- the call-graph oracles now drop vendored code; the committed callgraph_baseline.json is not re-measured (needs the full scan set).

Follow-up to #6741 (distribution.py) and #6745 (whole-port-set measurement). study_report already reaches vendor handling through distribution and lineage; 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() passes doom_scorer._engine_vendor_test(repo).
  • ts_callgraph_oracle.load_port and objc_callgraph_oracle.score: same vendored parameter, CLI main passes the engine test.
  • Opt-in parameter mirrors distribution.load_metrics (DOOM distribution.py: exclude vendored code (Part of #6097) #6741); library callers keep the old behaviour.
  • Tests in 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_data joined to file_data. Handled: distribution.load_metrics (#6741), lineage (earlier), subsystem_distribution (via load_metrics), callgraph_oracle, ts_callgraph_oracle, objc_callgraph_oracle (here). study_report reads only through those. Sibling gaps: (1) callgraph_baseline.json was measured with vendored code in the port set; re-measuring needs the full scan set (callgraph_oracle.py --baseline over <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. pytest on test_callgraph_oracle, test_doom_distribution, test_doom_study_report: 40 passed; also test_source_reads, test_generated_branch, test_change_classifier pass.
  • No golden or engine file touched, so no re-bless.

🤖 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.

1 similar comment
@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 15:51
@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 26, 2026 15:51
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 26, 2026 15:52
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #6746 @ ca707ff: 15 failed check(s)

== db2 (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/40353492490/job/121679615567
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== db2 ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/40353492406/job/121679610966
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40353492406/job/121679607923
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
##[error]Process completed with exit code 1.
log tail:
compression-level: 6
overwrite: false
include-hidden-files: false
archive: true
env:
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]
With the provided path, there will be 176 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-ledger.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 153779
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is e3aa558516127fcc0b06fe36f0e01083302535ac5924a8a4c775d67d687b74df
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 12664342974
Artifact det-sweep-ledger has been successfully uploaded! Final size is 153779 bytes. Artifact ID is 12664342974
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40353492406/artifacts/12664342974
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/8a281cb9-e4dd-45d2-bd4e-16d5d8275e87' 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
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

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40353492492/job/121679614374
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Commit: 21505ad2541d5be6135ed84fc33697146cf75b8e
Build Date: 2026-10-21T00:45:21Z
Worker ID: {6ba1bd1c-5bba-4228-87e7-89ca75c37b4a}
Region: westus3
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261012.334.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: full-suite
##[group]Run echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure.
# #6278: or when the suite plan proved the PR changes only prose no test or engine code opens (mode skip).
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && { test "$SKIP" = "true" || test "$PLAN" = "skip"; }; }
shell: /usr/bin/bash -e {0}
env:
PARTS: cancelled
SKIP:
PLAN:
##[endgroup]
full-suite parts: cancelled (tested-tree skip: , suite plan: )
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/40353492492/job/121679616648
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== ground-truth (failure) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/40353492465/job/121679612000
repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ground-truth (when a ground-truth part failed too, run that part's repro)
errors:
##[error]Process completed with exit code 1.
log tail:
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261012.334.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: ground-truth
##[group]Run echo "ground-truth warm: $WARM, parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE, layout: $LAYOUT, warm planned: $PLANNED_WARM)"
echo "ground-truth warm: $WARM, parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE, layout: $LAYOUT, warm planned: $PLANNED_WARM)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure
# #5164: ... or when the plan found no ground-truth input in the PR (mode none). An empty mode is not none.
ok() { test "$1" = "success" || { test "$1" = "skipped" && { test "$SKIP" = "true" || test "$MODE" = "none"; }; }; }
# #5543: ... or when the layout needs no warm job (a cache hit on the scans, or the busy layout): the parts then warm for themselves
{ ok "$WARM" || { test "$WARM" = "skipped" && test "$PLANNED_WARM" = "false"; }; } && ok "$PARTS"
shell: /usr/bin/bash -e {0}
env:
WARM: cancelled
PARTS: cancelled
SKIP:
MODE:
PLANNED_WARM:
LAYOUT:
##[endgroup]
ground-truth warm: cancelled, parts: cancelled (tested-tree skip: , plan mode: , layout: , warm planned: )
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== ground-truth part ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/40353492465/job/121679613143
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== ground-truth-warm (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/40353492465/job/121679611751
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== plan the suite parts (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/40353492492/job/121679615019
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== publish-history (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/40353492465/job/121679672310
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== shard ${{ matrix.group }}/3 (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/40353492490/job/121679615320
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== shard ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/40353492406/job/121679609983
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== shard ${{ matrix.shard }} (${{ matrix.loc }} LOC) (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/40353492472/job/121679613531
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== store the suite's durations (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/40353492492/job/121679617605
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== suite time budget (#5166) (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/40353492492/job/121679617882
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

@squid-shepherd squid-shepherd Bot added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Oct 26, 2026
@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.

@squid-shepherd squid-shepherd Bot removed 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 77542d0 into main Oct 26, 2026
81 of 106 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6097-20261026T1547Z branch October 26, 2026 15:58
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:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant