Repository navigation
torture: check the root, use the generated commit concurrency, run in CI - #1004
Open
citizen-stig wants to merge 3 commits into
Open
citizen-stig wants to merge 3 commits into
citizen-stig wants to merge 3 commits into
Conversation
…io_workers The supervisor draws commit_concurrency from 1..=64 and io_workers from 1..=32 for every workload and sends them in the open request, but the agent never passed them to Options. Every workload ran with the defaults, one commit worker and three I/O workers, so torture never exercised a multi-worker commit. Co-Authored-By: Claude Fable 5.2 <[email protected]>
After a crash torture compared the sync sequence number and, when asked to, the values. Values are read from the beatree. Nothing looked at the merkle pages, which are written and recovered on their own path: the hash table and its WAL. A database with every value right and a wrong root passed. The agent now reports its root, and the supervisor compares it with the root of a trie built from scratch out of the state it expects, after every commit, rollback and hash table growth, crashed or not. The snapshot keeps the hash of each value, so the expected root costs two hashes per key and no value is hashed twice. Right after opening, the root is read from the root page alone. A wrong page below it shows in the root of a later commit that goes through it. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Nothing ran torture: not CI, not a script. The new job builds it in release mode and runs seeds 6, 7 and 8 for at most 20 iterations each, with every value and the root checked after each rollback and growth. The three take two minutes on a 32-core machine. Three things kept `torture run` from working as a CI step: - A failed workload was printed and the process exited with 0. It now exits with an error. - The length of a workload came from the assigned disk space alone. `--max-iterations` bounds it. - The agent crashes with abort. Where core dumps are collected, dumping it took longer than the five seconds the supervisor waits, and the workload failed with "agent did not die": every run of seed 6 under systemd-coredump. The agent now sets its core limit to zero. `run` also logs the configuration it derived from the seed. A seed fixes the configuration, not the moment a crash lands, so a failure may not repeat. None of the three seeds uses trickfs; the job installs FUSE so that one that does can be added. Co-Authored-By: Claude Fable 5.2 <[email protected]>
citizen-stig
marked this pull request as ready for review
November 25, 2026 07:57
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.
Nothing runs torture today: not CI, not a script. And when it is run by hand, it misses two things. This makes it check more and adds a short CI job.
What torture missed
commit_concurrency(1..=64) andio_workers(1..=32) for every workload and sends them, but the agent never passed them toOptions. Every workload ran with the defaults.Commits
nomt_core::update::build_trieover the state it expects, after every commit, rollback and hash-table growth, crashed or not. The snapshot keeps each value's hash, so the expected root costs about two hashes per key.NOMT - torturejob builds torture in release mode and runs seeds 6, 7 and 8 for at most 20 iterations each. Three things kepttorture runfrom working as a CI step:--max-iterationsbounds it;abort. Where core dumps are collected, dumping it took longer than the five seconds the supervisor waits, and the workload failed with "agent did not die" (every run of seed 6 under systemd-coredump). The agent now sets its core limit to zero.What the CI seeds cover
Testing
Unexpected root at sync_seqn 3 with 19345 keysand exits with 1.Not covered, and caveats
fusermount3). The job installs FUSE so that one can be added.torture/src/agent.rs. The two merge without conflicts.🤖 Generated with Claude Code