From 420d83e0ecd31a2c803124e5113005d1675a00b0 Mon Sep 17 00:00:00 2001 From: Jose Lago Date: Mon, 19 Oct 2026 22:17:09 +0200 Subject: [PATCH] docs(release): correct the false '0 failed' claims and record the pipe mistake Both 202/211-passed-0-failed claims came from piping the suite through tail: the pipe reports tail's exit code and tail's window makes Playwright's failed-test list (indented spec paths) look like progress. Real measurement, exit code captured: 213 passed, 42 failed -- all pre-existing seed drift (pretix reseed removed the demo identities reset.ts only UPDATEs), with admin-schedule proven unrelated by rerunning it against the reverted pre-silent-refresh Schedule.tsx. Everything added this round passed. Also records the QRJZN diagnosis: skipped since Sept 9 for missing name, never importable -- the defect is that skip reasons are anonymous. --- docs/releases/2026-10-19.md | 85 ++++++++++++++++++++++++++++++++++--- 1 file changed, 80 insertions(+), 5 deletions(-) diff --git a/docs/releases/2026-10-19.md b/docs/releases/2026-10-19.md index 3e3188d..42ea8ba 100644 --- a/docs/releases/2026-10-19.md +++ b/docs/releases/2026-10-19.md @@ -489,10 +489,11 @@ field). tail runs as the wrong person), `set_registration_checked_in_tests` **15 → 24** — section 3 was **rewritten because it asserted the bug** ("points unchanged after re-check-in"). -- Sidecar **28 → 34** unit tests. -- **Full e2e: 202 passed, 0 failed** (serial, 15.1 min). Note: three concurrent - full runs against the one shared local DB produce phantom failures — run the - suite serially and alone. +- Sidecar **28 → 34** unit tests (→ 35 later today, see the verdict fix). +- **Full e2e: reported as "202 passed, 0 failed" at the time — that number was + wrong and the correction is at the end of this file.** A clean re-run with the + exit code actually captured showed 42 pre-existing seed-drift failures in the + suite; nothing in this round caused them, and every spec added today passed. - Builds: admin `index-CE_n-ZUs.js`, convivo `index-BE2x44BJ.js`; `tsc` clean in admin, convivo and e2e. @@ -638,7 +639,9 @@ transform — JS owns the final coordinates. All 6 call sites benefit. `maybeSingle()`, so the `?email=eq.…` route must answer an **object** — answering with an array silently drops the app to the login screen, which looks exactly like a broken tooltip. -- Full serial e2e: **211 passed, 0 failed.** +- Full serial e2e: reported as **"211 passed, 0 failed"** — wrong, same pipe + mistake as earlier today; see the correction section at the end of this file. + The four tooltip tests themselves passed and were mutation-checked. ## Speaker flow: pending-material chip now opens the session itself @@ -659,3 +662,75 @@ that sheet, so one tap reaches the action. since the pretix import, so the rest of that spec family only passes when an earlier spec happens to provision the seed; the fixture-provisioning pattern from `checkin-points.spec.ts` is the one that survives data changes. + +## Correction: the suite is NOT 0-failed, and how the false numbers happened + +The two "passed, 0 failed" claims earlier in this file are **incorrect**, and the +way they happened is worth recording because it can happen again to anyone: + +Every full-suite invocation was piped — `npx playwright test … | tail -N`. A pipe +returns the **last** command's exit status, so bash reported `tail`'s `0`, never +Playwright's `1`. And `tail` shows only the end of the output, which in Playwright +is the *failed-tests list printed as indented spec paths* — lines that, stripped +of everything above them, are easy to misread as progress lines. So a run with +real failures looked like a clean pass, twice, and both numbers got written into +this file and repeated to the user. + +The honest measurement, taken serially and alone with the exit code captured: + +``` +npx playwright test --workers=1 > /tmp/full.log 2>&1; echo EXIT=$? +EXIT=1 +213 passed, 42 failed (15.2m) +``` + +**The 42 failures are pre-existing seed drift, not regressions from this +round's work.** Verified rather than argued: + +- The specs' demo identities (`lena.huber@gmail.com`, `felix.berger@outlook.com`, + `duncanboyne@hotmail.co.uk`, …) belonged to the original seed. After the + pretix-import reseeding, only 1 of 5 sampled ones still exists as a contact. +- `e2e/src/helpers/reset.ts` **updates** those rows (QR token, password hash) but + never inserts them, so `login()` can never reach the app and the spec times out + in `waitForAdmitted()` — 15s per attempt, which is why the failures are spread + over 11 files (connections, checkin-attendee, profile-visibility, feedback, + session-checkin, e2e-journeys, speaker-material, sponsor, leaderboard-live, + attendee-navigation, admin-schedule). +- The one failure that could plausibly have been ours — `admin-schedule`'s + permission/network test, suspected of being broken by the silent-refresh + refactor — **fails identically when `Schedule.tsx` is reverted to its + pre-silent-refresh version**. Same failure list, same error. +- Every spec added by this round passed in that run: the 4 tooltip-containment + tests, the 6 `llm-test` verdict tests, `checkin-points` (4), `sessions-view` + (8), the extended registration-toggle suite, and the new self-provisioning + `CONV-MATERIAL-005`. + +Two rules adopted from this: + +- **Measure the harness, not the pipe.** Full-suite runs are + `> file 2>&1; echo EXIT=$?` and then the file is read. No `| tail`. +- **New real-backend specs provision their own fixtures** (the + `checkin-points.spec.ts` pattern: insert contact + registration + auth user, + delete in `finally`). `CONV-MATERIAL-005` follows it and is the only + speaker-material test that passes against the current database. Fixing + `reset.ts` to upsert the demo identities is recorded as known work in + [../next-steps.md](../next-steps.md). + +## Also today: pretix "Skipped 1" is anonymous (diagnosed, not yet fixed) + +Asked why a ticket seemed un-imported. The answer: production order `QRJZN` +(paid, €0.00, "Regular ticket", position 52542196, QR secret present) has +`attendee_email=null`, `attendee_name=""` and an empty invoice name, and +`transformPretix` skips any position with neither email nor name — correct, since +`contacts.full_name` is what the badge prints and an empty name means a blank +badge. It has been skipped since Sept 9 and was never in the database, so nothing +was lost today; 118 paid positions genuinely group to 115 attendees (two people +bought two tickets each; grouping is by email). + +The actual defect is **observability**: the skip is counted in the dialog, in the +sidecar log line and nowhere else — the `sync_runs.skipped` column stayed 0 +because the drop happens client-side before the RPC. The operator cannot see +*which* ticket or *why*. Fix direction (skipped + item name in the log and the +result dialog) is recorded in [../next-steps.md](../next-steps.md); the operator +action — fill the attendee name for `QRJZN` in pretix, the every-minute sync then +imports it on its own — needs no deploy.