Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Fix circuit failure output #1638

Merged
merged 10 commits into from
Oct 4, 2023
Merged

Fix circuit failure output #1638

merged 10 commits into from
Oct 4, 2023

Conversation

ChihChengLiang
Copy link
Collaborator

Description

  1. Capture the error detail of the unsatisfied circuit from CircuitTestBuilder
  2. Split the body of CircuitTestBuilder::run() into 3 methods for readability.
  3. Revamp the error handling in CircuitTestBuilder

Issue Link

#1637

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Design choices

The error handling has been a pain point for us for a long time.
The design of error handling in this PR is heavily inspired by this blog post.

@github-actions github-actions bot added the crate-zkevm-circuits Issues related to the zkevm-circuits workspace member label Oct 2, 2023
@miha-stopar miha-stopar self-requested a review October 3, 2023 11:08
Copy link
Collaborator

@miha-stopar miha-stopar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just nitpicks.

zkevm-circuits/src/test_util.rs Outdated Show resolved Hide resolved
zkevm-circuits/src/test_util.rs Outdated Show resolved Hide resolved
zkevm-circuits/src/test_util.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@rrtoledo rrtoledo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ChihChengLiang ChihChengLiang added this pull request to the merge queue Oct 4, 2023
Merged via the queue into main with commit 5022d5d Oct 4, 2023
13 checks passed
@ChihChengLiang ChihChengLiang deleted the fix-circuit-failure-output branch October 4, 2023 10:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crate-zkevm-circuits Issues related to the zkevm-circuits workspace member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detail of unsatisfied circuit is not reported in the testool output
3 participants