Skip to content

Comments

Reduce SSZ test vector size#4662

Merged
jtraglia merged 2 commits intoethereum:masterfrom
etan-status:sz-maxitems
Oct 20, 2025
Merged

Reduce SSZ test vector size#4662
jtraglia merged 2 commits intoethereum:masterfrom
etan-status:sz-maxitems

Conversation

@etan-status
Copy link
Contributor

@etan-status etan-status commented Oct 16, 2025

Limit lists in SSZ tests to 1500 items instead of 2000 to lower size of
test vectors. Further focus on testing edge cases rather than having an
exhaustive test for all possible unsupported CompatibleUnion options.

1500 items still covers the same tree shapes, as in, it is:

  • between 1024 and 2047 for the regular trees
  • between 1365 and 5460 for progressive trees

For progressive tree cutoffs see table here:

@etan-status
Copy link
Contributor Author

Also fixes the ram issue @jtraglia

Before:
Before

After:
After

@jtraglia jtraglia added the testing CI, actions, tests, testing infra label Oct 16, 2025
@jtraglia
Copy link
Member

Thanks @etan-status! I will approve/merge this if it works here:

@jtraglia
Copy link
Member

Restarted the reference test generation action with some logging improvements:

Limit lists in SSZ tests to 1500 items instead of 2000 to lower size of
test vectors. Further focus on testing edge cases rather than having an
exhaustive test for all possible unsupported CompatibleUnion options.

1500 items still covers the same tree shapes, as in, it is:

- between 1024 and 2047 for the regular trees
- between 1365 and 5460 for progressive trees

For progressive tree cutoffs see table here:

- https://eips.ethereum.org/EIPS/eip-7916#progressive-merkle-tree)
Copy link
Member

@jtraglia jtraglia left a comment

Choose a reason for hiding this comment

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

These changes look fine to me, but we're going to need to refactor the SSZ tests in the future. Leo and I agree that the fuzzy approach to this is less than ideal.

@jtraglia jtraglia merged commit feae4ab into ethereum:master Oct 20, 2025
15 checks passed
@etan-status etan-status deleted the sz-maxitems branch October 22, 2025 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing CI, actions, tests, testing infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants