Skip to content

tree-sitter accuracy: php and powershell baselines follow tree-sitter-language-pack 1.24.0 - #8480

Closed
squid-protocol wants to merge 1 commit into
mainfrom
fix/ts-accuracy-baseline-pack-1.24
Closed

squid-protocol wants to merge 1 commit into
mainfrom
fix/ts-accuracy-baseline-pack-1.24

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Why

The weekly dependency bump (#8401) took tree-sitter-language-pack from 1.22.1 to 1.24.0. Its own CI did not run the tree-sitter accuracy audit, so it merged green, and the audit now fails on every PR that does trigger it (first seen on #8477):

php:        real_functions: baseline=1706 current=1707
powershell: real_functions: baseline=487  current=489

What moved, and why it is safe to rebaseline

The newer grammars recognise three functions the old ones missed. GitGalaxy already extracted all three, so nothing got worse:

Language real found extra args exact
php 1706 → 1707 1706 → 1707 1 → 0 1706 → 1707
powershell 487 → 489 487 → 489 0 → 0 484 → 486

For PHP, the one function GitGalaxy found and tree-sitter did not is now found by both, so function precision in the summary table goes from 99.9% to 100.0%.

How the numbers were produced

  • php: tree_sitter_accuracy_audit.py --lang php --regenerate in a private venv with the pack at 1.24.0. CI's measurement gives the same numbers.
  • powershell: written from CI's measurement on main ae7e860a (tree-sitter-accuracy-history run 43607143662), not regenerated locally. This box scans 123 of the 124 PowerShell corpus files with either pack version, so a local regenerate would have written a wrong files_scanned. The local runs do show the same +2 between the two pack versions.
  • The summary table was re-derived with --summary-table.

Not done

Why melek scans one PowerShell corpus file fewer than CI is not explained here.

🤖 Generated with Claude Code

…-language-pack 1.24.0

The pack bump (#8401) moved the ground truth: the newer grammars see one
more PHP function and two more PowerShell functions, all of which
GitGalaxy already extracted (php extra_functions 1 -> 0). The audit
failed on every PR that triggers it. php regenerated locally; powershell
written from CI's own measurement on main ae7e860 (history run
43607143662), since this box scans 123 of the 124 corpus files.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8480 @ f05126e: 1 failed check(s)

== shard 4 (1669847 LOC) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/43607656786/job/132485802210
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[srb2]
errors:
E AssertionError:
tests/doom_rosetta/test_doom_rosetta.py:47: AssertionError
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[srb2] - AssertionError:
##[error]Process completed with exit code 1.
log tail:
summary.callgraph_unscored: 3219 -> 3277
summary.expected_fails_met: True -> False
summary.fails: '' -> 'callgraph'
summary.verdict: 'PERFECT' -> '6/7'
(bless an intended change with tests/tools/doom_rosetta_check.py --update --yes)
assert not "srb2: 6 difference(s) from the golden\n summary.callgraph_engine_only: 0 -> 3\n summary.callgraph_precision: 0.9999... summary.expected_fails_met: True -> False\n summary.fails: '' -> 'callgraph'\n summary.verdict: 'PERFECT
1 failed, 10 passed, 28 deselected in 195.73s (0:03:15)
##[error]Process completed with exit code 1.
##[group]Run s=$(( $(date +%s) - T0 ))
s=$(( $(date +%s) - T0 ))
echo "shard 4 (1669847 LOC): ${s}s" >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
DOOM_SPEEDRUN_WORK: /home/runner/work/gitgalaxy/gitgalaxy/../doom-work
DOOM_ROSETTA_PORTS: crispy-doom,doom-fx,doomretro,freedoom,fsharp-doom,gore,helion,inter-doom,linuxdoom,mochadoom,srb2
T0: 1794668369
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/e7ec4037-1ac9-4c6d-ad97-22f5ac229e07' 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-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 14, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

Closing in favour of #8482. This PR's own CI showed that the pack bump also moves the srb2 DOOM-rosetta golden (call-graph precision 0.9999 → 0.9966, PERFECT → 6/7), which should be explained rather than blessed. #8482 holds the pack at 1.22.1; #8481 tracks taking 1.24.0 deliberately and can reuse the two baselines from this branch.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant