Repository navigation
tree-sitter accuracy: php and powershell baselines follow tree-sitter-language-pack 1.24.0 - #8480
squid-protocol wants to merge 1 commit into
Conversation
…-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]>
|
No description provided. |
|
PR #8480 @ f05126e: 1 failed check(s) == shard 4 (1669847 LOC) (failure) -- real |
|
No description provided. |
|
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. |
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):
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:
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
tree_sitter_accuracy_audit.py --lang php --regeneratein a private venv with the pack at 1.24.0. CI's measurement gives the same numbers.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 wrongfiles_scanned. The local runs do show the same +2 between the two pack versions.--summary-table.Not done
Why melek scans one PowerShell corpus file fewer than CI is not explained here.
🤖 Generated with Claude Code