Repository navigation
test(spec): quint models for id pools, placement and the image store - #206
Draft
markovejnovic wants to merge 13 commits into
Draft
markovejnovic wants to merge 13 commits into
markovejnovic wants to merge 13 commits into
Conversation
quint verify exits 0 when the main module exposes no invariant definition, so a holds line could pass having checked nothing. - holds compiles the scenario first and requires an invariant, then prints TLC's state count. - violates requires TLC to name the invariant, not any violation. - Run the pinned quint from node_modules; npx falls back to a global one. - A malformed line exits 2 instead of aborting on an unbound variable, which bash 3.2 turns into exit 0 through the EXIT trap.
- placement_vm_respawn: a VM supervisor restarting under a new pid drops its reservation and keeps running, so admitted VMs exceed capacity with no Hard crash. - placement_trusting: a planted bug where admit trusts the advertised snapshot instead of the live count. Until now the snapshot changed no verdict. - unreachableLeavesNothingAdmitted replaces failedLeavesNothingBehind, which tripped on a call still in flight, before anything booted.
A drop_blob transaction that dies after File.rm leaves a row with no file. The model had no such step, so image_store_fork_vs_delete passed on a race the code plans for. - image_store_failed_drop: with DROPS_MAY_FAIL a fork published during its parent's delete links to the file-less base row. - image_store_recreate: an image re-created while it is deleted, with failing drops and the GC running. It is the only holds scenario where the GC prunes and where backed/2 contends with a drop. - A fork starts only while its parent image exists (DERIVED_FROM), and two inserts of one uncommitted blob row no longer overlap. - prune no longer re-checks the file, matching prune_rows. - exclusive accumulates holders, so writersExcludeReaders can fail.
- A failing step now names its trace, step and action and keeps ExUnit's left/right diff; before, three of four failure modes named nothing. - traces.sh takes QUINT_SEED, picks one otherwise, and prints it, so a failing batch can be regenerated. It clears old traces first. - Traces come from id_pool_replay (4 ids, 8 attempts, 2 restarts): the 2-id instance revisited the same 34 transitions. - A VM that exits now exits normally and only a respawn is a kill, so DOWN reasons normal, killed and noproc are all replayed.
Quint printed about 1,100 lines per run. The seed line is now the only output; errors still reach stderr with a non-zero exit.
- Generate traces with Quint's TypeScript backend. The Rust evaluator is fetched from api.github.com unauthenticated with no retry, which would rate-limit the Elixir job; now nothing is downloaded there and that job caches nothing of Quint's. - Pin Temurin 21 for the spec job: Apalache 0.62.4 is built for Java 21 and the runner's default JDK has only just moved past 17. - Key the Apalache cache per OS and purpose, cap the spec job at 15 minutes, and upload the traces when the Elixir job fails.
A trace generator narrowed to fewer actions (no respawns, say) left the replay green while it checked less. The test now requires every action the model has to appear in the batch. traces.sh prints its seed before generating, so a failed generation still logs it.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This was referenced Nov 30, 2026
A placement call lost mid-flight can leave a running, admitted VM whose id the caller never got
#213
Open
This branch has not been deployed
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.
complete slop