Skip to content

Conversation

@nitsan-starkware
Copy link
Contributor

@nitsan-starkware nitsan-starkware commented Dec 9, 2025

Type

  • feature
  • bugfix
  • dev (no functional changes, no API changes)
  • fmt (formatting, renaming)
  • build
  • docs
  • testing

Description

Breaking changes?

  • yes
  • no

This change is Reviewable

@nitsan-starkware nitsan-starkware marked this pull request as ready for review December 9, 2025 14:39
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Contributor

@Yael-Starkware Yael-Starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @nitsan-starkware)


crates/stwo_run_and_prove/src/main.rs line 211 at r1 (raw file):

        Err(e) => {
            error!("Proving failed with error: {}", e);

how do you distinct between error in the proof creation and error in the verification?
maybe printing which one happened.


crates/stwo_run_and_prove/src/main.rs line 411 at r1 (raw file):

    #[test]
    fn test_stwo_run_and_prove_proving_failure() {
        let (output_tempfile, proof_tempfile) = run_with_failed_mock_prover();

why did you remove testing a run with verification failure?
I think there should be one case/test for failure of the prover and one case/test for failure of the verification, no?

@nitsan-starkware nitsan-starkware force-pushed the nitsan/remove_retries_from_stwo_run_and_prove branch from 7f4c63b to 773400a Compare December 10, 2025 12:01
Copy link
Contributor Author

@nitsan-starkware nitsan-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @Yael-Starkware)


crates/stwo_run_and_prove/src/main.rs line 211 at r1 (raw file):

Previously, Yael-Starkware (YaelD) wrote…

how do you distinct between error in the proof creation and error in the verification?
maybe printing which one happened.

Done (I’ll check with the Stwo team if we can deduce the error type from the existence of the file).


crates/stwo_run_and_prove/src/main.rs line 411 at r1 (raw file):

Previously, Yael-Starkware (YaelD) wrote…

why did you remove testing a run with verification failure?
I think there should be one case/test for failure of the prover and one case/test for failure of the verification, no?

As we discussed f2f, there’s no point, because we handle both cases the same way except for the log message.

Copy link
Contributor

@Yael-Starkware Yael-Starkware left a comment

Choose a reason for hiding this comment

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

@Yael-Starkware reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @nitsan-starkware)


crates/stwo_run_and_prove/src/main.rs line 217 at r2 (raw file):

                ", proof was created."
            };
            error!("Proving failed with error: {e}{proof_msg}");

Suggestion:

            let proof_msg = if is_file_missing_or_empty(&prove_config.proof_path)? {
                error!("Proving failed with error {e}");
            } else {
                error!("Proof verification failed with error {r}, The failed proof was writen into the proof output file.);
            };

@nitsan-starkware nitsan-starkware force-pushed the nitsan/remove_retries_from_stwo_run_and_prove branch from 773400a to 9036bfc Compare December 10, 2025 12:56
Copy link
Contributor Author

@nitsan-starkware nitsan-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @Yael-Starkware)


crates/stwo_run_and_prove/src/main.rs line 217 at r2 (raw file):

                ", proof was created."
            };
            error!("Proving failed with error: {e}{proof_msg}");

Done.

Copy link
Contributor

@Yael-Starkware Yael-Starkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

@Yael-Starkware reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @nitsan-starkware)

Copy link
Contributor Author

nitsan-starkware commented Dec 14, 2025

Merge activity

  • Dec 14, 11:54 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 14, 11:55 AM UTC: Graphite rebased this pull request as part of a merge.
  • Dec 14, 12:01 PM UTC: @nitsan-starkware merged this pull request with Graphite.

@nitsan-starkware nitsan-starkware force-pushed the nitsan/remove_retries_from_stwo_run_and_prove branch from 9036bfc to 2e1aa88 Compare December 14, 2025 11:55
@nitsan-starkware nitsan-starkware merged commit dfdfac4 into main Dec 14, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants