-
Notifications
You must be signed in to change notification settings - Fork 841
Integration tests for tx, copy and bytecode circuits #654
Conversation
36543a3
to
e8082af
Compare
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.
Nice! I left a few comments 🙂
…caling-explorations/zkevm-circuits into feature/more-integration-tests
@AronisAt79 Can we support running CI checks on forks if we for example request it via a comment -or- if we approve a PR? I'm also wondering if it makes sense to prefix all heavy tests with |
@adria0 Can you prefix the prover tests with |
Maybe @adria0 could better comment on that as i know he had a while back started an effort to create test batches according to duration and resource requirements. I agree that would be extremely helpful! |
My intention is to get the integration tests inside the CI runner and to have a easy filter locally without excluding crates. Because right now we miss important stuff inside the CI checks. I saw that we already use |
@pinkiebell, i think it is doable - with some ( a lot ?) administration. But what would that offer against running CI on the fork independently? For PRs, if not done already, we can simply activate the workflows we want, based on event (pull request/push etc). |
Somehow I misinterpreted that this wasn't a fork 😂 . Anyway, running the tests on our own runner - on PRs from forks - would be nice. And I think adding a label from the reviewer team is good enough authorization? |
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.
🤩
Co-authored-by: Chih Cheng Liang <chihchengliang@gmail.com>
…circuits into feature/more-integration-tests
…caling-explorations/zkevm-circuits into feature/more-integration-tests
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
Let's try to merge this so that when @adria0 is back this is not super far away from main and requires a lot of work to rebase. |
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 for now to merge and prevent PR outdating.
I'd really consider to use testing setup/teardown to reduce the verbosity and redundancy in the tests.
Also, I think it would be benefitial to setup a final solution that unifies ALL the randomness used across all the tests so that we don't do different things on each PR/test.
See: #641
async fn test_tx_circuit_block(block_num: u64) { | ||
const DEGREE: u32 = 20; |
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.
Instead of doing this on each test, why don't we use a crate like: https://github.com/markhildreth/test-context to do test setup/teardown?
This reverts commit ad0a57b.
No description provided.