Repository navigation
webapi-test 0.6.0.0: a recorder's sink, each step as its checks have run and each case's close (zenbridge #2741) - #54
Merged
Conversation
…run and each case's close (zenbridge #2741) - A recorder hands what it records to a sink as it happens (newRecorderTo, TraceEvent): StepEnded, a step once it is final, and CaseEnded, a play's close after its last step (CaseClose: outcome, the step it failed at or reached, why, its moves, its labels). Phase tells a replayed regression case, a generated case and a narrowing try apart. - A step is final as soon as its checks have run: the state model seals it (sealStep) after its postcondition, or after its inconclusive mark, so a move's own step is handed over before its settle step begins, not when the next step is pushed. A step whose checks never ran (it failed, its case was cut) is handed over as its case closes. - The sink is called on the case's thread with asynchronous exceptions masked: an event is handed over whole or not at all. It must neither block nor throw. A recorder without a sink records as before. - A regression case cut while it replays is recorded: ReplayOutcome gains ReplayCut, replayCasesDL marks the replay it is in (beginReplay), closeCut notes it among the replays and RunTrace.cut holds it. - A regression case is replayed once: a replay QuickCheck discarded (a move that did not settle) was played again, up to ten times. - reached: where a case stopped while it was open got to. - moves: every step once and in order, each play closed after its last step; a discarded case closes too; a step as its checks left it; a move's own step handed over before its settle step begins; the first failing case, the tries and the narrowed case as the trace has them; a replay by its phase; a cut case's steps, then its close. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
webapi-test 0.6.0.0, for zenbridge #2741 (a Preflight run followed while it plays): a recorder hands what it records to a sink, as it happens.
A recorder's sink (
newRecorderTo,TraceEvent).StepEnded phase step: each step once, when it is final.CaseEnded phase close: a play closed, after its last step.CaseClosehas its outcome, the step it failed at or reached, why, its moves and the labels that held. A case QuickCheck discards closes too.Phasetells a replayed regression case, a generated case and a narrowing try apart.A step is final as soon as its checks have run.
sealStep) after its postcondition, or after its inconclusive mark, and the sink is handed it then.The sink is called on the case's thread, with asynchronous exceptions masked.
A regression case cut while it replays is recorded (breaking:
ReplayOutcomegainsReplayCut).replayCasesDLmarks the replay it is in (beginReplay).closeCutnotes it among the replays ascut, with the steps it had made, andRunTrace.cutholds it (replay k).A regression case is replayed once. A replay QuickCheck discarded (a move that did not settle) was played again, up to ten times, though it is the same case each time.
Also:
reachedsays where a case that stopped while it was open got to (its last step, and the move it was in).Tests:
moves35/35 (23 before), adding:Cost without a sink: the suite's old sections allocate 0.28% more (-O0).
🤖 Generated with Claude Code