Repository navigation
Fix Windows PowerShell packaging test parser - #1134
Conversation
Replace encoding-sensitive Unicode punctuation and box drawing in the Inno uninstall ordering test with ASCII equivalents so Windows PowerShell 5.1 parses the UTF-8-without-BOM script reliably. Co-authored-by: Copilot App <[email protected]>
|
Codex review: needs maintainer review before merge. Reviewed August 8, 2026, 4:20 PM ET / 20:20 UTC. ClawSweeper reviewWhat this changesThe PR replaces non-ASCII punctuation and box-drawing text in the Inno Setup uninstall-ordering PowerShell test so Windows PowerShell 5.1 can parse its UTF-8-without-BOM source reliably. Merge readiness✅ Ready for maintainer review Keep open. This collaborator-owned active PR is a focused compatibility repair, and source review found no actionable defect. Priority: P3 Review scores
Verification
How this fits togetherThe packaging test locates a built Windows installer, runs its uninstall path, and checks that the gateway cleanup hook precedes deletion of the application directory. Its console and JSON verdicts feed local and CI packaging validation. flowchart LR
A[Built Windows installer] --> B[Packaging test script]
B --> C[PowerShell parser]
C --> D[Installer discovery]
D --> E[Uninstall ordering check]
E --> F[Console and JSON verdict]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Land the ASCII-only presentation-text change after normal CI completes, retaining the existing uninstall-ordering test contract. Do we have a high-confidence way to reproduce the issue? Yes. Current main has non-ASCII source literals, while the PR removes them without changing the installer or ordering path; the Windows PowerShell 5.1 parser issue is source-reproducible. Is this the best way to solve the issue? Yes. ASCII substitutions in presentation-only literals are the narrowest maintainable remedy for Windows PowerShell 5.1 source decoding. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b5925f0cc3f8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Summary
Test-InnoUninstallOrdering.ps1with ASCII equivalentsValidation
git diff --check(passed)./build.ps1(passed)dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore(passed: 3,631; skipped: 32)dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore(passed: 2,246)powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File ./tests/PackagingTests/Test-InnoUninstallOrdering.ps1 -OutputDir <temp>(reached legitimate no-installer SKIP, exit 2; no parser error)pwsh -NoLogo -NoProfile -File ./tests/PackagingTests/Test-InnoUninstallOrdering.ps1 -OutputDir <temp>(reached legitimate no-installer SKIP, exit 2)Select-String -Pattern '[^\x00-\x7F]'(no matches)Real behavior proof
Before this change, Windows PowerShell 5.1 exited at parse time around the Markdown table near line 194. At this PR head, both
powershell.exe5.1 andpwshexecute the script through installer discovery and return the expected SKIP verdict because no installer is present on the validation host.