Skip to content

[ci] Fix Rspack test manifest update workflow - #100052

Merged
sokra merged 1 commit into
canaryfrom
fleet/fix-rspack-manifest-workflow
Oct 14, 2026
Merged

sokra merged 1 commit into
canaryfrom
fleet/fix-rspack-manifest-workflow

Conversation

@sokra

@sokra sokra commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

What?

Fixes the scheduled Update Rspack test manifest workflow. Both of its jobs, development and production, have failed every day, for example run 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. [ci] Move Turbopack, Rspack and font data workflows off of RELEASE_BOT_GITHUB_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.

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Tests Passed

Commit: 47b3658

@github-actions github-actions Bot added created-by: Turbopack team PRs by the Turbopack team. tests labels Oct 12, 2026
@sokra
sokra marked this pull request as ready for review October 12, 2026 16:00
@sokra
sokra requested a review from bgw October 12, 2026 16:00
@sokra
sokra merged commit 179eba8 into canary Oct 14, 2026
120 checks passed
@sokra
sokra deleted the fleet/fix-rspack-manifest-workflow branch October 14, 2026 05:20
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants