Skip to content

Conversation

@goshawk-3
Copy link
Contributor

@goshawk-3 goshawk-3 commented Nov 4, 2025

fixes: https://github.com/zama-ai/fhevm-internal/issues/542

PBS computation can be in one of the following states:

  • completed - squash_noise finished and the ct128 was inserted into the DB
  • TransientErr - squash_noise finished but the ct128 couldn't be inserted
  • PermanentErr - Either squash_noise computation failed or decompress_ct failed

An infinite retry is done only for Transient Err

Additionally, both squash_noise and decompress_ct are wrapped to return an error if they would otherwise panic. This is done to avoid livelocks similar to the one noticed time ago in zkproof worker here

@cla-bot cla-bot bot added the cla-signed label Nov 4, 2025
@goshawk-3 goshawk-3 force-pushed the georgi/sns/minor-fixes branch 3 times, most recently from 4dd0220 to b33d326 Compare November 4, 2025 15:57
rudy-6-4
rudy-6-4 previously approved these changes Nov 5, 2025
Copy link
Contributor

@rudy-6-4 rudy-6-4 left a comment

Choose a reason for hiding this comment

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

Can a small test be added ? Otherwise a e2e run in PR comment gives more confidence to reviewer.

@goshawk-3
Copy link
Contributor Author

Can a small test be added ? Otherwise a e2e run in PR comment gives more confidence to reviewer.

We'll probably need to mock the squash_noise call to simulate erroneous behavior and also enforce a DB insert-query failure but that's not trivial. Let me think about it.

@goshawk-3 goshawk-3 force-pushed the georgi/sns/minor-fixes branch from b0f0036 to 5e9ea06 Compare November 5, 2025 11:46
@goshawk-3 goshawk-3 marked this pull request as ready for review November 5, 2025 15:01
@goshawk-3 goshawk-3 requested a review from a team as a code owner November 5, 2025 15:01
PBS computation can be in one of the following states:

- completed - squash_noise finished and the ct128 was inserted into the DB
- TransientErr - squash_noise finished but the ct128 couldn't be inserted
- PermanentErr - squash_noise computation failed.

An infinite retry is done only for TransientErr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants