Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Replace difftest model with Quint=>MBT (#1369)
* Start adding mbt using Quint model * Clean up dependencies * Start taking difftest code for mbt * Implement chain startup * Rewrite chain startup * Continue chain setup * Add trusting period * Adjust tests for fee testing * Use correct validators in RequestInitChain * Remove min and max functions * Add type annotations * Make state printing more robust * Fix setting default power reduction * Adjust max steps and run all tests * Change semantics of VotingPowerChange to take change amount, not new total * Adjust voting power choices to be changes instead of absolute values * Start refactoring relaying code * Refactor map to list of pairs * Add libraries for map rewrite * Start fixing client updates * Add ccv_happy module as a happyPath variant * Fix model: packets are emitted based on the timestamp of the last block, not the new block * Add viewer for ModelState and fix model-system equivalence checks * Add type annotations * Add ack delivery after each step * Add programmatic ways of generating traces * Make invariant optional * Pretty up the output * Add script for generating happy and normal traces * Remove message sends for consumers that were started in this block * Use .itf extension instead of .json * Start adjusting behaviour for started/stopped consumers * Use GetEmptyProtocolState instead of verbose declaration * Add expired status and set timestamps of new consumers * Add note to split up timestamps * Advance MBT prototype * Add test case for expired clients * Adjust tests for new timestamp handling * Use -1 as last timestamp when no block was comitted * Fix client expiration conditions * Start writing model with boundeddrift * Add model with bounded drift * Rename module to match filename * Add extra log output and trace gen scripts * Add Apalache output folder to gitignore * Remove expired clients * Remove different time offsets for different chains * Fix timestamp * Fix error where we would choose nondet from empty sets * Add timeout timestamps to packets * Adapt tests to the empty-validator-power behaviour * Adjust timeout test * Add logic for comparing timestamps of packets * Fix: VSCTimeout is based on EndBlocj * Add logic for timed out vsc packets * Fix vsc timeouts should happen during endblock * Revert the timestamp change * Add more diverse traces * Fix acct sequences not incrementing when messages error ot * Move from difference folder to mbt folder * Add back consumer chain stopping * Disallow empty validator sets * Add README and generate fewer traces * Remove difftest link from old docs * Revert changes to e2e tests * Fix link to MBT * Tidy go mod and use go 1.20 * Start linting * Lint files * Add nolint instruction from main * Do not check for errors for consumer chain stopping * Add mbt to makefile and CI * Move reference to difftests into reference to MBT * Remove cache npm * Fix test-mbt-cov Make instructions * Generate less traces and fix path for testing * Fix test path * Archive traces in workflow * Add long version of MBT to makefile * Use variable instead of true to better signal semantics * Update testutil/simibc/chain_util.go * Address comments * Add punctuation remoced due to main merge * Remove outdated doc line * Add Quint tests to CI * Update tests/mbt/model/ccv_model.qnt Co-authored-by: insumity <[email protected]> * Address comments * Add zero check to VotingPowerChangeToEmptyTest * Incorporate Karolos' comments * Add spacing between jobs * Update tests/mbt/model/ccv_model.qnt Co-authored-by: insumity <[email protected]> * Address comments * Remove 4 week time advancement * Upload traces even when test fails * Fix condition for trace archival * Remove unused index * Remove outdated for loop * Fix if condition for trace upload * Add comment about timestamps * Remove long time advancements * Address comments * Make comment clearer * Update tests/mbt/driver/generate_traces.sh Co-authored-by: Simon Noetzlin <[email protected]> * Update tests/mbt/run_invariants.sh Co-authored-by: Simon Noetzlin <[email protected]> * Update tests/mbt/driver/README.md Co-authored-by: Simon Noetzlin <[email protected]> * Update testutil/simibc/relayed_path.go Co-authored-by: Simon Noetzlin <[email protected]> * Update tests/mbt/driver/generate_more_traces.sh Co-authored-by: Simon Noetzlin <[email protected]> * Remove difftest folder * Minor fixes based on PR comments * Make timedout status a const * Lengthen retention to 6 days --------- Co-authored-by: insumity <[email protected]> Co-authored-by: Simon Noetzlin <[email protected]>
- Loading branch information