Skip to content
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

EVM integration tests #1241

Merged
merged 31 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e4fc527
in progress
jewei1997 Jan 13, 2024
82ee403
in progress
jewei1997 Jan 14, 2024
2d03c39
cast integration script works
jewei1997 Jan 16, 2024
cd9118d
remove unused script
jewei1997 Jan 16, 2024
fb94366
try to get hardhat tests to run
jewei1997 Jan 16, 2024
56e7cff
try to get integration tests to run again
jewei1997 Jan 16, 2024
0be1627
try to fix gh actionsg
jewei1997 Jan 16, 2024
5b68f21
fix integration gh action
jewei1997 Jan 16, 2024
ba19e98
another fix
jewei1997 Jan 16, 2024
47404c8
add hardhat test yaml
jewei1997 Jan 16, 2024
bc46ecd
add npm ci
jewei1997 Jan 16, 2024
48cf4b0
comment out other integration tests
jewei1997 Jan 16, 2024
92ba7e3
try two modules and remove node install
stevenlanders Jan 16, 2024
16d2c23
try without the setup-node to see if it prevented docker starting
stevenlanders Jan 16, 2024
6fbfc3e
attempt docker not in background to see log
stevenlanders Jan 16, 2024
094d237
try background again
stevenlanders Jan 16, 2024
355f1ab
unremove sending DONE to build.complete
jewei1997 Jan 17, 2024
871f1ae
remove foundry installation in docker container
jewei1997 Jan 17, 2024
b494fe6
remove more foundry stuff
jewei1997 Jan 17, 2024
6a38c1d
remove cast stuff from hardhat test runner
jewei1997 Jan 17, 2024
0591f46
install node v16 in integration test gh workflows
jewei1997 Jan 17, 2024
0f44f86
remove commented out code for calling setup_evm.sh
jewei1997 Jan 17, 2024
f13f536
fix indentation in gh workflows
jewei1997 Jan 17, 2024
7fa1e1c
put in dummy verifier
jewei1997 Jan 17, 2024
ac67b16
add package-lock.json
jewei1997 Jan 17, 2024
7c062f9
have log fetching test search from block 0 to latest instead
jewei1997 Jan 17, 2024
d641bc8
uncomment other integration tests + polish
jewei1997 Jan 17, 2024
7f67a9d
fix foundry test, unexpected fuzz test
jewei1997 Jan 17, 2024
bb3ae74
call testRevert revertIfTrue in hardhat test as well
jewei1997 Jan 17, 2024
c29f5f3
Merge branch 'evm' into evm-integration-tests
jewei1997 Jan 17, 2024
3ae1adc
Merge branch 'evm' into evm-integration-tests
jewei1997 Jan 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
comment out other integration tests
  • Loading branch information
jewei1997 committed Jan 16, 2024
commit 48cf4b07a43ef6bae98a2a2459d2d652f648236c
133 changes: 65 additions & 68 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,71 +26,71 @@ jobs:
fail-fast: false
matrix:
test: [
{
name: "Dex & Wasm Module",
scripts: [
"docker exec sei-node-0 integration_test/contracts/deploy_dex_contract.sh mars",
"python3 integration_test/scripts/runner.py integration_test/dex_module/place_order_test.yaml",
"python3 integration_test/scripts/runner.py integration_test/dex_module/cancel_order_test.yaml",
"docker exec sei-node-0 integration_test/contracts/deploy_timelocked_token_contract.sh",
"python3 integration_test/scripts/runner.py integration_test/wasm_module/timelocked_token_delegation_test.yaml",
"python3 integration_test/scripts/runner.py integration_test/wasm_module/timelocked_token_admin_test.yaml",
"python3 integration_test/scripts/runner.py integration_test/wasm_module/timelocked_token_withdraw_test.yaml",
"docker exec sei-node-0 integration_test/contracts/deploy_timelocked_token_contract.sh",
"python3 integration_test/scripts/runner.py integration_test/wasm_module/timelocked_token_emergency_withdraw_test.yaml"
]
},
{
name: "Mint & Staking & Bank Module",
scripts: [
"python3 integration_test/scripts/runner.py integration_test/staking_module/staking_test.yaml",
"python3 integration_test/scripts/runner.py integration_test/bank_module/send_funds_test.yaml",
"python3 integration_test/scripts/runner.py integration_test/mint_module/mint_test.yaml"
]
},
{
name: "Gov & Oracle & Authz Module",
scripts: [
"python3 integration_test/scripts/runner.py integration_test/gov_module/gov_proposal_test.yaml",
"python3 integration_test/scripts/runner.py integration_test/gov_module/staking_proposal_test.yaml",
"python3 integration_test/scripts/runner.py integration_test/oracle_module/verify_penalty_counts.yaml",
"python3 integration_test/scripts/runner.py integration_test/oracle_module/set_feeder_test.yaml",
"python3 integration_test/scripts/runner.py integration_test/authz_module/send_authorization_test.yaml",
"python3 integration_test/scripts/runner.py integration_test/authz_module/staking_authorization_test.yaml",
"python3 integration_test/scripts/runner.py integration_test/authz_module/generic_authorization_test.yaml"
]
},
{
name: "Chain Operation Test",
scripts: [
"until [ $(cat build/generated/rpc-launch.complete |wc -l) = 1 ]; do sleep 10; done",
"until [[ $(docker exec sei-rpc-node build/seid status |jq -M -r .SyncInfo.latest_block_height) -gt 10 ]]; do sleep 10; done",
"echo rpc node started",
"python3 integration_test/scripts/runner.py integration_test/chain_operation/snapshot_operation.yaml",
"python3 integration_test/scripts/runner.py integration_test/chain_operation/statesync_operation.yaml"
]
},
{
name: "Distribution Module",
scripts: [
"python3 integration_test/scripts/runner.py integration_test/distribution_module/community_pool.yaml",
"python3 integration_test/scripts/runner.py integration_test/distribution_module/rewards.yaml",
]
},
{
name: "Upgrade Module (Major)",
env: "UPGRADE_VERSION_LIST=v1.0.0,v1.0.1,v1.0.2",
scripts: [
"python3 integration_test/scripts/runner.py integration_test/upgrade_module/major_upgrade_test.yaml"
]
},
{
name: "Upgrade Module (Minor)",
env: "UPGRADE_VERSION_LIST=v1.0.0,v1.0.1,v1.0.2",
scripts: [
"python3 integration_test/scripts/runner.py integration_test/upgrade_module/minor_upgrade_test.yaml"
]
},
# {
# name: "Dex & Wasm Module",
# scripts: [
# "docker exec sei-node-0 integration_test/contracts/deploy_dex_contract.sh mars",
# "python3 integration_test/scripts/runner.py integration_test/dex_module/place_order_test.yaml",
# "python3 integration_test/scripts/runner.py integration_test/dex_module/cancel_order_test.yaml",
# "docker exec sei-node-0 integration_test/contracts/deploy_timelocked_token_contract.sh",
# "python3 integration_test/scripts/runner.py integration_test/wasm_module/timelocked_token_delegation_test.yaml",
# "python3 integration_test/scripts/runner.py integration_test/wasm_module/timelocked_token_admin_test.yaml",
# "python3 integration_test/scripts/runner.py integration_test/wasm_module/timelocked_token_withdraw_test.yaml",
# "docker exec sei-node-0 integration_test/contracts/deploy_timelocked_token_contract.sh",
# "python3 integration_test/scripts/runner.py integration_test/wasm_module/timelocked_token_emergency_withdraw_test.yaml"
# ]
# },
# {
# name: "Mint & Staking & Bank Module",
# scripts: [
# "python3 integration_test/scripts/runner.py integration_test/staking_module/staking_test.yaml",
# "python3 integration_test/scripts/runner.py integration_test/bank_module/send_funds_test.yaml",
# "python3 integration_test/scripts/runner.py integration_test/mint_module/mint_test.yaml"
# ]
# },
# {
# name: "Gov & Oracle & Authz Module",
# scripts: [
# "python3 integration_test/scripts/runner.py integration_test/gov_module/gov_proposal_test.yaml",
# "python3 integration_test/scripts/runner.py integration_test/gov_module/staking_proposal_test.yaml",
# "python3 integration_test/scripts/runner.py integration_test/oracle_module/verify_penalty_counts.yaml",
# "python3 integration_test/scripts/runner.py integration_test/oracle_module/set_feeder_test.yaml",
# "python3 integration_test/scripts/runner.py integration_test/authz_module/send_authorization_test.yaml",
# "python3 integration_test/scripts/runner.py integration_test/authz_module/staking_authorization_test.yaml",
# "python3 integration_test/scripts/runner.py integration_test/authz_module/generic_authorization_test.yaml"
# ]
# },
# {
# name: "Chain Operation Test",
# scripts: [
# "until [ $(cat build/generated/rpc-launch.complete |wc -l) = 1 ]; do sleep 10; done",
# "until [[ $(docker exec sei-rpc-node build/seid status |jq -M -r .SyncInfo.latest_block_height) -gt 10 ]]; do sleep 10; done",
# "echo rpc node started",
# "python3 integration_test/scripts/runner.py integration_test/chain_operation/snapshot_operation.yaml",
# "python3 integration_test/scripts/runner.py integration_test/chain_operation/statesync_operation.yaml"
# ]
# },
# {
# name: "Distribution Module",
# scripts: [
# "python3 integration_test/scripts/runner.py integration_test/distribution_module/community_pool.yaml",
# "python3 integration_test/scripts/runner.py integration_test/distribution_module/rewards.yaml",
# ]
# },
# {
# name: "Upgrade Module (Major)",
# env: "UPGRADE_VERSION_LIST=v1.0.0,v1.0.1,v1.0.2",
# scripts: [
# "python3 integration_test/scripts/runner.py integration_test/upgrade_module/major_upgrade_test.yaml"
# ]
# },
# {
# name: "Upgrade Module (Minor)",
# env: "UPGRADE_VERSION_LIST=v1.0.0,v1.0.1,v1.0.2",
# scripts: [
# "python3 integration_test/scripts/runner.py integration_test/upgrade_module/minor_upgrade_test.yaml"
# ]
# },
{
name: "Hardhat tests",
scripts: [
Expand All @@ -107,9 +107,6 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '16'
run: |
cd contracts
npm ci

- name: Pyyaml
run: |
Expand Down
2 changes: 1 addition & 1 deletion scripts/hardhat.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node --version
npx --version
cd contracts
npm ci
npx hardhat test --network seilocal scripts/EVMCompatabilityTester.js

Loading