Skip to content

Run the remote E2E tests on Linux, Windows and macOS for stable-line pull requests - #9215

Open
craigmichaelmartin wants to merge 14 commits into
mainfrom
release-e2e-cross-os
Open

craigmichaelmartin wants to merge 14 commits into
mainfrom
release-e2e-cross-os

Conversation

@craigmichaelmartin

@craigmichaelmartin craigmichaelmartin commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

The remote E2E tests run on Linux only, and they can't fail a pull request. Before a release, Windows and macOS get only unit tests. 5.2.0's Version Packages pull request (#9206) passed the Linux E2E tests, then shipped an app dev failure on Windows that #9213 fixed for 5.2.1.

WHAT is this pull request doing?

Adds Release E2E (release-e2e.yml). It runs the E2E tests on Linux, Windows and macOS against every pull request into stable/**, and against any branch or tag on demand:

  • Each system runs two shards of the local and remote projects, with the same secrets and app cleanup as the PR workflow's E2E tests. Each job puts its own number in its app names, so one job's cleanup can't remove another job's apps.
  • On Windows and macOS, tests that don't pick a package manager create their apps with npm, the default for new apps. Tests that pick one still use pnpm. The PR workflow's E2E tests use pnpm throughout.
  • Each test gets one retry. A test that passes on retry shows as flaky in the report.
  • The store lifecycle test runs on Linux only, because each run needs a free store slot.
  • On macOS, the workflow makes node-pty's spawn-helper executable, because the published prebuilds ship it without the execute bit.
  • The Release E2E job fails unless every system passed, including when a fork's pull request gets no secrets. It isn't a required check.

While it was a draft, this pull request also ran the workflow on itself, with trial changes that are now reverted. Those runs found three problems:

  • On macOS, node-pty's spawn-helper wasn't executable. The workflow step above fixes that.
  • On Windows, node-pty can't find node without its .exe, so no pseudo-terminal started. The fix is a separate change to the E2E harness.
  • On Windows, app dev didn't reload the app when shopify.app.toml changed. That's a CLI bug, with its own fix and changeset.

Results from those runs:

How to manually test your changes?

Once this is on main, run it against a branch or tag and compare the systems in the run summary:

gh workflow run release-e2e.yml -R Shopify/cli -f branch-or-tag=stable/5.2

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've considered analytics changes to measure impact
  • The change is user-facing — I've identified the correct bump type (patch for bug fixes · minor for new features · major for breaking changes) and added a changeset with pnpm changeset add

🤖 Generated with Claude Code

craigmichaelmartin and others added 2 commits December 3, 2026 14:58
The remote E2E tests run on Linux only, and they can't fail a pull
request. Release E2E runs them on Linux, Windows and macOS against every
pull request into a stable line, and against any branch or tag on
demand. Its gate job fails unless every system passed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Temporary: a later commit removes this trigger before review.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Dec 3, 2026
craigmichaelmartin and others added 11 commits December 3, 2026 15:08
node-pty 1.1.0's macOS prebuilds ship spawn-helper without the execute
bit, so every pseudo-terminal in the E2E tests failed to start with
"posix_spawnp failed".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
On Windows, node-pty looks up the command on PATH as a file named
exactly "node", without adding .exe, so it can't start the CLI. This
tries the harness fix on Windows and macOS; the change itself goes to
the E2E package upstream, and a later commit reverts it here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
app dev ignored edits to shopify.app.toml on Windows in the E2E tests:
chokidar reports backslash paths there, and the file watcher compared
them with the configuration path as they were. This tries the fix on
Windows; the change itself goes upstream, and a later commit reverts it
here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Function build and run, app info, app dev on a React Router app with
app execute, GraphiQL and app logs, and Hydrogen init and build. The
cases go to the E2E package upstream, and a later commit reverts them
here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… (draft only)

The React Router test waits for the web dev server, Hydrogen installs
with pnpm, and a new case checks that app dev serves an admin action and
the theme app extension preview. The workflow also runs the local
project, which needs no account. A later commit reverts the test changes
here; they go to the E2E package upstream.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… once per system (draft only)

The serving case checks only the admin action, since the theme app
extension preview needs the store's storefront password. The local
project runs whole on each system's first shard, so the remote shards
stay even. Release runs retry the login 4 times, 30 seconds apart. A
later commit reverts the E2E package changes here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
5.2.0 broke npm and npx web commands in app dev on Windows through
cross-spawn 7.1.0, and 5.2.1 moved to 7.1.2. This run checks that the
React Router dev test fails on Windows with 7.1.0. The React Router test
also installs its app with pnpm now. A later commit reverts the
dependency here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The E2E harness fixes, the new cases and the app dev fix go upstream as
their own changes, and the dependency trial is over. This pull request
changes only the workflow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The new E2E cases go upstream as their own changes. This pull request
changes only the workflow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@craigmichaelmartin
craigmichaelmartin marked this pull request as ready for review December 3, 2026 21:47
@craigmichaelmartin
craigmichaelmartin requested a review from a team as a code owner December 3, 2026 21:47
Windows and macOS are slower, and a long test plus its retry can pass
Playwright's configured 20 minutes. The remote run gets 35 minutes, and
the job 50.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant