-
Notifications
You must be signed in to change notification settings - Fork 992
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
Fix e2e tests #646
Merged
Merged
Fix e2e tests #646
Changes from 29 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
34621da
Temporarily disable eth bridge e2e tests
sug0 5840830
Disable eth full node in ledger tests
sug0 8f9c604
Add abciplus feature flag to e2e tests
sug0 1fdd1be
Fix e2e test regex matching on fullnodes
sug0 4950c44
Run make fmt
sug0 95d71af
Fix regex for valid tx in e2e tests
sug0 eb798c9
Add a script to unwrap e2e log output
sug0 7800d90
Describe unwrap e2e tests script
sug0 56350f1
Revert "Fix regex for valid tx in e2e tests"
sug0 4babd0b
Partially fix ledger_txs_and_queries() e2e test
sug0 a8f69be
Merge branch 'tiago/ethbridge/remove-ws-cli' into tiago/ethbridge/fix…
sug0 c407015
Improve logging of namadac in e2e tests
sug0 7b04bad
Re-enable ledger_txs_and_queries() e2e test
sug0 9e4044b
Update Cargo.lock
sug0 301edab
Remove TODO from ledger_txs_and_queries() e2e test
sug0 0ccc346
Re-enable and fix run_ledger() e2e test
sug0 ef4cada
Refactor update config
sug0 4e1e8bd
Downgraded problematic deps in Cargo.lock
sug0 c7c9754
More Cargo.lock madness
sug0 fec843a
Add missing import
sug0 161293a
Fix most e2e tests
sug0 d30b908
Merge tiago/ethbridge/remove-ws-cli
sug0 fa2dc59
Merge branch 'tiago/ethbridge/remove-ws-cli' into tiago/ethbridge/fix…
sug0 25f6887
Merge tiago/ethbridge/impl-events-endpoint
sug0 2e685bd
Wait for Tendermint's RPC server to start in e2e tests
sug0 7dee715
Re-enable eth bridge tests
sug0 18a8b2b
Export ANOMA_TM_STDOUT env var in e2e tests
sug0 4729acc
Disable outdated e2e test
sug0 7782750
Move e2e test utils to setup.rs
sug0 a3517df
Merge branch 'tiago/ethbridge/fix-wasms-build' into tiago/ethbridge/f…
sug0 d4f444d
Merge branch 'tiago/ethbridge/fix-valset-upd-verification' into tiago…
sug0 d4778c0
scripts: Update unwrap_e2e_log.py
sug0 3d45649
Remove extra space
sug0 f181a57
Check if a tx is applied on chain
sug0 1821861
Merge remote-tracking branch 'origin/eth-bridge-integration' into tia…
sug0 839793f
Release lock on wallet in e2e tests
sug0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# this script takes `expectrl` log outputs, such as the ones emitted by | ||
# e2e tests, and unwraps them into a more readable format | ||
|
||
import re | ||
import sys | ||
|
||
UNICODE = re.compile(r'\\u{([\da-fA-F]+)}') | ||
|
||
def main(): | ||
if len(sys.argv) > 1: | ||
with open(sys.argv[1], 'r') as f: | ||
process_file(f) | ||
else: | ||
process_file(sys.stdin) | ||
|
||
def process_file(f): | ||
for line in f.readlines(): | ||
process_line(line) | ||
sys.stdout.flush() | ||
|
||
def process_line(line): | ||
prefix = 'read: ' | ||
for m in UNICODE.findall(line): | ||
line = line.replace(f'\\u{{{m}}}', f'\\u{int(m, 16):04x}') | ||
line = eval(line[len(prefix):]) | ||
sys.stdout.write(line) | ||
|
||
if __name__ == '__main__': | ||
main() |
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
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
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
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
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.
Yep (also badly named...). There was this PR to clean it up (anoma/anoma#1229) but that's a bit stale now probably. This test is still testing something we should continue testing (that a random actor cannot write arbitarily to
EthBridge
VP storage) but this test needs cleaning up.