Repository navigation
Commit 974281a
Gate on the dev build, not just the production one (#387)
* ci(website): gate on the dev build, not just the production one
Closes the follow-up left open by #385.
Every website spec runs against `next start`. A production build does not
double-invoke effects, so nothing in CI ever exercised the build a contributor
opens — which is how a homepage that rendered NO grid under StrictMode survived
from #321 to #383 with the suite 100/100 green the entire time.
The `dev-smoke` job starts a real `next dev` and runs `dev-mode.spec.ts` against
it. It builds the packages first, because the website imports them from `dist`
and a dev server is only as honest as the last build.
The spec skipped itself when `PRETABLE_DEV_URL` was unset, which is right
locally and would be a disaster as a gate: a job that reports success for
running nothing is the same silence this spec exists to end. In CI the variable
is the job's responsibility, so its absence now fails with the reason instead of
skipping. Verified both directions — `CI=1` without the URL fails, a local run
without it still skips.
On failure the job keeps the dev server's own log, not just the trace: a compile
error reaches Playwright as a blank page, and the log is where it says why.
Verified by running the job's exact sequence locally — build, start, wait, smoke
— 2 passed against a real dev server.
Note this narrows the blind spot rather than removing it: the job runs one
browser against two pages. It catches lifecycle faults of the class that hid
here, not everything a production-only suite misses.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* fix(ci): key the dev-smoke guard to the job, not to CI
The anti-vacuum guard added in the previous commit keyed on `CI`, so it fired in
every CI job that runs this directory — including the production and preview
smokes, which have no dev server by design and legitimately skip these tests. It
failed the required preview-smoke check twice on this PR's own first run.
Keyed on `PRETABLE_DEV_SMOKE` instead, which only the dev-smoke job sets. The
property that matters is unchanged: the one job whose purpose is smoking a dev
server refuses to skip its way to green.
Verified all three paths: whole-directory run under `CI` skips, dev-smoke intent
without a URL fails, dev-smoke with a URL passes.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent 77b12e4 commit 974281a
2 files changed
Lines changed: 76 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
115 | 173 | | |
116 | 174 | | |
117 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
30 | 48 | | |
31 | 49 | | |
32 | 50 | | |
| |||
0 commit comments