Skip to content

powershell: param lists through three paren levels and past parens in strings; regenerate baseline (Part of #3303) - #6720

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

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/3303-20261026T0610Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #3303. Checklist: n/a.

What

  • The tree-sitter baseline for powershell was stale (457/487 functions). The glued-return-type fix (powershell: methods with a glued return-type bracket; script: scope-name audit fix (Part of #3303) #6386) had already restored recall: live audit is 487/487, extra 0. Baseline regenerated (found_functions 457 -> 487, args_exact_match 444 -> 484 of 487).
  • The multi-line param(...) args mismatches were real: the args rule's paren body handled one nested level and counted parens inside string literals ([ValidatePattern("^v(-\w+(\.\d{1,2})?)?$")]), so Start-PSBuild (real=20) matched nothing. Now all three alternatives (param, function name(...), constructor/method) share one bounded body: three paren levels, quoted strings stepped over whole. Mismatches 13 -> 3.
  • test_powershell_args_known_limitation_two_level... documented the old limit; it now pins the new one (four levels).

Golden drift (attributed)

scope_check.py --expect powershell: 265 powershell differences (arg counts, function_parameters, archetype mix); the rest is layout coordinates (X/Y/Z shift from the re-projected graph) and repo-wide rollups (function/file archetype distribution counts moving by 1-5). No other language's extraction moved.

Class / Sibling gaps

Class: powershell parameter-list span, depth-bounded and string-unaware paren matching, across all three args alternatives (all fixed here, each with a test). Sibling gaps: (1) Restore-PSPester real=1 got=0: default value nests five paren levels deep (([IO.Path]::Combine((Split-Path (Get-PSOptions -DefaultToNew).Output), "Modules"))), not regular; would need a depth-aware pass in the detector. (2) New-MSIPackage real=10 got=11: counts one extra; cause not yet found. No burned estate needs either (PowerShell build scripts only).

Gates

pr_gates --fast 7/7, --ratchets 9/9 (none skipped), tree_sitter_accuracy_audit powershell --ci OK, powershell tests 279 pass, golden blessed via golden-lock crucible_check (both legs).

🤖 Generated with Claude Code

…s in strings; regenerate tree-sitter baseline (Part of #3303)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@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.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 26, 2026 06:28
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 26, 2026 06:29
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@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

PR #6720 @ df5a3e4: 1 failed check(s)

== runner-tests (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40280069027/job/121431209311
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/cobol_mainframe/test_blocker_leak.py::test_anonymized_blockers_leak_nothing_of_the_estate_source[cics-crucible]
errors:
fail-on-cache-miss: false
pytest.fail(f"{estate} missing under GITGALAXY_MAINFRAME_CORPORA: the leak scan would skip")
E FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy/docs/language_status/evidence_report/cics-crucible/report.json'
FAILED tests/cobol_mainframe/test_blocker_leak.py::test_anonymized_blockers_leak_nothing_of_the_estate_source[cics-crucible] - FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy/docs/lan
##[error]Process completed with exit code 1.
log tail:
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
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
MAVEN_ARGS: -ntp
GITGALAXY_ORACLE_PREBUILT: 1
##[endgroup]
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/runner/work/_temp. This will be the root directory of the artifact
With the provided path, there will be 2 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-cics-crucible.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 5664
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is de7eca2e360055c48efe88a638ce352dd5c6aeae014589531e81ba6fce9edf58
Finalizing artifact upload
Artifact test-times-cics-crucible successfully finalized. Artifact ID 12631208123
Artifact test-times-cics-crucible has been successfully uploaded! Final size is 5664 bytes. Artifact ID is 12631208123
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40280069027/artifacts/12631208123
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/5f419920-94a8-4ce2-8b6b-da586cf5e3b4' 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 Oct 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit d7a9e65 into main Oct 26, 2026
127 of 129 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/3303-20261026T0610Z branch October 26, 2026 06:41
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