Repository navigation
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Failing test suitesCommit: ed39874 | About building and testing Next.js
Expand output● pnpm-workspace-root › should detect root directory from pnpm-workspace.yaml and allow imports from outside app dir ● pnpm-workspace-root › should not have multiple lockfiles warning when pnpm-workspace.yaml is present
Expand output● create-next-app default template › should create and run without browser warnings or errors
Expand output● pnpm-workspace-root › should detect root directory from pnpm-workspace.yaml and allow imports from outside app dir ● pnpm-workspace-root › should not have multiple lockfiles warning when pnpm-workspace.yaml is present
Expand output● pnpm-workspace-root › should detect root directory from pnpm-workspace.yaml and allow imports from outside app dir ● pnpm-workspace-root › should not have multiple lockfiles warning when pnpm-workspace.yaml is present
Expand output● create-next-app default template › should create and run without browser warnings or errors
Expand output● yarn PnP › should compile and serve the index page correctly with-eslint
Expand output● create-next-app with package manager pnpm › should use pnpm for --use-pnpm flag ● create-next-app with package manager pnpm › should use pnpm when user-agent is pnpm
Expand output● create-next-app --api (Headless App) › should create JavaScript project with --js flag ● create-next-app --api (Headless App) › should create TypeScript project with --ts flag ● create-next-app --api (Headless App) › should create project inside "src" directory with --src-dir flag
Expand output● CNA options matrix - pages › --no-app --js --import-alias=@/* --eslint --src-dir --react-compiler --no-agents-md --tailwind ● CNA options matrix - pages › --no-app --js --import-alias=@/* --eslint --src-dir --react-compiler --no-agents-md --no-tailwind ● CNA options matrix - pages › --no-app --js --import-alias=@/* --eslint --no-src-dir --no-react-compiler --no-agents-md --tailwind ● CNA options matrix - pages › --no-app --js --import-alias=@/* --eslint --no-src-dir --no-react-compiler --no-agents-md --no-tailwind ● CNA options matrix - pages › --no-app --ts --import-alias=@/* --eslint --src-dir --react-compiler --no-agents-md --tailwind
Expand output● yarn PnP › should compile and serve the index page correctly with-eslint
Expand output● app dir - metadata static routes cache › should generate different content after replace the static metadata file
Expand output● create-next-app Biome configuration › should run biome check successfully on generated TypeScript project ● create-next-app Biome configuration › should run biome check successfully on generated JavaScript project ● create-next-app Biome configuration › should format code with biome successfully ● create-next-app Biome configuration › should show errors when biome detects issues
Expand output● create-next-app with package manager npm › should use npm for --use-npm flag ● create-next-app with package manager npm › should use npm when user-agent is npm
Expand output● pnpm-workspace-root › should detect root directory from pnpm-workspace.yaml and allow imports from outside app dir ● pnpm-workspace-root › should not have multiple lockfiles warning when pnpm-workspace.yaml is present
Expand output● create-next-app --example › should fall back to default template if failed to download ● create-next-app --example › should create if --example value is default
Expand output● create-next-app --app (App Router) › should create JavaScript project with --js flag ● create-next-app --app (App Router) › should create TypeScript project with --ts flag ● create-next-app --app (App Router) › should create project inside "src" directory with --src-dir flag ● create-next-app --app (App Router) › should create TailwindCSS project with --tailwind flag ● create-next-app --app (App Router) › should create an empty project with --empty flag ● create-next-app --app (App Router) › should create an empty TailwindCSS project with --empty flag
Expand output● create-next-app with package manager bun › should use bun for --use-bun flag ● create-next-app with package manager bun › should use bun when user-agent is bun
Expand output● create-next-app with package manager yarn › should use yarn for --use-yarn flag ... truncated to fit in one GitHub comment ... |
Stats skippedCommit: ed39874 |
6623aba to
d9f5668
Compare
### 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]>

This workflow is used to update the data for https://www.arewerspackyet.com/
This has been failing with
This is because
test/update-bundler-manifest.jsrunsgh apiin a few places.Test run here: https://github.com/vercel/next.js/actions/runs/27584246352