Skip to content

Conversation

@benesjan
Copy link
Contributor

@benesjan benesjan commented Nov 25, 2025

Fixes #17586

Forgot to handle the empty struct case when implementing the derivation functionality. This PR fixes it.

Copy link
Contributor Author

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

@benesjan benesjan force-pushed the 11-25-fix_serde_on_empty branch from 5800704 to 03f2d49 Compare November 25, 2025 14:13
@benesjan benesjan marked this pull request as ready for review November 25, 2025 14:13
@benesjan benesjan requested a review from LeilaWang as a code owner November 25, 2025 14:13
@benesjan benesjan changed the title fix: serde on empty fix: serde and packable on empty Nov 25, 2025
@benesjan benesjan removed the request for review from LeilaWang November 25, 2025 14:13
@AztecBot
Copy link
Collaborator

AztecBot commented Nov 25, 2025

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033[38;2;188;109;208mFLAKED\033[0m (\033[38;2;250;217;121m8;;http://ci.aztec-labs.com/3aef50d5b0c415c5�3aef50d5b0c415c58;;�\033[0m): yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_epochs/epochs_multi_proof.test.ts (162s) (code: 1) group:e2e-p2p-epoch-flakes (\033[38;2;188;109;208mJan Beneš\033[0m: fix: serde and packable on empty (#18584))

@benesjan benesjan requested a review from mverzilli November 25, 2025 14:48
Copy link
Contributor

@mverzilli mverzilli left a comment

Choose a reason for hiding this comment

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

Always a pleasure to review a one file PR :D

Only comment is we seem to be checking multiple times the same cases (params>1, params==1, params==0) so it would be nice to reduce that duplication, but I'm not sure whether that's possible in Noir and more specifically in Noir macros

@benesjan
Copy link
Contributor Author

Only comment is we seem to be checking multiple times the same cases

Yes, there is a large overlap between serde and packable. I think we had a plan to eventually merge the Serialize and Deserialize traits into one trait and at that point they would become even more similar. So would wait until we do that to bother with this.

Fixes #17586

Forgot to handle the empty struct case when implementing the derivation functionality. This PR fixes it.
@AztecBot AztecBot force-pushed the 11-25-fix_serde_on_empty branch from 42f1ead to b4d0079 Compare November 25, 2025 15:57
@benesjan benesjan added this pull request to the merge queue Nov 25, 2025
Merged via the queue into next with commit 9ac19fa Nov 25, 2025
15 checks passed
@benesjan benesjan deleted the 11-25-fix_serde_on_empty branch November 25, 2025 16:39
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.

[BUG] Serialize/Deserialize not supported for empty structs

4 participants