Repository navigation
Closes three gaps in the onboarding end-to-end test - #271
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
donetoday, 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.restarted/2now stops and restarts the application's supervised in-memory processes before every step: the engine's session runtime (Statifier.Supervisor),StatifierExamples.Charts.ExecutionLockandStatifierExamples.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 freshTask. 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_termentries for routing config, neither of which holds an execution. The moduledoc says so.:failedwith failurefailed_finaland no donedata, the run holds nothing active or invoking, and its entries narrate the setup'serroroutcome after the "Child chart refused" entry, in that order.Sabotage
Durable.start_child/5: a refused child answers:pendinginstead of the refusal (note kept):failedexpected,:activefound)restart_memory/0: stop step removed{:ok, new}assertion ({:error, :running}found)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 qualitygreen on the committed tree. Terminology and planning-id scans clean over the diff, the commit message and this body.