Skip to content

Comments

Use skips instead of asserting when an SSZ test is cancelled#4578

Merged
jtraglia merged 1 commit intoethereum:masterfrom
etan-status:sz-skip
Sep 11, 2025
Merged

Use skips instead of asserting when an SSZ test is cancelled#4578
jtraglia merged 1 commit intoethereum:masterfrom
etan-status:sz-skip

Conversation

@etan-status
Copy link
Contributor

SSZ tests are scheduled asynchronously since #4574, but those that are later determined to be inapplicable should be properly cancelled by raising SkippedTest instead of aborting test generation.

Notably, this is about tests where a valid object is serialized, the serialized data is subsequently modified and parsed again. As the modified data may still be valid depending on the structure, such tests have to be skipped as they do not denote invalid data.

SSZ tests are scheduled asynchronously since ethereum#4574, but those that are
later determined to be inapplicable should be properly cancelled by
raising SkippedTest instead of aborting test generation.

Notably, this is about tests where a valid object is serialized, the
serialized data is subsequently modified and parsed again. As the
modified data may still be valid depending on the structure, such
tests have to be skipped as they do not denote invalid data.
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.

Thanks @etan-status. To be clear, a mutation does not guarantee that the data is invalid. Skipping these is correct.

@leolara leolara added the testing CI, actions, tests, testing infra label Sep 11, 2025
@jtraglia
Copy link
Member

Can confirm these all pass.

image

@jtraglia jtraglia merged commit 9d1eb8c into ethereum:master Sep 11, 2025
14 checks passed
@etan-status etan-status deleted the sz-skip branch September 11, 2025 15:00
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.

3 participants