Repository navigation
fix(rewrite): localize opaque pipeline grouping - #4285
tayfuryldz wants to merge 1 commit into
Conversation
|
Automatic message from CI checks : It seems like this branch is targeting the wrong branch, any contribution should target develop branch. See CONTRIBUTING.md for details. |
📊 Automated PR Analysis
SummaryFixes the shell command rewrite logic so the opaque-grouping safety gate only applies to the specific pipeline that actually contains grouping, rather than affecting unrelated independent pipelines. It also preserves an opaque trailing clause byte-for-byte when rewriting an earlier independent pipeline, and adds regression tests for case clauses and grouped trailing clauses. Review Checklist
Linked issues: #4283 Analyzed automatically by wshm · This is an automated analysis, not a human review. |
|
Thanks for working on this. I investigated this issue using Codex, under my supervision, on Windows with PowerShell and RTK 0.50.0. All command execution and source inspection described below were performed through Codex. Confirmed on RTK 0.50.0Inside a valid Git repository, this block produces unfiltered Git output and no corresponding git status; rtk gain --history; Write-Output (Get-Date) | Out-NullThe pipeline is separate from These controls produced condensed Git output and a corresponding history entry: git status; rtk gain --history
git status && rtk gain --history
git status; rtk gain --history; Write-Output (Get-Date)
git status; rtk gain --history; Write-Output 'literal' | Out-Null
git status; rtk gain --history; Write-Output '(literal)' | Out-NullParentheses and the pipe in separate statements still reproduced the failure: git status; rtk gain --history; Write-Output (Get-Date); Write-Output 'literal' | Out-NullI also reproduced it with a practical PowerShell expression: git status; rtk gain --history; Get-ChildItem -LiteralPath (Join-Path $env:LOCALAPPDATA 'rtk') -Force | Select-Object NameDirect
Source inspection of this PRI used Codex to download the PR branch at commit Based on that inspection, the localized I have not compiled or executed the PR branch. The available environment has no Rust/Cargo toolchain, so this assessment is based on source inspection, not an executed validation. I therefore cannot confirm that these cases pass with the patch. Would it be useful to add the PowerShell examples above as regression tests, asserting that the independent Git command is rewritten while the grouped pipeline is preserved? Tracking caveatThe Codex Windows sandbox provided a different Investigation methodThe entire investigation was carried out using Codex under my supervision, including command execution and source inspection. The distinction above between observed results on RTK 0.50.0 and the source-only assessment of this PR is intentional. No RTK configuration was changed during these checks. |
Closes #4283
Summary
Validation