Commit 91a87cb
authored
ci: do not block PRs on broken Next.js canary publishes (#16408)
When Vercel publishes `next@<canary>` to npm but its peer packages
(`@next/env`, `@next/eslint-plugin-next`) are missing for the same
version, `pnpm create next-app@canary` fails with
`ERR_PNPM_NO_MATCHING_VERSION`, which used to fail every `int-* (1/3)`
shard on every PR for reasons unrelated to the PR.
A new `probe-next-canary` job checks the registry up front:
- If the canary is incomplete, `tests-int` skips the `Canary` variants
in `test/create-payload-app/int.spec.ts` via Vitest's `-t` filter
(`^(?!.*Canary).*$`). The latest variants still run and remain strict.
- A new `notify-next-canary-broken` job posts a sticky PR comment via
`marocchino/sticky-pull-request-comment` explaining the upstream issue,
making clear it does not block the PR, and asking the author to open an
issue at vercel/next.js. The comment is removed automatically once a
healthy canary lands on npm. The job is intentionally not part of
`all-green` so an upstream Next.js breakage cannot block a Payload PR.
Implementation is YAML-only; the test file is unchanged.
<!--
Thank you for the PR! Please go through the checklist below and make
sure you've completed all the steps.
Please review the
[CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md)
document in this repository if you haven't already.
## Which branch should this PR target?
- **`main`** — Payload v4 development. New features, enhancements, and
v4 bug fixes go here.
- **`3.x`** — Payload v3 maintenance. Bug fixes only. **New features are
not accepted against v3.** If this PR adds a feature to v3, please
retarget it at `main` (v4) instead.
The following items will ensure that your PR is handled as smoothly as
possible:
- PR Title must follow conventional commits format. For example, `feat:
my new feature`, `fix(plugin-seo): my fix`.
- Minimal description explained as if explained to someone not
immediately familiar with the code.
- Provide before/after screenshots or code diffs if applicable.
- Link any related issues/discussions from GitHub or Discord.
- Add review comments if necessary to explain to the reviewer the logic
behind a change
### What?
### Why?
### How?
Fixes #
-->
---------
Co-authored-by: German Jablonski <GermanJablo@users.noreply.github.com>1 parent af250cf commit 91a87cb
2 files changed
Lines changed: 140 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
59 | 106 | | |
60 | 107 | | |
61 | 108 | | |
| |||
152 | 199 | | |
153 | 200 | | |
154 | 201 | | |
155 | | - | |
| 202 | + | |
156 | 203 | | |
157 | 204 | | |
158 | 205 | | |
| |||
193 | 240 | | |
194 | 241 | | |
195 | 242 | | |
196 | | - | |
197 | 243 | | |
198 | 244 | | |
199 | 245 | | |
200 | 246 | | |
201 | 247 | | |
202 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
203 | 256 | | |
204 | 257 | | |
205 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
0 commit comments