Skip to content

ci: mark failing Rspack + React 18.3.1 cases as known in Rspack test manifests - #100001

Open
fitzyracing1 wants to merge 2 commits into
vercel:canaryfrom
fitzyracing1:rspack-manifest-fix
Open

fitzyracing1 wants to merge 2 commits into
vercel:canaryfrom
fitzyracing1:rspack-manifest-fix

Conversation

@fitzyracing1

Copy link
Copy Markdown

What?

Marks the test cases that currently fail on the Rspack + React 18.3.1 shards as known failures in test/rspack-dev-tests-manifest.json and test/rspack-build-tests-manifest.json.

Why?

Release commits run the test rspack dev/production matrix with React 18.3.1, and since 2026-10-05 all 12 of the (N, 18.3.1) shards fail. The latest is v16.5.0-canary.8: https://github.com/vercel/next.js/actions/runs/38094923448 (canary.7, run 38004324568, failed 11 of the same 12). The default-React Rspack shards pass.

The cause is that the Rspack manifests aren't being refreshed anymore. The rspack-update-tests-manifest workflow is broken, so new and regressed tests have drifted out of the skip lists. #94835 is the real fix. This PR is only a stopgap to get release CI green until that lands and the bot regenerates the manifests from a full run. Feel free to close this if #94835 is about to merge.

How?

I edited the two manifests by hand to produce what test/update-bundler-manifest.js --bundler rspack --override would produce:

  • The 163 cases (30 files) that failed in the final retry of the canary.8 run are moved to failed. That's 14 existing entries updated and 18 new entries for files that weren't in the manifest yet, with their observed passed/failed/pending lists.
  • 2 cases that failed only on canary.7 are marked flakey (typescript-auto-install, searchparams-reuse-loading).

Caveats:

  • These manifests are shared by the default-React and React 18 shards, so these cases are also skipped on default React, where they pass. The bot's output has the same effect. A React-18-only skip list would need changes to get-test-filter.js, because these are legacy-format manifests.
  • The runtime-error-events entry can be dropped once Stabilize runtime error event tests in Rspack #98743 lands.

Checked locally: both files parse and pass prettier --check. Using the repo's own getTestFilterFromManifest, all 163 failing cases are excluded and none of the cases that passed in the same files are excluded. I couldn't run the Rspack suite itself, so other flaky cases could still fail a shard.

…manifests

Release commits run the `test rspack dev/production` matrix with React 18.3.1
(IS_RELEASE). Since 2026-10-05 all 12 React 18.3.1 shards fail, because the
Rspack test manifests are no longer refreshed (the rspack-update-tests-manifest
bot is broken, see vercel#94835), so new and regressed tests have drifted out of the
skip lists.

This updates test/rspack-{dev,build}-tests-manifest.json the same way
`test/update-bundler-manifest.js --bundler rspack --override` would: the 163
test cases (30 files) that failed in the final retry of run 38094923448
(v16.5.0-canary.8) move to `failed`, and files that were missing from the
manifest are added with their observed passed/failed/pending lists. Two cases that
failed only in the v16.5.0-canary.7 run (38004324568) are marked `flakey`:
typescript-auto-install and searchparams-reuse-loading.

The manifests are shared between the default-React and React 18 shards, so
these cases are also skipped on the default-React Rspack shards. That matches
the bot's output, but it means some coverage is lost until the bot is fixed and
regenerates the manifests from a full run.
@github-actions github-actions Bot added the tests label Oct 11, 2026
sokra added a commit that referenced this pull request Oct 14, 2026
### What?

Fixes the scheduled `Update Rspack test manifest` workflow. Both of its
jobs, development and production, have failed every day, for example
[run
38217690831](https://github.com/vercel/next.js/actions/runs/38217690831).

### Why?

The workflow is supposed to keep
`test/rspack-{dev,build}-tests-manifest.json` up to date. Because it
keeps failing, those manifests are stale, and the release Rspack shards
run tests that are already known to fail (#100001 works around this by
hand).

There are two independent blockers:

1. **The GitHub CLI has no token.** #93455 moved these workflows to the
release GitHub App token, which is passed as `RELEASE_GITHUB_TOKEN`.
That removed the env var the GitHub CLI used to pick up.
`test/update-bundler-manifest.js` lists and downloads test-result
artifacts with `gh api`, so those calls now fail with "set the GH_TOKEN
environment variable".
2. **The runner path is out of date.** The updater strips a hardcoded
self-hosted runner prefix (`/root/actions-runner/...`) from test file
paths. Current artifacts come from GitHub-hosted runners
(`/home/runner/work/next.js/next.js/`). So even with auth fixed, the
script stops while processing the results.

### How?

- **Separate tokens for reads and writes.** The updater step now gets
the job's built-in token for the GitHub CLI, used only to read
artifacts. The release App token is unchanged and still does the work
that has to trigger CI: checkout, signed commits and PR creation. Its
permissions are not widened.
- **Least privilege.** Following `.github/AGENTS.md`, the workflow
defaults to no permissions, and each job grants only `actions: read`.
- **Path from the runner.** The updater derives its path prefix from
`GITHUB_WORKSPACE`, with a trailing separator so manifest keys stay
repo-relative (`test/...`). It assumes the jobs that produce and consume
the artifacts run on the same kind of GitHub-hosted runner, which is
true today. If the variable is missing it fails with a clear message, so
a manual run can't produce bad keys.

This follows the approach of @bgw's earlier draft #94835, applied fresh
on current canary. The obsolete Turbopack workflow that #94835 deleted
is already gone.

### Verification

- On unmodified canary, the updater downloads the artifact and then
fails on the old runner prefix.
- With this change, the dev and build updaters both succeed against the
latest real canary artifacts. All 1,535 dev keys and 1,606 build keys
are repo-relative. I discarded the generated manifests.
- Workflow permissions and token wiring were checked by parsing the
YAML. The updater's path handling was checked with zero, one and several
trailing slashes, and with the variable missing.
- Prettier and ESLint pass.
- **Not yet verified end to end in Actions.** Local runs used my own
GitHub CLI login, not the job-scoped token. Please dispatch the workflow
on this branch, or wait for the next scheduled run, to confirm `actions:
read` is enough. The first successful run will open a large manifest
refresh PR. Because the workflow uses `--override`, previously-passing
tests can move to failing in that refresh.

<!-- NEXT_JS_LLM -->


<!-- fleet 96f9352a-face-45ea-8233-1f0245d272b9 -->

Co-authored-by: vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com>
Co-authored-by: Tobias Koppers <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Failing CI jobs

Commit: 77dee58 | About building and testing Next.js

…ix-canary

# Conflicts:
#	test/rspack-build-tests-manifest.json
#	test/rspack-dev-tests-manifest.json

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant