Skip to content

c/cpp: name macro-defined functions from the #define, repo-wide, keeping the class qualifier (Closes #5563) - #5578

Merged
squid-protocol merged 3 commits into
mainfrom
churn/5563-20261019T0429Z
Oct 19, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/5563-20261019T0429Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

A C/C++ macro-defined function (the #5461 func_start macro branch) is now named from its #define instead of from a lexical guess about its arguments. The table is built repo-wide.

  • Name rule. Take the last statement of the define body: the declarator that is followed by {. The parameter token-pasted into that declarator (or used as it) names the function: Handler_ ## name gives name. Any other parameter pasted into the same declarator is a qualifier: AF_##cls##_##name gives cls::name.
  • Repo-wide table. Orchestrator._c_repo_macro_args reads the scan's headers (.h/.hh/.hpp/.hxx/.inl/.ipp, counting a delta scan's cached files) before Pass 1. Each worker gets the table through _init_worker. A file's own defines win over the headers'. Variants that disagree record no rule.
  • Fallback. With no define, or when the naming argument is missing, the old rule applies unchanged: the only argument, else the second, plus C_MACRO_FIRST_ARG_NAMES.

Closes #5563 (slice 1 + the qualifier).

Class sweep (same mechanism: an argument picked without reading the #define)

family port before after
CONSOLE_COMMAND / VARIABLE / NETVAR / NETCMD eternity 157 of 420 invocation lines misnamed (flag/variable) 0
DEFINE_ACTION_FUNCTION(_NATIVE) gzdoom 1318 named name; 78 names shared by more than one class 1318 named cls::name; 0 shared
DEFINE_ACTION_FUNCTION(_PARAMS) zandronum name name (unchanged and correct: the define pastes only AF_##name)
any other family whose header define pastes a parameter into the declarator all covered automatically, no list entry needed

Evidence

DOOM harness: 39 ports, engine cbf3bf726 (main) vs a3e3b61f6 (this branch), GITGALAXY_DISABLE_GIT_HISTORY=1.

  • Function sets are identical in all 39 ports (199,159 functions, same (file, start line) keys). Only names moved, and only in eternity (157) and gzdoom (1318). Clean-check is unchanged at 20/39 PERFECT.
  • libclang names (name contained in clang's expanded definition symbol; doom_clang.py flags; the 12 densest files per port):
port / family main match / mismatch branch match / mismatch
eternity CONSOLE_COMMAND 89 / 21 110 / 0
eternity CONSOLE_VARIABLE 94 / 64 158 / 0
eternity CONSOLE_NETVAR 6 / 21 27 / 0
eternity CONSOLE_NETCMD 2 / 3 5 / 0
gzdoom DEFINE_ACTION_FUNCTION_NATIVE 566 / 0 566 / 0, now also cls:: (DShape2DTransform::Clear ⊂ AF_DShape2DTransform_Clear)
gzdoom DEFINE_ACTION_FUNCTION 399 / 0 399 / 0, with cls::
zandronum (header not found by clang; clang names the macro itself) 174 / 76 identical

Examples (main → branch, clang): source/g_cmd.cpp:90 cf_hidden → z_print (Handler_z_print); source/e_cmd.cpp:366 cf_level → e_listmapthings.

  • Corpus count of named macro definitions. The issue's macro_audit.py is not on disk. A scratch re-implementation (column-0 ^[A-Z][A-Z0-9_]{2,}\(args\) + { vs function_data start lines, named by an argument) gives 5,377 / 5,777 on both main and the branch: no regression. The denominator differs from the issue's 6,449 because the regex is reconstructed.
  • Goldens: crucible_check.py: full_precision PASS, zero_dependency PASS (zero drift, no bless).
  • tree_sitter_accuracy_audit --lang c --ci and --lang cpp --ci: OK (= baseline).
  • pr_gates.py --fast: 6/6 PASS.
  • Guard tests: test_source_reads, test_galaxyscope, test_inline_extraction, test_generated_fastlane_3188, C/C++ function-defining macros are not counted as functions (6,074 of 6,437 in the DOOM corpus: DEFINE_ACTION_FUNCTION, CCMD, FUNC(...)) #5461 macro tests and the new test_c_macro_define_names_5563.py (21) pass.

Limits (documented, not fixed)

  • Delta scan: when only a header's #define changes, unchanged files that use it keep their cached names until they are re-parsed.
  • A macro whose header is not in the scan (gtest TEST, doomsday D_CMD) keeps the old invocation rule.
  • One invocation expanding to several entities (odamex BEGIN_COMMAND: class + Run + registrar) stays one function, as the issue scoped.
  • C_MACRO_FIRST_ARG_NAMES is kept as the fallback for absent headers.

Lessons for agents

🤖 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 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 19, 2026 05:10
@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 05:14
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5578 @ 9b036f4: 2 failed check(s)

== Call resolution (Level 2, vs scip-java) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39203180752/job/117900304700
repro: python tests/tools/pr_gates.py --fast
errors:
fail-on-cache-miss: false
2026-10-19 05:12:44,583 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
##[error]Process completed with exit code 1.
log tail:
"google/gson: proto/src/test/java/com/google/gson/protobuf/functional/LegacyProtoTypeAdapterFactoryTest.java:customStringAdapter -> proto/src/main/java/com/google/gson/protobuf/LegacyProtoTypeAdapterFactory.java:79 (scip-java: gson/sr
"google/gson: test-shrinker/src/main/java/com/example/Main.java:testTypeTokenWriteRead -> test-shrinker/src/main/java/com/example/ClassWithJsonAdapterAnnotation.java:84 (scip-java: gson/src/main/java/com/google/gson/GsonBuilder.java:9
"google/gson: test-shrinker/src/main/java/com/example/Main.java:testTypeTokenWriteRead -> test-shrinker/src/main/java/com/example/Main.java:84 (scip-java: gson/src/main/java/com/google/gson/Gson.java:590)",
"google/gson: test-shrinker/src/main/java/com/example/Main.java:testTypeTokenWriteRead -> test-shrinker/src/main/java/com/example/Main.java:92 (scip-java: gson/src/main/java/com/google/gson/Gson.java:909)"
],
"external_examples": [
"google/gson: proto/src/main/java/com/google/gson/protobuf/LegacyProtoTypeAdapterFactory.java:read -> proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java:build@207 (scip-java: outside the repo)",
"google/gson: proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java:deserialize -> proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java:build@207 (scip-java: outside the repo)"
],
"reference_version": "0.12.3",
"lang": "java"
}
}
| language | reference | confident precision | ambiguous precision | recall | resolution recall |
|---|---|---|---|---|---|
| java | scip-java | 90.5% (231 judged) | 2.9% | 2.7% | 31.1% |
confident links scip-java resolves outside the repo (not gated): 2; strict precision counting them wrong 89.7%; unmapped (an end scip-java has no function for) 11
overloads (not gated): 0 of the wrong links are a different overload of the right method; counting those right, precision 90.5%, recall 2.7%
call_graph_resolution: REGRESSION
java: confident_precision_pct 99.8 -> 90.5
java: recall_pct 64.9 -> 2.7
java: resolution_recall_pct 66.5 -> 31.1
##[error]Process completed with exit code 1.
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/c35c2479-8987-490e-b891-5c042aabeae1' 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/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

== tree-sitter-accuracy-audit (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39203180823/job/117900304887
repro: python tests/tools/pr_gates.py --fast
errors:
MISSING CLASSES IN threejs_app_ui/editor_main.css: {'#outliner', '.Scene', '.submenu-title', '.menu', '.option', '.selected', '.active', '.type', '.Dialog-background', '.opener', '.Light', '#toolbar', '#animation', '.TabbedPanel', '#script'
##[error]Process completed with exit code 1.
log tail:
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== rust ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== scala ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== shell ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== solidity ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== swift ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== tcl ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== typescript ===
tree_sitter_accuracy_audit: ground-truth metric(s) drifted from the pinned corpus's expected values:
files_scanned: baseline=35 current=36
real_functions: baseline=7391 current=8484
real_classes: baseline=894 current=1488
This means the corpus changed. Investigate before regenerating.
=== zig ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
tree_sitter_accuracy_audit --all: 30 language(s) checked.
tree_sitter_accuracy_audit --all: 1 FAILED: typescript
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/255ea3bf-468b-4eb1-b61a-4eab51fdaef5' 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/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

@squid-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (3930405) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5578 @ 3930405: 3 failed check(s)

== Call resolution (Level 2, vs scip-java) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39204221129/job/117903426978
repro: python tests/tools/pr_gates.py --fast
errors:
fail-on-cache-miss: false
2026-10-19 05:34:38,020 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
##[error]Process completed with exit code 1.
log tail:
"google/gson: proto/src/test/java/com/google/gson/protobuf/functional/LegacyProtoTypeAdapterFactoryTest.java:customStringAdapter -> proto/src/main/java/com/google/gson/protobuf/LegacyProtoTypeAdapterFactory.java:79 (scip-java: gson/sr
"google/gson: test-shrinker/src/main/java/com/example/Main.java:testTypeTokenWriteRead -> test-shrinker/src/main/java/com/example/ClassWithJsonAdapterAnnotation.java:84 (scip-java: gson/src/main/java/com/google/gson/GsonBuilder.java:9
"google/gson: test-shrinker/src/main/java/com/example/Main.java:testTypeTokenWriteRead -> test-shrinker/src/main/java/com/example/Main.java:84 (scip-java: gson/src/main/java/com/google/gson/Gson.java:590)",
"google/gson: test-shrinker/src/main/java/com/example/Main.java:testTypeTokenWriteRead -> test-shrinker/src/main/java/com/example/Main.java:92 (scip-java: gson/src/main/java/com/google/gson/Gson.java:909)"
],
"external_examples": [
"google/gson: proto/src/main/java/com/google/gson/protobuf/LegacyProtoTypeAdapterFactory.java:read -> proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java:build@207 (scip-java: outside the repo)",
"google/gson: proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java:deserialize -> proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java:build@207 (scip-java: outside the repo)"
],
"reference_version": "0.12.3",
"lang": "java"
}
}
| language | reference | confident precision | ambiguous precision | recall | resolution recall |
|---|---|---|---|---|---|
| java | scip-java | 90.5% (231 judged) | 2.9% | 2.7% | 31.1% |
confident links scip-java resolves outside the repo (not gated): 2; strict precision counting them wrong 89.7%; unmapped (an end scip-java has no function for) 11
overloads (not gated): 0 of the wrong links are a different overload of the right method; counting those right, precision 90.5%, recall 2.7%
call_graph_resolution: REGRESSION
java: confident_precision_pct 99.8 -> 90.5
java: recall_pct 64.9 -> 2.7
java: resolution_recall_pct 66.5 -> 31.1
##[error]Process completed with exit code 1.
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/45036f5f-03a6-4e5b-9c4c-06cf5cb74335' 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/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

== graph-accuracy-audit (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39204221129/job/117909042003
repro: python tests/tools/pr_gates.py --fast
errors:
##[error]Process completed with exit code 1.
log tail:
Version: 20261012.601
Commit: f3dc54e1fb89da6852db922499a0233137369e1d
Build Date: 2026-10-12T17:48:21Z
Worker ID: {e18e0a49-9d3a-4000-8863-f562d4b8928f}
Region: southcentralus
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: graph-accuracy-audit
##[group]Run echo "gate results: $RESULTS"
echo "gate results: $RESULTS"
for r in $RESULTS; do
[ "$r" = "success" ] || { echo "a gate finished as: $r"; exit 1; }
done
shell: /usr/bin/bash -e {0}
env:
RESULTS: success success success failure success
##[endgroup]
gate results: success success success failure success
a gate finished as: failure
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== tree-sitter-accuracy-audit (failure) -- main
https://github.com/squid-protocol/gitgalaxy/actions/runs/39204221186/job/117903427865
repro: fails on main too: fix main (then merge origin/main here)
errors:
MISSING CLASSES IN threejs_app_ui/editor_main.css: {'.inactive', '.dragTop', '#player', '.closed', '#viewport', '.Scene', '.opener', '.Dialog', '.Light', '.timeline-container', '#tabs', '.fail', '#toolbar', '.Dialog-content', '.Mesh', '.act
##[error]Process completed with exit code 1.
log tail:
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== rust ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== scala ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== shell ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== solidity ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== swift ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== tcl ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== typescript ===
tree_sitter_accuracy_audit: ground-truth metric(s) drifted from the pinned corpus's expected values:
files_scanned: baseline=35 current=36
real_functions: baseline=7391 current=8484
real_classes: baseline=894 current=1488
This means the corpus changed. Investigate before regenerating.
=== zig ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
tree_sitter_accuracy_audit --all: 30 language(s) checked.
tree_sitter_accuracy_audit --all: 1 FAILED: typescript
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/a84a9a4f-c118-4475-b213-d1e981e8abb7' 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/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

@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 06:06
@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5578 @ 3930405: 3 failed check(s)

== Call resolution (Level 2, vs scip-java) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39204221129/job/117903426978
repro: python tests/tools/pr_gates.py --fast
errors:
fail-on-cache-miss: false
2026-10-19 05:34:38,020 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
##[error]Process completed with exit code 1.
log tail:
"google/gson: proto/src/test/java/com/google/gson/protobuf/functional/LegacyProtoTypeAdapterFactoryTest.java:customStringAdapter -> proto/src/main/java/com/google/gson/protobuf/LegacyProtoTypeAdapterFactory.java:79 (scip-java: gson/sr
"google/gson: test-shrinker/src/main/java/com/example/Main.java:testTypeTokenWriteRead -> test-shrinker/src/main/java/com/example/ClassWithJsonAdapterAnnotation.java:84 (scip-java: gson/src/main/java/com/google/gson/GsonBuilder.java:9
"google/gson: test-shrinker/src/main/java/com/example/Main.java:testTypeTokenWriteRead -> test-shrinker/src/main/java/com/example/Main.java:84 (scip-java: gson/src/main/java/com/google/gson/Gson.java:590)",
"google/gson: test-shrinker/src/main/java/com/example/Main.java:testTypeTokenWriteRead -> test-shrinker/src/main/java/com/example/Main.java:92 (scip-java: gson/src/main/java/com/google/gson/Gson.java:909)"
],
"external_examples": [
"google/gson: proto/src/main/java/com/google/gson/protobuf/LegacyProtoTypeAdapterFactory.java:read -> proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java:build@207 (scip-java: outside the repo)",
"google/gson: proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java:deserialize -> proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java:build@207 (scip-java: outside the repo)"
],
"reference_version": "0.12.3",
"lang": "java"
}
}
| language | reference | confident precision | ambiguous precision | recall | resolution recall |
|---|---|---|---|---|---|
| java | scip-java | 90.5% (231 judged) | 2.9% | 2.7% | 31.1% |
confident links scip-java resolves outside the repo (not gated): 2; strict precision counting them wrong 89.7%; unmapped (an end scip-java has no function for) 11
overloads (not gated): 0 of the wrong links are a different overload of the right method; counting those right, precision 90.5%, recall 2.7%
call_graph_resolution: REGRESSION
java: confident_precision_pct 99.8 -> 90.5
java: recall_pct 64.9 -> 2.7
java: resolution_recall_pct 66.5 -> 31.1
##[error]Process completed with exit code 1.
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/45036f5f-03a6-4e5b-9c4c-06cf5cb74335' 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/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

== graph-accuracy-audit (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39204221129/job/117909042003
repro: python tests/tools/pr_gates.py --fast
errors:
##[error]Process completed with exit code 1.
log tail:
Version: 20261012.601
Commit: f3dc54e1fb89da6852db922499a0233137369e1d
Build Date: 2026-10-12T17:48:21Z
Worker ID: {e18e0a49-9d3a-4000-8863-f562d4b8928f}
Region: southcentralus
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: graph-accuracy-audit
##[group]Run echo "gate results: $RESULTS"
echo "gate results: $RESULTS"
for r in $RESULTS; do
[ "$r" = "success" ] || { echo "a gate finished as: $r"; exit 1; }
done
shell: /usr/bin/bash -e {0}
env:
RESULTS: success success success failure success
##[endgroup]
gate results: success success success failure success
a gate finished as: failure
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== tree-sitter-accuracy-audit (failure) -- main
https://github.com/squid-protocol/gitgalaxy/actions/runs/39204221186/job/117903427865
repro: fails on main too: fix main (then merge origin/main here)
errors:
MISSING CLASSES IN threejs_app_ui/editor_main.css: {'.inactive', '.dragTop', '#player', '.closed', '#viewport', '.Scene', '.opener', '.Dialog', '.Light', '.timeline-container', '#tabs', '.fail', '#toolbar', '.Dialog-content', '.Mesh', '.act
##[error]Process completed with exit code 1.
log tail:
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== rust ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== scala ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== shell ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== solidity ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== swift ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== tcl ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== typescript ===
tree_sitter_accuracy_audit: ground-truth metric(s) drifted from the pinned corpus's expected values:
files_scanned: baseline=35 current=36
real_functions: baseline=7391 current=8484
real_classes: baseline=894 current=1488
This means the corpus changed. Investigate before regenerating.
=== zig ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
tree_sitter_accuracy_audit --all: 30 language(s) checked.
tree_sitter_accuracy_audit --all: 1 FAILED: typescript
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/a84a9a4f-c118-4475-b213-d1e981e8abb7' 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/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

@squid-protocol
squid-protocol merged commit bfb8e30 into main Oct 19, 2026
66 of 69 checks passed
@squid-protocol
squid-protocol deleted the churn/5563-20261019T0429Z branch October 19, 2026 06:09
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:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md

Projects

None yet

1 participant