Skip to content

ci(fix): pin the nightly Payload smoke to the newest Payload 3 release - #653

Merged
Ducksss merged 2 commits into
mainfrom
claude/nightly-smoke-payload3
Nov 3, 2026
Merged

Ducksss merged 2 commits into
mainfrom
claude/nightly-smoke-payload3

Conversation

@Ducksss

@Ducksss Ducksss commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

On schedule, fresh-payload-smoke installs Payload latest on Node.js 22. When Payload 4 ships, latest moves to 4.x. Payload 4 needs Node.js 24.22.1 and is still experimental here, so the nightly would go red the day Payload 4 is released, for reasons that say nothing about the fully supported Payload 3 line.

Scheduled runs now resolve the highest stable 3.x and install that:

semver.maxSatisfying(versions, '^3.0.0') // from `npm view payload versions --json`, piped through stdin
  • Today this resolves 3.92.1, the same as latest, so the nightly doesn't change until Payload 4 ships.
  • PR, push and dispatch runs keep their 3.88.0 pin.
  • How the version is passed: it's a step output on the smoke step instead of a job-level env, so the value doesn't depend on how GitHub orders env against GITHUB_ENV. The smoke step now echoes Payload: <version>.
  • If the lookup finds nothing, the step fails instead of quietly falling back to 3.88.0.
  • Node.js 22 still works for 3.x: Payload 3.92.1 requires ^22.23.4 || >=24.22.1, and CI already gets 22.23.4.
  • Payload 4 stays with payload-newest-smoke (ci(fix): follow the newest Payload 4 build and raise its minimum versions #647), which runs on Node.js 24. I updated its comment, which still said the nightly follows latest.
npm view payload versions Resolves to
live, today 3.92.1
3.92.1, 3.93.0-internal-debug.abc, 4.0.0, 4.0.1, 3.92.2 3.92.2 (prereleases and 4.x skipped)
4.0.0-beta.6, 3.90.0, 3.92.1 3.92.1
4.0.0 only empty, so the step fails

Evidence from the first nightly with #647

Run 41560481702 was the first scheduled run after #647 merged. All five payload-newest-smoke scenarios resolved and installed 4.0.0-beta.6. Each smoke step passed: bare, and website shards 0 to 3. This is the first time the website scenarios have run against a Payload 4 beta. fresh-payload-smoke passed on 3.92.1.

Validation

Step Exit
The new step, run verbatim locally with a fake GITHUB_OUTPUT 0 (version=3.92.1)
Workflow parsed with yaml: the job env no longer sets SMOKE_PAYLOAD_VERSION, and the smoke step reads the step output ok
pnpm format:check 0
pnpm lint 0
Int specs ci-change-selection, release-gate, fresh-payload-smoke (41 tests) 0

actionlint isn't installed locally.

Node.js for the Payload 4 job

In run 41560481702, the bare job of payload-newest-smoke got a cached Node.js 24.22.0. That's one patch below beta.6's >=24.22.1, so pnpm printed engine warnings, though the smoke still passed. setup-node with node-version: 24 takes whatever 24.x the runner has cached. That job now sets check-latest: true, so it always resolves the newest 24.x. No other job's Node setup changes.

Trade-off

Once Payload 4 ships, the only job that tests it is payload-newest-smoke, and that job never fails the run. That fits while Payload 4 support is experimental. When Payload 4 becomes fully supported, move the nightly to 4.x on Node.js 24.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Scheduled smoke checks now run against the highest published Payload version in the 3.x series, falling back to version 3.88.0 if no version is available. Pull request and push checks continue to use version 3.88.0.

On schedule, fresh-payload-smoke installed Payload `latest` on Node.js 22.
Once Payload 4 ships, `latest` moves to 4.x. Payload 4 needs Node.js 24.22.1
and is still experimental here, so the nightly would go red on release day
for reasons that say nothing about the fully supported line.

Scheduled runs now resolve the highest stable 3.x from `npm view payload
versions` (semver.maxSatisfying "^3.0.0", which skips prereleases). Today that
is 3.92.1, the same as `latest`, so nothing changes until Payload 4 ships. PR,
push and dispatch runs keep their 3.88.0 pin. The version comes from a step
output on the smoke step rather than the job env, and the smoke step now
echoes it. Payload 4 stays with payload-newest-smoke, which runs on Node.js 24.

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

vercel Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
payload-components Ready Ready Preview Nov 3, 2026 10:25am UTC

Copilot AI balanced review requested due to automatic review settings November 3, 2026 10:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Walkthrough

The scheduled fresh-payload smoke now resolves the highest published Payload version matching ^3.0.0. The smoke uses that version or falls back to 3.88.0. Updated comments distinguish this Payload 3 smoke from the separate newest-Payload smoke.

Changes: Payload 3 smoke version selection

Layer / File(s) Summary
Resolve and use the Payload 3 version
.github/workflows/registry-verification.yml
The workflow resolves the highest published Payload version matching ^3.0.0 for scheduled runs and fails if no matching version is found. The fresh smoke uses the resolver output or falls back to 3.88.0. Comments distinguish the Payload 3 smoke from the separate newest-Payload smoke.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

Merge Risk: Minimal · up to 43de5

Scheduled smoke runs now track stable Payload 3 releases, while other runs retain the existing pin. No actionable merge-blocking risk was identified.

Pre-merge checks: Passed 4
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: pinning the nightly Payload smoke test to the newest Payload 3 release.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description clearly explains the change, version-selection behavior, fallback behavior, Payload 4 scope, risks, trade-offs, and validation results. It does not use the exact Verification heading o…
Full details: Description check

Explanation

The description clearly explains the change, version-selection behavior, fallback behavior, Payload 4 scope, risks, trade-offs, and validation results. It does not use the exact Verification heading or include the Registry Checklist, but it provides equivalent validation details and is mostly complete.

Finishing Touches
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 618d3bf and 43de52b.

Files selected for processing: 1
  • .github/workflows/registry-verification.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

setup-node with `node-version: 24` takes whichever 24.x the runner has cached.
In the first nightly with payload-newest-smoke (run 41560481702), the bare job
got 24.22.0, one patch below Payload 4.0.0-beta.6's `node >=24.22.1`, and pnpm
printed engine warnings. `check-latest: true` makes it resolve the newest 24.x
from the manifest instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Ducksss
Ducksss merged commit 3470597 into main Nov 3, 2026
17 checks passed
@Ducksss
Ducksss deleted the claude/nightly-smoke-payload3 branch November 3, 2026 11:41
@Ducksss Ducksss mentioned this pull request Nov 6, 2026

This branch was successfully deployed

1 active deployment
Preview — 32bc10f2 Deployed Nov 3, 2026 by vercel[bot]
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.

2 participants