Skip to content

test: execute steps using @yarnpkg/shell#292

Merged
branchseer merged 12 commits intomainfrom
11-04-ci_fix_windows_ci_issues
Nov 6, 2025
Merged

test: execute steps using @yarnpkg/shell#292
branchseer merged 12 commits intomainfrom
11-04-ci_fix_windows_ci_issues

Conversation

@branchseer
Copy link
Copy Markdown
Member

@branchseer branchseer commented Nov 4, 2025

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

Copy link
Copy Markdown
Member Author

branchseer commented Nov 4, 2025

@branchseer branchseer changed the title chore: bump vite-task fix: windows ci issues Nov 4, 2025
@branchseer branchseer force-pushed the 11-04-ci_fix_windows_ci_issues branch from 6a29b2a to 2504f58 Compare November 5, 2025 08:50
@branchseer branchseer force-pushed the 11-04-ci_fix_windows_ci_issues branch from 808b082 to e79cc88 Compare November 5, 2025 12:51
@branchseer branchseer changed the title fix: windows ci issues test: execute steps using @yarnpkg/shell Nov 5, 2025
@branchseer branchseer 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
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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
Copy link
Copy Markdown
Member Author

branchseer commented Nov 6, 2025

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.

@branchseer branchseer merged commit 6f6ba6f into main Nov 6, 2025
16 checks passed
@branchseer branchseer deleted the 11-04-ci_fix_windows_ci_issues branch November 6, 2025 05:54
@branchseer branchseer 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