Skip to content

test: execute steps using @yarnpkg/shell#292

Merged
wan9chi merged 12 commits into
mainfrom
11-04-ci_fix_windows_ci_issues
Nov 6, 2025
Merged

test: execute steps using @yarnpkg/shell#292
wan9chi merged 12 commits into
mainfrom
11-04-ci_fix_windows_ci_issues

Conversation

@wan9chi

@wan9chi wan9chi commented Nov 4, 2025

Copy link
Copy Markdown
Member

What changed?

  • Removed 2>&1 redirections from test commands as we can capture stdout/stderr stably.
  • Update snapshots with stdout/stderr interleaved.
  • Refactored the snap test runner to use @yarnpkg/shell

Why make this change?

To get prepared to run on Windows

wan9chi commented Nov 4, 2025

Copy link
Copy Markdown
Member Author

@wan9chi wan9chi changed the title chore: bump vite-task fix: windows ci issues Nov 4, 2025
@wan9chi
wan9chi force-pushed the 11-04-ci_fix_windows_ci_issues branch from 6a29b2a to 2504f58 Compare November 5, 2025 08:50
@wan9chi
wan9chi force-pushed the 11-04-ci_fix_windows_ci_issues branch from 808b082 to e79cc88 Compare November 5, 2025 12:51
@wan9chi wan9chi changed the title fix: windows ci issues test: execute steps using @yarnpkg/shell Nov 5, 2025
@wan9chi
wan9chi marked this pull request as ready for review November 5, 2025 13:49
Copilot AI review requested due to automatic review settings November 5, 2025 13:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the snapshot testing infrastructure to use @yarnpkg/shell instead of Node's child_process.exec for command execution. This change ensures stable stdout/stderr ordering and better cross-platform command handling.

  • Replaces child_process.exec with @yarnpkg/shell's execute function for running test commands
  • Implements file-based output capture to ensure stable ordering of stdout/stderr
  • Removes shell-specific redirects (e.g., 2>&1) from test command definitions

Reviewed Changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pnpm-workspace.yaml Adds @yarnpkg/fslib and @yarnpkg/shell to the catalog
pnpm-lock.yaml Updates lockfile with new dependencies and their transitive dependencies
packages/tools/package.json Adds @yarnpkg/fslib and @yarnpkg/shell as runtime dependencies
packages/tools/src/snap-test.ts Refactors command execution to use @yarnpkg/shell with file-based output capture
packages/cli/snap-tests/replay-logs-chronological-order/steps.json Removes 2>&1 redirects from commands
packages/global/snap-tests/command-update-npm10/snap.txt Updates snapshot with new output ordering
packages/global/snap-tests/command-update-npm10-with-workspace/snap.txt Updates snapshot with new output ordering
packages/global/snap-tests/command-add-pnpm9/snap.txt Updates snapshot with output changes
packages/global/snap-tests/command-add-pnpm9-with-workspace/snap.txt Updates snapshot with output changes
packages/cli/snap-tests/replay-logs-chronological-order/snap.txt Updates snapshot reflecting removal of 2>&1
packages/cli/snap-tests/command-doc/snap.txt Updates snapshot with new output ordering
mise.toml Removes mise configuration file
.gitmodules Removes git submodules configuration
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/tools/src/snap-test.ts Outdated
Comment thread packages/tools/src/snap-test.ts Outdated
Comment thread packages/tools/src/snap-test.ts Outdated
Copilot AI review requested due to automatic review settings November 6, 2025 04:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 12 out of 13 changed files in this pull request and generated 3 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pnpm-lock.yaml
Comment thread packages/tools/src/snap-test.ts
Comment thread packages/tools/src/snap-test.ts

wan9chi commented Nov 6, 2025

Copy link
Copy Markdown
Member Author

Merge activity

  • Nov 6, 5:54 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Nov 6, 5:54 AM UTC: @branchseer merged this pull request with Graphite.

@wan9chi
wan9chi merged commit 6f6ba6f into main Nov 6, 2025
16 checks passed
@wan9chi
wan9chi deleted the 11-04-ci_fix_windows_ci_issues branch November 6, 2025 05:54
@wan9chi wan9chi mentioned this pull request Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants