-
Notifications
You must be signed in to change notification settings - Fork 39
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
Use test config in CI #770
Changes from all commits
bf97b07
02d76b3
2742903
6acd3e9
0ed7a71
612d456
8de1a41
e4b17ac
0fa6e50
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,6 +134,7 @@ else | |
echo "Proving blocks from ($START_BLOCK) to ($END_BLOCK)" | ||
command="cargo r --release --package zero --bin leader -- \ | ||
--runtime in-memory \ | ||
--use-test-config \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure we want the script to always use the testing config, rather take it as optional argument perhaps? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume we always use the testing config in CI tests, while our cron jobs use the standard config? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought we had said in the dev sync we'd use a mix of both in CI? I'm fine either way though There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. Keep |
||
--load-strategy on-demand \ | ||
--proof-output-dir $PROOF_OUTPUT_DIR \ | ||
--block-batch-size $BLOCK_BATCH_SIZE \ | ||
|
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.
Is erc721 taking that long that we're ignoring it on default?
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.
Yes, I found that the test running on CI is about 4x slower than on my MacBook. The test time in release mode on my MacBook can be found here: #739
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 we're going to start doing test selection like this, I think we need a better test runner (
cargo-nextest
)It allows you to categorise your tests, have different timeouts, profiles for ci etc
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.
Currently, we only need minimal functionality, so our existing setup works fine. Using
cargo-nextest
would indeed be beneficial, and we can look at converting to it in a future PR.