Commit 0f4656a
Both red checks on #4422 (`chore: version packages (rc)`) are defects in the
gates themselves, and both recur on every Changesets release PR.
Check Changeset was structurally unsatisfiable for the release PR. The gate
counts changesets a PR *adds* (`git diff --diff-filter=A` vs the base) — right
for an ordinary PR, and the fix #3373 landed after a global `find | wc -l`
proved unable to ever go red in RC mode. But the release PR is the *consuming*
side: it applies pending changesets into versions and CHANGELOGs and adds none,
by construction. Nobody labels a bot-authored PR `skip-changeset`, so the
release sat blocked on a check that could only be red. `changeset-release/main`
is now exempt at the job level, pinned to the bot author as well as the branch
name so a hand-pushed branch of that name cannot borrow the exemption.
Scaffold E2E skewed the protocol major against itself during an RC window. The
install step already falls back to `latest` when the repo's version is not yet
published (`@objectstack/cli@^17.0.0-rc.2` -> ETARGET -> retry as `latest`).
That fallback rewrote the generated project's dependencies but not its
manifest, and the template stamps the repo's protocol major
(`engines: { protocol: '^17' }`, written at version time by
sync-template-versions.mjs) while `latest` still pointed at 16.x. The ADR-0087
D1 handshake then correctly refused to boot the artifact — the gate working, on
a skew the step had introduced:
package 'e2e-app' targets protocol ^17 (engines.protocol) but this runtime is
protocol 16.0.0
The fallback now re-stamps `engines.protocol` to the major actually installed,
read off node_modules/@objectstack/spec (PROTOCOL_VERSION is kept in lockstep
with that package's own major, asserted by protocol-version.test.ts), and logs
a `::notice` so the run's true protocol is visible rather than silently
rewritten. Confined to the fallback branch: on the normal path the project
installs the repo's own version, the majors agree by construction, and a
template stamping the wrong major must still fail — which is what
template-consistency.test.ts is for. Re-stamping runs before `npm run build`,
so the artifact and the Docker image (already pinned to the resolved CLI
version by the same reasoning) stay in step.
CI configuration only; releases nothing.
Claude-Session: https://claude.ai/code/session_01BbNVKv6KgPzuQ5p76nMgnf
Co-authored-by: Claude <noreply@anthropic.com>
1 parent e2086fe commit 0f4656a
3 files changed
Lines changed: 100 additions & 1 deletion
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
53 | 66 | | |
54 | 67 | | |
55 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
93 | 134 | | |
94 | 135 | | |
95 | 136 | | |
| |||
0 commit comments