-
Notifications
You must be signed in to change notification settings - Fork 570
Fix CI to run solidity tests #278
Fix CI to run solidity tests #278
Conversation
This CI test is still failed since some ethermint issues haven't been fixed for the However, the CI script itself is working well. |
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.
lgtm
Wait for #248 to be closed to fix the broken CI test |
Wait for issue #297 fixed. The test case |
Last round of CI failed at Wait for #272 to be merged. It should fix this error |
Head branch was pushed to by a user without write access
it's merged now. |
Now it breaks at the incorrectly formatted error message 😂 #314 |
looks like this is still failing |
@yijiasu-crypto seems that you are querying a height > current height? I will fix the panic |
|
Checking on the latest issue
|
Now it's no longer crashing during access |
"height must be greater than 0, but got 0" -> This error is not issued on the truffle side or test side. The test suite passed on It looks like the error comes from ethermint or tendermint side. Could you check? @fedekunze |
all tests are now passed (ran locally) except the Getting this error: |
// it('can receive ETH from contract [@skip-on-coverage]', async () => { | ||
// const receipt = await ethSender.sendEth(proxy.address, { value }) | ||
|
||
assertAmountOfEvents(receipt, 'ProxyDeposit', { decodeForAbi: proxy.abi }) | ||
assertEvent(receipt, 'ProxyDeposit', { decodeForAbi: proxy.abi, expectedArgs: { sender: ethSender.address, value } }) | ||
}) | ||
// assertAmountOfEvents(receipt, 'ProxyDeposit', { decodeForAbi: proxy.abi }) | ||
// assertEvent(receipt, 'ProxyDeposit', { decodeForAbi: proxy.abi, expectedArgs: { sender: ethSender.address, value } }) | ||
// }) |
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.
remove
@yijiasu-crypto can you point me to the test? |
the |
It looks like ethermint returns an error when call This RPC call is successful under a ganache environment. Please take a look at detailed RPC logs below. RPC traffic from
RPC traffic from
|
@fedekunze please take a look at the latest diagnosis I posted above |
Codecov Report
@@ Coverage Diff @@
## main #278 +/- ##
==========================================
- Coverage 55.88% 50.58% -5.31%
==========================================
Files 63 50 -13
Lines 5518 4928 -590
==========================================
- Hits 3084 2493 -591
- Misses 2271 2328 +57
+ Partials 163 107 -56
|
PR #650 could fix the stuck issue. Wait for that to be merged and test again on this PR |
* Fix CI * Remove verbose-log to reduce size * update timeout * rm deploy contract action * Update test-helper.js * Update workflow * Update workflow * fix gas estimate amount * Update test.yml * fix error assert issue * ignore bad test case * remove estimate gas test * Change fromBlock to 1 (TEMP, Reverse Required) * bump timeout Co-authored-by: Federico Kunze Küllmer <[email protected]> Co-authored-by: yihuang <[email protected]> Co-authored-by: Federico Kunze <[email protected]>
* ci: add bencher config (#652) Add bencher config with global +-10% threshold for improvements and regressions Co-authored-by: Federico Kunze Küllmer <[email protected]> * fix conflicts * evm: fix panic when transaction is reverted (#650) * fix panic when transaction is reverted * update changelog * Update x/evm/keeper/context_stack.go Co-authored-by: Federico Kunze Küllmer <[email protected]> * rpc: test fix (#608) * fix rpc tests with net namespace * skip personal test * skip rpc pending test * fix endpoint * fix rpc pending test * fix missing gas param in some rpc tests * fix eth_getproof when the block number is equal to pending or latest * fix rpc tests filter subscribe failed * lint * remove unused linter * fix PendingTransactionFilter and TestEth_GetFilterChanges_BlockFilter * fix eth_estimateGas * fix TestEth_EstimateGas_ContractDeployment * skip TestEth_ExportAccount_WithStorage * remove sleep in rpc test * Update changelog * add test-rpc in github action * bump golangci-lint version to v1.42.1 * release: v0.7.1 cherry-picks * changelog * ci: fix solidity tests (#278) * Fix CI * Remove verbose-log to reduce size * update timeout * rm deploy contract action * Update test-helper.js * Update workflow * Update workflow * fix gas estimate amount * Update test.yml * fix error assert issue * ignore bad test case * remove estimate gas test * Change fromBlock to 1 (TEMP, Reverse Required) * bump timeout Co-authored-by: Federico Kunze Küllmer <[email protected]> Co-authored-by: yihuang <[email protected]> Co-authored-by: Federico Kunze <[email protected]> Co-authored-by: Daniel Burckhardt <[email protected]> Co-authored-by: Thomas Nguy <[email protected]> Co-authored-by: JayT106 <[email protected]> Co-authored-by: Yijia Su <[email protected]> Co-authored-by: yihuang <[email protected]>
* integrate with sdk V47 & ibc-go V7 * update proto-gen and proto files * fix e2e tests * tmp * working tmp * fix rebase conflict * fix merge conflict * fix test * recover makefile changes * fix lint * fix protoc-gen-tool script * update tendermint dependency * update btcsuite/btcutil path * update gomod2nix * fix Makefile,regen proto files and remove third_party proto * update gomod2nix * fix lint * update nix * replace cometbft tm-db update to sdk v0.47.2 newer btcutil * algo -> key-type * set mempool * set chainId * update protobuf * fix import * fix test * debug test * update nix * fix btcsuite * make proto-gen follow by UPGRADING.md * fix sync issue with latest blk for more info, see https://github.com/cosmos/cosmos-sdk/blob/main/UPGRADING.md#replaces * disable depguard * gogo/protobuf -> cosmos/gogoproto * no pass chain_id after setup ethermintd config chain-id * fix lint * fix err msg due to empty version check fix for more info, see https://github.com/cosmos/cosmos-sdk/pull/13355/files * add the crisis store in store upgrades * fix lint * add consensus upgrade * migrate consensus parameters * fix lint * allow flag overwrite chainId * fix ConsensusParams fix evm * fix lint * add paramKeyTable * add change log * err code change due to nested msg check * fix lint * cleanup mod * add nil check for consParams.Block * Revert "fix ConsensusParams" This reverts commit b739244. * sdk to v0.47.3 and ibc-go to v7.1.0 * point to logger fix * get consParams from keeper if not in ctx * point back cometbft * fix broadcast mode * fix lint * update default params for test * cleanup deps * fix ibc client route in gov router * fix broadcast mode * fix ibctm for more info, see https://github.com/cosmos/ibc-go/blob/v7.2.0/docs/migrations/v6-to-v7.md#chains * point to sdk cp fix * Update rpc/backend/utils.go Co-authored-by: yihuang <[email protected]> Signed-off-by: mmsqe <[email protected]> * Update rpc/types/utils.go Co-authored-by: yihuang <[email protected]> Signed-off-by: mmsqe <[email protected]> * fix build * revert get params by consensusparamkeeper * keep validator err msg * Revert "keep validator err msg" This reverts commit 20253ce. * test with more retries * add expect_cb * fix hooks * rm RandomizedParams ProposalContents * prune expire state --------- Signed-off-by: mmsqe <[email protected]> Co-authored-by: jay tseng <[email protected]> Co-authored-by: yihuang <[email protected]>
Closes: #XXX
Description
This PR updates some stale code in
Makefile
and.github/workflows/deploy-contract.yml
to make the CI works with performing solidity test on CI builds.Some improvements:
make test-solidity
in Github Actions instead ofmake test-contract
test-contract
fromMakefile
. Contract & Solidity tests now can be run bymake test-solidity
.solcjs
fromMakefile
. This is no longer needed. Truffle inside solidity tests will handle installation of solcjsyarn test
to output ethermintd activities during CI test for better debuggingFor contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)