Repository navigation
fix(ci): remove the three sources of flakiness in the weekly example runs #1482
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
7105a8f
fix(ci): remove the three sources of flakiness in the weekly example …
marc0olo d992405
docs(ci): point the mops workaround at the upstream issue
marc0olo f344cca
fix(unit_testable_rust_canister): make the download temp name process…
marc0olo 209028c
fix(unit_testable_rust_canister): validate the whole cached gzip stream
marc0olo 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 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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,16 @@ | ||
| #!/usr/bin/env bash | ||
| set -e | ||
|
|
||
| echo "=== Test 1: get_evm_block returns correct data for Ethereum mainnet block 1 ===" | ||
| result=$(icp canister call backend get_evm_block '(1)') | ||
| # Block 20000000 is post-Merge. PublicNode serves several regional node pools and some of | ||
| # them only retain history from shortly before the Merge (block ~15500000), so querying | ||
| # early blocks such as block 1 fails depending on which pool the outcall lands in. | ||
| BLOCK=20000000 | ||
| BLOCK_HASH=0xd24fd73f794058a3807db926d8898c6481e902b7edb91ce0d479d6760f276183 | ||
| BLOCK_MINER=0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5 | ||
|
|
||
| echo "=== Test 1: get_evm_block returns correct data for Ethereum mainnet block $BLOCK ===" | ||
| result=$(icp canister call backend get_evm_block "($BLOCK)") | ||
| echo "$result" | ||
| echo "$result" | grep -q "Ok" && echo "PASS (Ok variant)" || (echo "FAIL (expected Ok)" && exit 1) | ||
| echo "$result" | grep -q "0x88e96d4537bea4d9c05d12549907b32561d3bf31f45aae734cdc119f13406cb6" && echo "PASS (hash)" || (echo "FAIL (wrong hash)" && exit 1) | ||
| echo "$result" | grep -q "0x05a56e2d52c817161883f50c441c3228cfe54d9f" && echo "PASS (miner)" || (echo "FAIL (wrong miner)" && exit 1) | ||
| echo "$result" | grep -q "$BLOCK_HASH" && echo "PASS (hash)" || (echo "FAIL (wrong hash)" && exit 1) | ||
| echo "$result" | grep -q "$BLOCK_MINER" && echo "PASS (miner)" || (echo "FAIL (wrong miner)" && exit 1) |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,16 @@ | ||
| #!/usr/bin/env bash | ||
| set -e | ||
|
|
||
| echo "=== Test 1: get_evm_block returns correct data for Ethereum mainnet block 1 ===" | ||
| result=$(icp canister call backend get_evm_block '(1)') | ||
| # Block 20000000 is post-Merge. PublicNode serves several regional node pools and some of | ||
| # them only retain history from shortly before the Merge (block ~15500000), so querying | ||
| # early blocks such as block 1 fails depending on which pool the outcall lands in. | ||
| BLOCK=20000000 | ||
| BLOCK_HASH=0xd24fd73f794058a3807db926d8898c6481e902b7edb91ce0d479d6760f276183 | ||
| BLOCK_MINER=0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5 | ||
|
|
||
| echo "=== Test 1: get_evm_block returns correct data for Ethereum mainnet block $BLOCK ===" | ||
| result=$(icp canister call backend get_evm_block "($BLOCK)") | ||
| echo "$result" | ||
| echo "$result" | grep -q "Ok" && echo "PASS (Ok variant)" || (echo "FAIL (expected Ok)" && exit 1) | ||
| echo "$result" | grep -q "0x88e96d4537bea4d9c05d12549907b32561d3bf31f45aae734cdc119f13406cb6" && echo "PASS (hash)" || (echo "FAIL (wrong hash)" && exit 1) | ||
| echo "$result" | grep -q "0x05a56e2d52c817161883f50c441c3228cfe54d9f" && echo "PASS (miner)" || (echo "FAIL (wrong miner)" && exit 1) | ||
| echo "$result" | grep -q "$BLOCK_HASH" && echo "PASS (hash)" || (echo "FAIL (wrong hash)" && exit 1) | ||
| echo "$result" | grep -q "$BLOCK_MINER" && echo "PASS (miner)" || (echo "FAIL (wrong miner)" && exit 1) |
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
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.
Uh oh!
There was an error while loading. Please reload this page.