Repository navigation
[experiment B] powershell functions missed in build scripts (Part of #4479) - #6385
Closed
squid-protocol wants to merge 1 commit into
Closed
squid-protocol wants to merge 1 commit into
squid-protocol wants to merge 1 commit into
Conversation
…ts name (Part of #3303) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #3303. This PR is an A/B experiment arm (ARM B of #4479); it is not intended to merge as-is.
Root cause
The
func_startandargsrules inpowershell.pyrequired whitespace after a class method's return-type bracket (\]\s+). PowerShell allows[string]ToString() {and[array]GetTests() {with no space, so those methods were invisible. Reproduced against the pinned crucible withtests/tools/tree_sitter_accuracy_audit.py --lang powershell:core/build.psm1andcore/PowerShell__build.psm1missedGetTests/ToString.Fix
\]\s+becomes\]\s*in both rules (2 lines). Audit result (current checkout, not regenerated):args_comparable457 -> 473,args_exact_match444 -> 460,extra_functions0 -> 0, "no regressions".Class / Sibling gaps
Class: a return-type bracket directly abutting the method name, for plain, generic,
hidden,staticand combined forms, in bothfunc_startandargs. Tests added totest_powershell_strict.pycover all of those forms plus negatives ([regex]::Match(...) {,[int]$x = Foo() {,[int]if (...) {, attributes). Sibling gap NOT fixed: 14 remaining audit "missing" entries arefunction script:Namedeclarations (script:Use-MSBuild,script:Write-Log, ...). GitGalaxy does extract them, under the scope-stripped name (Use-MSBuild), while tree-sitter names themscript:Use-MSBuild, so the audit pairs them by name and calls them missing. That is a name-normalisation question in the audit, not an extraction miss, and needs its own decision (strip the scope in the audit, or keep it in the engine name).Not run
Golden bless,
crucible_check.py, the baseline regeneration for the tree-sitter accuracy baseline, and the fullpr_gatesratchets were NOT run (experiment cost cap). The golden masters andtests/tree_sitter_accuracy_baseline_powershell.jsonwill need a re-bless/regenerate before any real merge.Tests:
pytest tests/extraction/languages/test_powershell_strict.py test_powershell.py-> 164 passed;ruff format --checkclean.🤖 Generated with Claude Code