docs: seed drift, pretix skip observability, new-suite run books, current-state refresh
tests.md: new 'Full E2E Suite Status' opener -- suite is NOT green (213/42, 2026-10-19, exit 1); the pipe-through-tail trap that produced two false '0 failed' records; seed-drift mechanism (config.ts identities gone, reset.ts UPDATE-only no-ops, logins hang); 11 failing families; admin-schedule exonerated by the reverted-Schedule.tsx check; fix direction (upsert demo identities, self-provision new specs). Four new run sections: llm-connection (three-state verdict), tooltip containment (mutation-validated provenance), CONV-MATERIAL-005 (self-contained fixture pattern), corrected counts (sidecar 35, checkin-points 4). pretix.md: 'Positions that never become registrations' -- the email+name guard, the 118->115 grouping on production numbers, and the anonymous-Skipped gap (QRJZN case study, sync_runs.skipped never sees client-side drops). next-steps.md: new 'Known work (open as of 2026-10-19)' section (seed drift, skip observability, QRJZN operator action); stale cross-cutting items marked done (subdomains live, printing shipped after the 'skipped by decision' note, testing exists); Open decisions cleared; current-state blockquote extended through the 2026-10-19 round. Co-authored-by: Stephan Charles <[email protected]> Co-authored-by: Amelia Hernandez <[email protected]> Co-authored-by: Markus Franz <[email protected]> Co-authored-by: Sabrina Hota <[email protected]> Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
1 parent
bd157ac4f5
commit
e243b83a56
3 files changed
+227
-22
No files matched your search
@@ -164,6 +164,29 @@ The sidecar **polls paid orders every minute** and, for each order:
|
||||
[sidecar.md](./sidecar.md)); the RPC upserts contacts + registrations
|
||||
transactionally and is idempotent on re-run.
|
||||
|
||||
### Positions that never become registrations
|
||||
|
||||
Two rules in `transformPretix` (`apps/sidecar/src/server.js`) drop positions
|
||||
**client-side, before the RPC ever runs**: canceled positions, and positions with
|
||||
**neither an email** (`attendee_email` → order `email`) **nor a name**
|
||||
(`attendee_name` → invoice name) — a contact without `full_name` prints a blank
|
||||
badge, so refusing is deliberate. Both count into the admin dialog's single
|
||||
**Skipped** number. Concretely on production (2026-10-19): 118 paid positions →
|
||||
115 attendees, 1 skipped, and 2 emails holding two tickets each (grouping keeps
|
||||
the first position's `secret` + external id, while the highest-priority ticket
|
||||
type across that email's positions wins: attendee < speaker < sponsor < staff).
|
||||
|
||||
The known gap: **the skip is anonymous.** The count appears in the dialog and in
|
||||
the sidecar log line, but never *which* order or *which* field was missing, and
|
||||
`sync_runs.skipped` stays 0 because those positions never reached the RPC.
|
||||
Diagnosing one required querying pretix by hand (order `QRJZN`: paid €0.00,
|
||||
`attendee_email=null`, both name fields empty — skipped since Sept 9, never
|
||||
importable, nothing lost by any deploy). Logging the skipped order code + item +
|
||||
missing field, and listing them in the result dialog, is open work
|
||||
([../next-steps.md](../next-steps.md)); organiser-held €0 tickets with no
|
||||
attendee name may also deserve an explicit product answer rather than a silent
|
||||
skip.
|
||||
|
||||
## Source
|
||||
|
||||
- [REST API overview](https://docs.pretix.eu/dev/api/)
|
||||
|
||||
+160
-6
@@ -1,3 +1,154 @@
|
||||
# Full E2E Suite Status
|
||||
|
||||
The suite is **31 spec files / 255 tests** (`npx playwright test --list`), and it
|
||||
is **not currently green** — the next person to run it will hit this
|
||||
immediately, so it is recorded before any run list: a clean serial run on
|
||||
2026-10-19 gave **213 passed, 42 failed** (exit code **1**).
|
||||
|
||||
```sh
|
||||
cd e2e
|
||||
npx playwright test --workers=1 > /tmp/full.log 2>&1; echo EXIT=$?
|
||||
# then read /tmp/full.log
|
||||
```
|
||||
|
||||
> **Never read a full-suite result through a pipe.** `... | tail -3` reports
|
||||
> **tail's** exit code — `0` — even when Playwright failed, and it shows only
|
||||
> the end of the output, where the failed-tests list is easy to misread as
|
||||
> progress. This burned the team twice on 2026-10-19 and produced two false
|
||||
> "0 failed" records before the correction; see the
|
||||
> [release record](../releases/2026-10-19.md). Redirect to a file, capture
|
||||
> `echo EXIT=$?`, then read the file.
|
||||
|
||||
Run **one full suite at a time**: every spec shares a single Postgres, and two
|
||||
suites racing produce phantom failures.
|
||||
|
||||
The 42 failures are **pre-existing seed drift, not regressions**. The
|
||||
mechanism: `e2e/src/helpers/config.ts` hardcodes the demo identities of the
|
||||
*original* seed (`[email protected]`, `[email protected]`,
|
||||
`[email protected]`, …), and the pretix import replaced the attendee
|
||||
data on this database — only 1 of 5 sampled seed contacts still exists.
|
||||
`e2e/src/helpers/reset.ts` then only **UPDATE**s those rows (assigning the
|
||||
speaker's `qr_token`, re-hashing the auth password); it inserts nothing except
|
||||
the sponsor, which was never in the seed either. An UPDATE against a missing
|
||||
row affects **0 rows and raises nothing** — the reset passes silently and the
|
||||
spec hangs in `login()` → `waitForAdmitted()`, because the login can never
|
||||
succeed for a contact that does not exist. Each attempt burns the full timeout,
|
||||
which is why the failures sprawl across 11 files: connections (8),
|
||||
checkin-attendee (6), speaker-material (5 — every test except the
|
||||
self-contained `CONV-MATERIAL-005`), profile-visibility (5), feedback (5),
|
||||
session-checkin (3), e2e-journeys (6), sponsor (1), leaderboard-live (1),
|
||||
attendee-navigation (1), admin-schedule (1).
|
||||
|
||||
The one failure that could plausibly have been recent work — admin-schedule's
|
||||
"permission and network failures keep the visible schedule intact", suspected
|
||||
of the silent-poll refactor — **fails identically when `Schedule.tsx` is
|
||||
replaced with its pre-silent-refresh version**. Same failure, same error; the
|
||||
refactor is exonerated. The check was run on 2026-10-19 as recorded in the
|
||||
[release record](../releases/2026-10-19.md); it needs no re-verification, and
|
||||
re-running it would mean temporarily reverting a source file.
|
||||
|
||||
**Fix direction (known work, not yet done):** make `reset.ts` *provision* the
|
||||
demo contacts, registrations and auth users — upsert them the way
|
||||
`ensureSponsor()` already does — instead of assuming the seed rows still exist.
|
||||
The specs that provision themselves are exactly the ones that survived the data
|
||||
change: `checkin-points.spec.ts` and `CONV-MATERIAL-005` insert their own
|
||||
fixtures and delete them in a `finally`, and both passed in the same run that
|
||||
produced the 42 failures. Until `reset.ts` is converted, new real-backend
|
||||
specs should follow that self-provisioning pattern rather than the shared
|
||||
identities.
|
||||
|
||||
# LLM Connection Test Regression
|
||||
|
||||
No migration is involved — the change is how the Settings "Validate AI
|
||||
connection" verdict reads the reasoning-token counter. Run:
|
||||
|
||||
```sh
|
||||
npm test --prefix apps/sidecar # 35 unit tests, 6 of them llm-test
|
||||
CONVIVO_ADMIN_URL=http://127.0.0.1:3001 npm test --prefix e2e -- llm-connection-test.spec.ts --project=chromium
|
||||
```
|
||||
|
||||
The production gateway (ai.lago.dev) answers with
|
||||
`completion_tokens_details: {}` — it reports **no** reasoning counter at all.
|
||||
Treating "not reported" as "still thinking" would tell an admin that a working
|
||||
configuration is broken, so the verdict keeps three reasoning states apart, and
|
||||
`llm-connection-test.spec.ts` (**6 tests**, API-mocked — it stubs
|
||||
`**/sidecar/llm-settings` and `**/sidecar/llm-test`) pins each one on the real
|
||||
Settings screen: a reported `reasoning_tokens: 0` renders the green
|
||||
`.llm-test-result.good` with no warning; a reported `null` renders the new
|
||||
neutral `.llm-test-result.neutral` — no warning, a headline that does **not**
|
||||
contain "still thinking", and copy saying the endpoint does not report a
|
||||
counter instead of asserting thinking is off; a reported non-zero renders
|
||||
`.warn` with the warning and the token count. A failed test (`ok: false`)
|
||||
renders `.bad` with the provider's error and **no** reasoning line at all, and
|
||||
the button stays usable.
|
||||
|
||||
The spec also guards two states that are easy to get wrong: the **dirty-form
|
||||
lock** (the button is disabled while `#llm-endpoint` differs from the stored
|
||||
settings — the API key never reaches the browser, so only saved settings can
|
||||
be exercised — and re-enables after the edit is reverted) and the **in-flight
|
||||
state** (progress visible, button disabled, and exactly **1** request leaves —
|
||||
a `POST` carrying the admin's `Bearer` token). The verdict contract itself is
|
||||
unit-tested on the sidecar side: **35** tests in the suite, **6** of them
|
||||
covering `llm-test`.
|
||||
|
||||
# Tooltip Containment Regression
|
||||
|
||||
No migration is involved. Run:
|
||||
|
||||
```sh
|
||||
CONVIVO_ADMIN_URL=http://127.0.0.1:3001 npm test --prefix e2e -- tooltip-containment.spec.ts --project=chromium
|
||||
```
|
||||
|
||||
A tooltip is portal-rendered so a table's `overflow` cannot clip it — but that
|
||||
never kept it inside the **viewport**: the card was centred on its trigger with
|
||||
a fixed width, so every tooltip attached to a right-aligned control ran off the
|
||||
right edge and its text was unreachable. That was the user-reported bug on the
|
||||
Sessions "Generate AI Feedback Summary" tooltip; all six call sites benefit
|
||||
from the shared `Tooltip` fix, which measures the laid-out card, clamps it into
|
||||
the viewport, flips it below when there is no room above, and re-aims the arrow
|
||||
after any sideways shift.
|
||||
|
||||
`tooltip-containment.spec.ts` (**4 tests**, API-mocked admin) asserts the
|
||||
measured geometry rather than the implementation: the `.tip-card` rectangle is
|
||||
fully inside the viewport on all four edges (`x >= 0`, `x + width <= viewport
|
||||
width`, same for `y`), the card does not widen
|
||||
`document.documentElement.scrollWidth`, and `.tip-arrow` still points at the
|
||||
trigger after the card is pushed sideways. It runs on the Sessions summary
|
||||
button at wide (**1280 px**), narrow (**700 px**) and short (**260 px** —
|
||||
genuinely no room above, forcing the flip-below `.tip-below` placement)
|
||||
viewports, and on the Registrations points-exempt marker at **1100 px**.
|
||||
Provenance matters when reading these tests: they were validated by
|
||||
**temporarily reverting the Tooltip fix — 3 of 4 fail on the old centring
|
||||
code** — so they guard the real bug, not a decorative behaviour. Mock gotcha
|
||||
recorded in the spec: the admin auth path reads the contact with
|
||||
`maybeSingle()`, so the `?email=eq.…` route must answer a single **object** —
|
||||
answering with an array silently drops the app to the login screen, which
|
||||
looks exactly like a broken tooltip.
|
||||
|
||||
# Speaker Pending-Material Pill Regression
|
||||
|
||||
The red 📎 pill on Home opened its sheet, but tapping a session there only did
|
||||
`go('agenda')` — dropping the speaker on the Agenda list to hunt for the very
|
||||
talk the pill had just named. It now opens the shared `SessionDetail` sheet
|
||||
over Home, the way "My picks today" already behaves, with the upload form
|
||||
inside. No migration is involved. Run:
|
||||
|
||||
```sh
|
||||
CONVIVO_BASE_URL=http://127.0.0.1:3000 npm test --prefix e2e -- speaker-material.spec.ts --grep CONV-MATERIAL-005 --project=chromium
|
||||
```
|
||||
|
||||
`CONV-MATERIAL-005` (in `speaker-material.spec.ts`, **6 tests** in the file)
|
||||
drives the real backend and is **self-contained**: it provisions its own
|
||||
speaker on a real session that has no material — contact, registration,
|
||||
`session_speakers` row and auth user — and deletes all four in a `finally`.
|
||||
That matters because the §27/§28 demo speaker the rest of the spec family logs
|
||||
in as belongs to the old seed and is gone since the pretix import; see
|
||||
[Full E2E Suite Status](#full-e2e-suite-status). The test clicks the pill,
|
||||
then the session in the "Pending material" sheet, and asserts the upload
|
||||
notice and upload form are visible while the **Home tab is still active** —
|
||||
the sheet opened in place, it did not navigate. Validated by mutation:
|
||||
putting `go('agenda')` back makes the test fail.
|
||||
|
||||
# Front-Desk Gate + Badge Copies Regression
|
||||
|
||||
After applying `20261019110000_front_desk_gate_and_badge_copies.sql`, run the
|
||||
@@ -96,9 +247,9 @@ asserts the toggle ON re-awards exactly what those rows justify (30), that a
|
||||
second ON adds 0, that an off→on round trip restores 30 both times, and that a
|
||||
staff contact's toggle removes 0 and adds 0.
|
||||
|
||||
`checkin-points.spec.ts` is the end-to-end proof against the **real** database,
|
||||
which is what the original complaint needed (the scanner appeared not to award
|
||||
the +10):
|
||||
`checkin-points.spec.ts` (4 tests) is the end-to-end proof against the **real**
|
||||
database, which is what the original complaint needed (the scanner appeared not
|
||||
to award the +10):
|
||||
|
||||
- **CONV-PTS-001** the welcome check-in pays +10, the confirm sheet promises it
|
||||
*before* the write, the result sheet says `+10 pts · now 10`, the registration
|
||||
@@ -279,9 +430,12 @@ CONVIVO_ADMIN_URL=http://127.0.0.1:3001 npm test --prefix e2e -- feedback-ai-sum
|
||||
|
||||
The SQL fixture is rollback-only: eight assertions cover RLS, grants, deprecated
|
||||
stub permissions, service-role persistence, admin/non-admin reads and cascades.
|
||||
Unit tests cover provider payload privacy, settings-key redaction and retention,
|
||||
scope isolation, empty feedback, errors, duplicate requests and private-address
|
||||
rejection and multi-page snapshots. Eight API-mocked browser tests cover settings,
|
||||
Unit tests (**35** in the suite today) cover provider payload privacy,
|
||||
settings-key redaction and retention, scope isolation, empty feedback, errors,
|
||||
duplicate requests and private-address rejection and multi-page snapshots, plus
|
||||
the six `llm-test` verdict checks listed in
|
||||
[LLM Connection Test Regression](#llm-connection-test-regression).
|
||||
Eight API-mocked browser tests cover settings,
|
||||
manual event/session generation, restored summaries, disabled states, pagination,
|
||||
retry and desktop/mobile layouts.
|
||||
These tests do not send real feedback to any LLM or send login emails.
|
||||
|
||||
+44
-16
@@ -53,10 +53,17 @@ current phase.
|
||||
> quick action deep-links into it), a new APPE Admin **Reports** view with an
|
||||
> on-screen post-event summary + session-feedback summary and CSV / Excel / PDF
|
||||
> export served by a new sidecar `POST /export` endpoint, and a per-session
|
||||
> aggregate header in the Activity session-feedback tab).
|
||||
> Remaining work is cross-cutting (deployment, testing, and the ticket/Pretix
|
||||
> sync that will consume the speaker links by email). **Badge printing was
|
||||
> evaluated and skipped by decision** (no printing feature was built).
|
||||
> aggregate header in the Activity session-feedback tab), and — since that
|
||||
> paragraph was written — **production deployment** (`appe.at` subdomains, TLS,
|
||||
> NPM), **Pretix ticket sync** (every-minute sidecar import; it superseded the
|
||||
> seed attendees), **badge printing** (the earlier "evaluated and skipped"
|
||||
> decision was reversed — pgmq queue + Pi stations, see
|
||||
> [backend/printing.md](./backend/printing.md)), and the **2026-10-19 round**
|
||||
> (welcome check-in +10 + restore-on-toggle + visible staff exclusion, Sessions
|
||||
> view with bulk AI summaries, silent admin refresh, `POST /llm-test` connection
|
||||
> validation, tooltip viewport containment, pending-material deep link; deployed
|
||||
> — [releases/2026-10-19.md](releases/2026-10-19.md)).
|
||||
> Remaining work is listed under **Known work** below.
|
||||
|
||||
## Done
|
||||
|
||||
@@ -548,25 +555,46 @@ printing was evaluated and skipped by decision** — no printing feature was bui
|
||||
- **Activity → Session feedback** gains a compact **per-session aggregate
|
||||
header** (average + count per session).
|
||||
|
||||
## Known work (open as of 2026-10-19)
|
||||
|
||||
- **E2E seed drift — 42 specs currently red.** The pretix reseed removed the
|
||||
demo identities `e2e/src/helpers/config.ts` hardcodes, and
|
||||
`e2e/src/helpers/reset.ts` only **updates** those rows (a no-op against
|
||||
missing contacts), so every login-based spec hangs until timeout. Fix: make
|
||||
`reset.ts` **upsert** the demo contacts / registrations / auth users the way
|
||||
`ensureSponsor` and the newer self-provisioning specs
|
||||
(`checkin-points.spec.ts`, `CONV-MATERIAL-005`) already do; new real-backend
|
||||
specs should provision their own fixtures. Full diagnosis + the failing-family
|
||||
list in [backend/tests.md](./backend/tests.md#full-e2e-suite-status).
|
||||
- **Pretix skipped positions are anonymous.** The dialog and sidecar log report
|
||||
only a **count**; which order was skipped and which field (email/name) was
|
||||
missing is nowhere, and `sync_runs.skipped` never sees it (the drop is
|
||||
client-side). Log + surface order code, item and missing field; decide whether
|
||||
organiser-held €0 tickets without an attendee name need explicit handling
|
||||
instead of a skip. Details in
|
||||
[backend/pretix.md](./backend/pretix.md#positions-that-never-become-registrations).
|
||||
- **Operator action, no deploy:** pretix order `QRJZN` (paid, €0.00, no attendee
|
||||
name) needs its name filled in pretix; the every-minute sync imports it
|
||||
automatically afterwards. Until then that paid ticket has no registration and
|
||||
its holder cannot enter the app.
|
||||
|
||||
## Cross-cutting / later
|
||||
|
||||
- **Subdomains** — `convivo.appe.at`, `admin.appe.at`, `db.appe.at` don't exist
|
||||
yet; everything is on localhost. DNS + TLS + a reverse proxy in front of the
|
||||
Supabase core will be needed for a real deployment. The target VM and its
|
||||
access credentials are documented in [deployment.md](./deployment.md).
|
||||
- **Subdomains** — done: `convivo.appe.at` and `admin.appe.at` are live behind
|
||||
Nginx Proxy Manager with TLS; `db.appe.at` remains reserved and unused. Access
|
||||
+ evidence in [deployment.md](./deployment.md).
|
||||
- **Push notifications** — connection requests are currently seen when the app
|
||||
is opened. (Out of scope for v1.)
|
||||
- **Testing** — no automated tests yet. Candidates: RPC unit tests (points
|
||||
idempotency, role guards), and an E2E smoke test (login → check-in →
|
||||
leaderboard).
|
||||
- **Testing** — done: SQL RPC suites, sidecar unit tests and a 31-file
|
||||
Playwright suite exist ([backend/tests.md](./backend/tests.md)); what remains
|
||||
is the seed-drift repair above.
|
||||
|
||||
## Open decisions (need user input)
|
||||
|
||||
**Still open:**
|
||||
1. **AI provider** — which LLM/API for `ai_generated_feedback` (the admin
|
||||
"Evaluate" button is still a stub).
|
||||
4. **Deployment target** — stay on localhost, or plan for the `appe.at`
|
||||
subdomains now?
|
||||
None open. Formerly listed here and now resolved: the AI provider (an
|
||||
admin-configured OpenAI-compatible endpoint, live at `ai.lago.dev`, see
|
||||
[backend/feedback-ai.md](./backend/feedback-ai.md)) and the deployment target
|
||||
(the `appe.at` VM, see [deployment.md](./deployment.md)).
|
||||
|
||||
## How to pick up work
|
||||
|
||||
|
||||
Reference in new issue
Block a user