Repository navigation
webapi-test 0.5.0.0: a cut case is recorded, and a run's allocation budgets (zenbridge #2730) - #53
Merged
Merged
Conversation
…udgets (zenbridge #2730) - CaseOutcome gains Cut and RunTrace gains cut: closeCut closes the case a run was stopped in (time or allocation limit, thread cancelled) from the steps already pushed, at its last step, its moves ending with the one it was in. QuickCheck's end-of-case callback never fires for such a case, so it used to vanish from the trace. - Test.WebApi.Budget: withCaseBudget arms GHC's allocation limit on the case's thread; each move, as it begins (MoveBegin's perform), gets its own budget or the case's remainder, whichever is less. - moves: a run cut by its time limit while a move waits (the cancel gets through, the case is cut at its last step in the move it was in); a move over its budget, a case over its budget at a later move, light moves within both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011wn1pGkP2oCTsWbhEafdF2
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.5.0.0, for zenbridge #2730 (a Preflight run inside the platform): a run stopped part-way still says where, and a run's allocation can be budgeted.
A cut case is recorded (breaking:
CaseOutcomegainsCut,RunTracegainscut).closeCut rec why, called once the run has stopped, closes the case from the steps already pushed. It's recorded ascut, at its last step (the move it reached), its moves ending with the one it was in, and its steps kept inRunTrace.cut.Allocation budgets, a case's and a move's (
Test.WebApi.Budget).withCaseBudget AllocBudget {perCase, perMove}, around the runner that plays a case, arms GHC's allocation limit on the case's thread. Each move, as it begins (MoveBegin's perform), gets its own budget or what the case has left, whichever is less.AllocationLimitExceeded, which nothing on the way catches.Tests:
moves23/23, adding:🤖 Generated with Claude Code
https://claude.ai/code/session_011wn1pGkP2oCTsWbhEafdF2