ci(windows): add native PowerShell smoke coverage for contributor commands#91610
ci(windows): add native PowerShell smoke coverage for contributor commands#91610aniruddhaadak80 wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a PowerShell-based smoke check step to the CI workflow to validate key pnpm scripts run successfully under pwsh.
Changes:
- Add a new CI step that runs
pnpm check:docsandpnpm build:strict-smokeusingshell: pwsh.
| - name: Native PowerShell smoke checks | ||
| shell: pwsh | ||
| run: | | ||
| pnpm check:docs | ||
| pnpm build:strict-smoke |
| ;; | ||
| esac | ||
|
|
||
| - name: Native PowerShell smoke checks |
|
Codex review: needs real behavior proof before merge. Reviewed July 5, 2026, 9:24 AM ET / 13:24 UTC. Summary PR surface: Config +5, Other 0. Total +5 across 2 files. Reproducibility: yes. The exact current-head PR CI job reaches the added Review metrics: 2 noteworthy metrics.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review findings
Review detailsBest possible solution: Land a focused Windows Do we have a high-confidence way to reproduce the issue? Yes. The exact current-head PR CI job reaches the added Is this the best way to solve the issue? No. Windows CI is the right surface, but enabling a smoke command that fails in the target lane is not the best fix; make Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f9e194e4a122. Label changesLabel justifications:
Evidence reviewedPR surface: Config +5, Other 0. Total +5 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
646c78e to
e2e58af
Compare
|
Rebased onto main and chained the native PowerShell smoke checks using && to ensure that pwsh fails fast and exits immediately if any step fails (e.g. if pnpm check:docs fails), rather than masking the error with a subsequent successful command. Ready for re-review. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
This pull request has been automatically marked as stale due to inactivity. |
Closes #40922
What Problem This Solves
The Windows CI lane currently lacks a native PowerShell smoke check for
pnpm check:docsandpnpm build:strict-smoke. This leaves a gap where issues specific to the Windows command line limit or PowerShell semantics might slip into main undetected. For example,scripts/format-docs.mjswas failing on Windows because the command line length exceeded the 8191-character limit.Why This Change Was Made
By running these smoke checks natively in PowerShell on the Windows runner, we can catch Windows-specific failures before they land in main. We also chain them with
&&to ensure that failure in one command immediately halts the step, avoiding false positives.User Impact
Improves CI coverage and catches Windows-specific command line failures early.
Evidence
DOCS_FORMAT_MAX_COMMAND_LINE_BYTESinscripts/format-docs.mjsto 7000 for win32 to respect the Windows cmd.exe 8191-character limit, fixing the "The command line is too long" error.node --import tsx scripts/format-docs.mjslocally on Windows and verified it succeeds:.github/workflows/ci.ymlusing&&.