-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MBT for ICS03 #701
Merged
Merged
MBT for ICS03 #701
Changes from all commits
Commits
Show all changes
124 commits
Select commit
Hold shift + click to select a range
413d3f4
Add ICS02 model
vitorenesduarte 065631e
Add MBT test driver
vitorenesduarte b98c7d3
Add ICS02TestExecutor
vitorenesduarte 6685cc1
Add another apalache counterexample
vitorenesduarte f863486
Fix ICS02.tla: client counter starts at 0
vitorenesduarte cd0d0a6
Check for errors in MockContext.deliver
vitorenesduarte 02c020b
Handle errors in MBT tests
vitorenesduarte a5d06c5
Remove SyntheticTendermint mock context
vitorenesduarte 356c6d2
More idiomatic check_next_state
vitorenesduarte 6ab8611
Buffered file reads
vitorenesduarte 490d77b
Make extract_handler_error_kind generic over the IBC handler
vitorenesduarte 92b843c
Support multiple chains in MBT
vitorenesduarte d57cf41
Make eyre a dev-dependency
vitorenesduarte f4dbe00
s/ICS0/IBC on TLA files
vitorenesduarte 20867a5
Initial support for conn open init
vitorenesduarte e5e2f7b
Start connection and channel identifiers at 0
vitorenesduarte b9ca90a
Add conn open init to TLA spec
vitorenesduarte f3cd434
Represent clients with a record in TLA spec
vitorenesduarte 4167d29
Finish connection open init
vitorenesduarte 7755fec
s/state/step
vitorenesduarte 70e70f6
Minimize diff
vitorenesduarte 44747d3
Merge branch 'master' into vitor/ics02_mbt
vitorenesduarte 41d34d3
Modularize TLA spec
vitorenesduarte 1f9881c
TLA format convention
vitorenesduarte e2605bb
s/Null/None
vitorenesduarte 5b98a7e
Sketch conn open try; Model chain's height
vitorenesduarte 244efa6
Bound model space
vitorenesduarte 7d9202a
Only update chain height upon success
vitorenesduarte 28879f0
Check that chain heights match the ones in the model
vitorenesduarte a870537
Sketch conn open try
vitorenesduarte a533def
Sketch conn open try
vitorenesduarte 1cdb02a
Model missing connections and connection mismatches in conn open try
vitorenesduarte 0186a1c
Trigger bug in conn open try
vitorenesduarte f777144
Merge branch 'master' into vitor/ics02_mbt
vitorenesduarte 6b6cd43
Go back to previous way of generating connection and channel ids
vitorenesduarte 6186bec
Disable failing MBT test
vitorenesduarte a7b50d7
Fix panic in conn open try when no connection id is provided
vitorenesduarte 5b66aac
ICS02TestExecutor -> IBCTestExecutor
vitorenesduarte 095433e
Merge branch 'vitor/conn_open_try' into vitor/ics02_mbt
vitorenesduarte f2194cf
Failing MBT test now passes with #615
vitorenesduarte 7bdd3b6
Add notes on MBT
vitorenesduarte 9ee48bd
Remove ICS02
vitorenesduarte 035651e
Add README
vitorenesduarte b6854ce
Improve README
vitorenesduarte cd484a6
Remove MBT intro
vitorenesduarte d69d15e
new lines
vitorenesduarte b4aea95
Merge branch 'master' into vitor/ics02_mbt
vitorenesduarte 5e9dd63
Make MBT README more easily discoverable
vitorenesduarte fb20ce0
IBCTestExecutor: Map from ChainId (instead of String) to MockContext
vitorenesduarte 75db6bb
s/epoch/revision
vitorenesduarte a102863
Move from eyre to thiserror
vitorenesduarte 2e5d6de
Improve README
vitorenesduarte dfb683d
Improve README
vitorenesduarte 7e24841
Improve arguments order in modelator::test
vitorenesduarte 5d6bf08
Improve chain identifiers
vitorenesduarte 60e4aba
Improve README
vitorenesduarte c700ba5
Start ICS03
vitorenesduarte c1206ae
Merge branch 'master' into vitor/mbt_ics03
vitorenesduarte 7233987
Store all client heights and improve names in model output actions to…
vitorenesduarte ca8b839
Parse Action as an internally tagged enum
vitorenesduarte 01b557b
merge master
vitorenesduarte b37982a
Separate action apply from action outcome checking
vitorenesduarte acbe0d8
improve conn open try enabling condition
vitorenesduarte 28ee9a9
Fix IBCTests.tla
vitorenesduarte 129ff9b
Add connectionProofs to each chain in TLA model
vitorenesduarte 1d6d5e9
Generate actions in the handlers
vitorenesduarte 00afd55
Save proofs in counterparty chain upon a successful action
vitorenesduarte 8a2581d
Reduce state space
vitorenesduarte cf54ff4
Update tests
vitorenesduarte 5e04972
Fix ICS02UpdateClient
vitorenesduarte a8023f2
Allow a conn open try to succeed only after a conn open init
vitorenesduarte e9af4de
Improve modelator's error
vitorenesduarte 3575491
Generate tests
vitorenesduarte 5170cc1
Add MockContext::host_oldest_height
vitorenesduarte 3b83a64
Update CHANGELOG
vitorenesduarte fc6a238
Update CHANGELOG
vitorenesduarte 5663b14
Merge branch 'vitor/overflow' into vitor/mbt_ics03
vitorenesduarte 4da1d34
Fix conn open ack tests
vitorenesduarte 56382c4
Update CHANGELOG.md
vitorenesduarte c851c33
Remove MockContext::host_chain_history_size
vitorenesduarte 9b6d29a
Merge branch 'vitor/overflow' of https://github.com/informalsystems/i…
vitorenesduarte f4e8c27
Fix clippy
vitorenesduarte 7fa9932
Fix clippy
vitorenesduarte d5aa60a
Merge branch 'vitor/overflow' into vitor/mbt_ics03
vitorenesduarte b4f31b2
Fix ICS03_ConnectionOpenTry
vitorenesduarte 4bd0ea9
Finish connection open try
vitorenesduarte 87bd1d7
Start conn open ack
vitorenesduarte b1115a9
merge master
vitorenesduarte daccb9b
merge master
vitorenesduarte f751e0e
handle ICS03ConnectionOpenAckOK
vitorenesduarte 04b60bb
Merge branch 'master' into vitor/overflow
vitorenesduarte a2f40c8
merge master
vitorenesduarte 1c6bd3a
Add conn open ack
vitorenesduarte ff4fbde
potential bug
vitorenesduarte ebb8569
Finish conn open ack
vitorenesduarte 5f10217
Add conn open confirm
vitorenesduarte 5a051af
Fix conn open ack
vitorenesduarte 122210b
add conn open ack and conn open confirm failing tests
vitorenesduarte ac70ba3
updated height on successful conn open confirm
vitorenesduarte 1d63ca9
Allow a conn open ack to succeed
vitorenesduarte b889b7b
Remove invalid test
vitorenesduarte abc29d8
merge vitor/open-ack
vitorenesduarte 52a3390
enable all tests
vitorenesduarte 0ef4b5a
merge master
vitorenesduarte a173dcd
update CHANGELOG
vitorenesduarte d25cc7b
fix CHANGELOG
vitorenesduarte 96c4c6e
Merge branch 'vitor/open-ack' into vitor/mbt_ics03
vitorenesduarte 067fc0c
fix CHANGELOG
vitorenesduarte 809effb
Minimize diff
vitorenesduarte a3e95d3
Minimize diff
vitorenesduarte bf7c81d
Update README
vitorenesduarte 731dcc9
Fix clippy
vitorenesduarte 7269ee2
Merge branch 'vitor/open-ack' into vitor/mbt_ics03
vitorenesduarte ce23256
update README
vitorenesduarte 6c7ee61
update README
vitorenesduarte 53e2a08
Make MsgConnectionOpenAck.counterparty_connection_id not an Option
vitorenesduarte 93a133b
Merge branch 'vitor/open-ack' into vitor/mbt_ics03
vitorenesduarte dda8c6f
Make MsgConnectionOpenAck.counterparty_connection_id not an Option
vitorenesduarte 40adce4
Merge branch 'vitor/open-ack' into vitor/mbt_ics03
vitorenesduarte a8dbfe1
Fix test executor
vitorenesduarte 0c5e9e4
Update README.md
vitorenesduarte eabf89d
Update README.md
vitorenesduarte 4b0910a
merge master
vitorenesduarte 6b66f7e
Uninit -> Uninitialized
vitorenesduarte File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit, but I'd suggest the same improvement as before 5d6bf08
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change in 5d6bf08 was reverted because the model doesn't know about revisions. Also, when generating the actual
ChainId
on the Rust side, we would get"chain-A-0-0"
:https://github.com/informalsystems/ibc-rs/blob/3e513dbfd96fca6de0b2507bab5baff936b9864d/modules/tests/executor/mod.rs#L96-L98