-
Notifications
You must be signed in to change notification settings - Fork 21
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
Tests V2 #1026
Tests V2 #1026
Conversation
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
@@ -58,7 +60,8 @@ export class BodhiSigner extends AbstractSigner implements TypedDataSigner { | |||
} | |||
|
|||
static fromPair(provider: BodhiProvider, pair: KeyringPair): BodhiSigner { | |||
return new BodhiSigner(provider, pair.address, new SubstrateSigner(provider.api.registry, pair)); | |||
const substrateAddr = encodeAddress(pair.address, provider.api.registry.chainSS58); |
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.
not sure why chopsticks and mandala behaves a little differently here: when doing extrinsic.signAsync
, the payload address will use prefix: 42
on mandala, but prefix: 10
on chopsticks.
So I have to explicitly use prefix: 10
addr here, otherwise it won't be able to find the signer. Take a note here in case it breaks anything
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.
ok mandala does have prefix:42
, so this was indeed a bug before, just happened to work on mandala
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.
some tests for precompile contracts in hardhat-tutorials should be in the Acala repo.
@@ -4,13 +4,18 @@ on: | |||
paths-ignore: | |||
- '**/README.md' | |||
|
|||
concurrency: | |||
group: ${{ github.workflow }}-${{ github.ref }} | |||
cancel-in-progress: true |
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.
why remove this?
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.
for the concurrency, they run in parallel by default
sometimes cancel previous tests is slow (in old CI sometimes take a couple minutes), so I removed cancel-in-progress: true
so new test can run immediately
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.
we can probably close #832 too if we don't cancel previous run, ubuntu-latest is free anyways (sorry github)
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.
if in the new setup, cancel previous run isn't that slow, we can also add this back, either way
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.
let's try add this back
mock-signature-host: true | ||
runtime-log-level: 5 | ||
block: 7000000 | ||
wasm-override: ./chopsticks/wasm/acala-2250.wasm |
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.
wasm-override: ./chopsticks/wasm/acala-2250.wasm | |
wasm-override: ./chopsticks/wasm/acala-2260.wasm |
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.
old tests worked with runtime 2250, so let's control variable and upgrade to 2260 after all tests are converted and running (otherwise if some tests fail, we don't know if it's the test's issue, or runtime 2260's issue).
Yeah I agree, precompile functionalities should be tested in Acala's scope. In bodhi's scope, it should be able to assume low level evm stuff works as expected. So bodhi tests only need to focus on toolings compatibilities (hardhat/truffle/viem/ethers/etc), as well as all different interactions with eth rpc |
Change
Core Updates
Cleanups and Refactors
{ hardhat, truffle }-tutorials
, and instead use locale2e-{ hardhat, truffle }
, which will be a refined subset of tutorials as e2e tests.fix #737
fix #823
fix #916
Tests
In the scope of this PR, we only care about setting up the whole flow, so we only run a minimum test for each of the test section. We will actually transform and enable most of the old tests in the next PR.
The whole flow works as expected:
Todo