Skip to content

E2E: fetching a Regulation by business slug answers 500, deterministically #847

Description

@rubenvdlinde

tests/e2e/visual/pages.visual.spec.ts:367 (gate-26 — every page component renders its own screen › Regulation detail, resolved by business slug) fails on
development:

Error fetching learniq-Regulation/AVG: 500 Internal Server Error
{status: 500, message: An unexpected server error occurred., details: null}

It is deterministic, not a flake

Two independent runs, same error:

run result
34448499177 (07:08) 470 passed, 0 failed
34468461118 (10:54) 469 passed, 1 failed
34468461118 re-run (14:43) 469 passed, 1 failed, same 500

I called it a flake after the first failure and re-ran it. It reproduced. It is
real.

What changed, and what did not

learniq's own tree changed by one commit in that window, and it was a version
bump
(chore(release): 0.3.2-unstable.20260910105148, #846). A version number
cannot make an object fetch return 500.

What did change is openregister, which this suite installs at development
(additional-apps: [{"repo":"ConductionNL/openregister","ref":"development"}]).
Between 07:08 and 10:54 that branch took roughly a dozen commits, including
#3571 "resolve a register by any slug it has answered to" at 09:14 — which
touches register-slug resolution, and this test fetches by business slug.

⚠️ I could not prove #3571 is the cause and am not claiming it. I read
RegisterSlugResolver and it contains no throw, so the 500 is not obviously
its doing. The window and the subject matter line up; that is all.

What would settle it

Pin openregister to a ref from before 09:14 for one run. If the test passes,
the cause is in that window; if it still 500s, it is learniq's own.

The server-side stack trace behind the 500 would name it outright — the browser
only sees the status.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

triageAwaiting triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions