Skip to content

test(windows): silence PowerShell progress before the checked-stop helper fixture runs - #8921

Closed
lidge-jun wants to merge 1 commit into
devfrom
fix/dev-red-windows-l4-2
Closed

lidge-jun wants to merge 1 commit into
devfrom
fix/dev-red-windows-l4-2

Conversation

@lidge-jun

@lidge-jun lidge-jun commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fixes the remaining red Windows job in dev batch run 44353636561 (at e7317b6ed8), windows 10/14: tests/windows/windows-checked-stop-live.test.ts "the PowerShell helper stops captured instances only after every proof succeeds" still received a CLIXML progress record ("Preparing modules for first use") on stderr after #8917.

#8917 silenced progress inside the helper script, which is all production runs (windows-checked-stop-live.ts launches the helper alone with -NonInteractive -EncodedCommand, and the helper sets $ProgressPreference before its first module use). This test, however, prepends a fixture to the helper, and the fixture's Add-Member / [pscustomobject] calls autoload Microsoft.PowerShell.Utility before the helper's preference line runs. On a cold runner that autoload writes the progress record. The test now sets $ProgressPreference = 'SilentlyContinue' as the first statement of its composed script, matching the order production already has. No production change.

Verification

  • bun test tests/windows/windows-checked-stop-live.test.ts: 27 pass, 1 skip (the PowerShell case needs Windows or portable pwsh), 0 fail on macOS.
  • bun test tests/ci-workflows/file-size-ratchet.test.ts: 9 pass. bun run typecheck: no errors.
  • NOT RUN: the PowerShell case itself (no Windows host or pwsh available to this lane); it is confirmed by the next dev batch run. ci:full applied.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

Summary by CodeRabbit

  • Tests
    • Suppressed PowerShell progress output in a Windows test fixture.

@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner November 18, 2026 18:02
@lidge-jun lidge-jun added the ci:full Run the four full Ubuntu test shards on this pull request label Nov 18, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T18:03:40.113788Z 00c303b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Windows checked-stop live test now suppresses PowerShell progress output before it runs the fixture and helper script.

Changes: Windows test output

Layer / File(s) Summary
Set PowerShell progress preference
tests/windows/windows-checked-stop-live.test.ts
At lines 330–333, the generated PowerShell script sets $ProgressPreference to SilentlyContinue before running the fixture and helper.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Possibly related PRs

  • lidge-jun/opencodex#8917: This PR sets the same preference in a checked-stop helper to address the same Windows CI symptom. The changes apply it in different locations.
Merge Risk: Minimal · up to 00c30

This is a test-only change that silences PowerShell progress output in the Windows checked-stop test. No production behavior changes. The next Windows batch run should confirm it.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "test(windows): silence PowerShell progress before the checked-stop helper fixture runs" matches the main change. The raw summary says the PowerShell fixture now sets $ProgressPreference to …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "test(windows): silence PowerShell progress before the checked-stop helper fixture runs" matches the main change. The raw summary says the PowerShell fixture now sets $ProgressPreference to SilentlyContinue before running its setup and helper script, and the objectives say this suppresses the CLIXML progress record emitted to stderr during the Windows test. The title is specific, uses a conventional test(scope) prefix, and is a single sentence of 10 words. It is somewhat long, but it names the change and its purpose.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e7317b6 and 00c303b.

Files selected for processing: 1

  • tests/windows/windows-checked-stop-live.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature). label Nov 18, 2026
@lidge-jun

Copy link
Copy Markdown
Owner Author

Maintainer integration (lidge-jun, dev only) at head 00c303b4c8, as the assigned dev-fix exception to the merge freeze (dev batch run 44353636561, windows 10/14). Branch current with dev, all PR checks green on this head (ci:full). Independent review (gpt-6.2-sol, same reviewer as #8917): MERGE-OK. It confirmed that the fixture's first Add-Member triggers the Microsoft.PowerShell.Utility autoload before the helper's preference line, that production encodes only the helper (preference set before any module use), and that the empty-stderr assertion is unchanged. With portable PowerShell 7.6.10, bun test tests/windows/windows-checked-stop-live.test.ts passed 28/28, including the PowerShell scenario loop. assert-mergeable-review.sh --maintainer-integration 8921 OK.

lidge-jun added a commit to andrew05060414/opencodex that referenced this pull request Nov 18, 2026
@lidge-jun

Copy link
Copy Markdown
Owner Author

This change is already on dev as f5a0004d34 ("test(windows): silence progress before the fixture runs in the checked-stop helper test (#8921)"). The landed tests/windows/windows-checked-stop-live.test.ts is byte-identical to this PR's head 00c303b4c8, and dev batch #3 (run 44386662799 at c38d6eef79) was green on Windows after it. GitHub did not associate that commit with this PR, so I'm closing it as landed. No further change is needed.

@lidge-jun lidge-jun closed this Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature). ci:full Run the four full Ubuntu test shards on this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant