Skip to content

Closes three gaps in the onboarding end-to-end test - #271

Merged
johnnyt merged 1 commit into
mainfrom
se-kmme-onboarding-e2e-gaps
Nov 23, 2026
Merged

johnnyt merged 1 commit into
mainfrom
se-kmme-onboarding-e2e-gaps

Conversation

@johnnyt

@johnnyt johnnyt commented Nov 23, 2026

Copy link
Copy Markdown
Member

Closes se-kmme: the three advisories the onboarding end-to-end test left open. Test-only; nothing under lib/ changes.

What each of the three became

  1. The parent's routing on a child's outcome: closed, not built. Every setup document declares the single outcome done today, so the parent has one outcome to route on, and the test already asserts each child's stored donedata outcome and the order the parent ran them. A second outcome needs a setup that can end with one, which is the open bead se-qb73 ("Let a setup document end with more than one outcome"); its fixture is where a routing assertion belongs, so no second-outcome fixture is built here. A comment in the test records this.
  2. An in-process restart of the application's memory: covered; a node restart is not. restarted/2 now stops and restarts the application's supervised in-memory processes before every step: the engine's session runtime (Statifier.Supervisor), StatifierExamples.Charts.ExecutionLock and StatifierExamples.Documents. A sentinel document held in the documents store before the restart is gone after it. Each process comes back empty and every step is taken from the stored row by a fresh Task. The repo and the Oban instance stay up, since the stored row is what a restart reads back from. What it does not clear: compiled modules and the :persistent_term entries for routing config, neither of which holds an execution. The moduledoc says so.
  3. The parent's state after a misfit refusal: covered. After the refusal the stored parent is :failed with failure failed_final and no donedata, the run holds nothing active or invoking, and its entries narrate the setup's error outcome after the "Child chart refused" entry, in that order.

Sabotage

Mutation Applied Red on Restored
Durable.start_child/5: a refused child answers :pending instead of the refusal (note kept) yes the stored parent's status assertion (:failed expected, :active found) byte-equal, recompiled
restart_memory/0: stop step removed yes the restart's {:ok, new} assertion ({:error, :running} found) byte-equal, recompiled

The second row pins that the restart happens; it does not show which process's state a step would have leaned on. The notes sit in the test's comment block.

Provenance

Item 1's closure and item 2's choice of processes to restart are engineering calls inside the footprint, taken on the brief's recommendation.

Checks

Full mix quality green on the committed tree. Terminology and planning-id scans clean over the diff, the commit message and this body.

The restart step now stops and restarts the application's in-memory
processes (the engine runtime, the per-execution lock and the edited
documents store) before each step, so every step is taken from the
stored row alone. The misfit case now asserts the parent's state after
the refusal: the stored execution is failed with no donedata, the run
holds nothing active, and the error outcome of the setup is narrated.
The parent's routing on a child's outcome is left to se-qb73, which
lets a setup end with a second outcome; a comment in the test says so.

Refs: se-kmme
@johnnyt
johnnyt merged commit 8042586 into main Nov 23, 2026
4 checks passed
@johnnyt
johnnyt deleted the se-kmme-onboarding-e2e-gaps branch November 23, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant