Skip to content

feat(tests): Add a case for RIPEMD OOGing in early forks#1732

Merged
marioevz merged 2 commits intoethereum:forks/osakafrom
pdobacz:tests/ripemd-oog
Nov 28, 2025
Merged

feat(tests): Add a case for RIPEMD OOGing in early forks#1732
marioevz merged 2 commits intoethereum:forks/osakafrom
pdobacz:tests/ripemd-oog

Conversation

@pdobacz
Copy link
Contributor

@pdobacz pdobacz commented Nov 3, 2025

🗒️ Description

There was one aspect (the 0x03 quirk) left uncovered in the RIPEMD test, and it turned out to be covered in static tests, so I guess this is a porting PR. I tried to follow the steps, but not 100% sure I did all the (currently) relevant steps.

What makes me doubt it's complete is that the test exists (kinda) in static tests (but only for >=Cancun forks) but also in https://github.com/ethereum/legacytests/blob/master/src/LegacyTests/Constantinople/GeneralStateTestsFiller/stPreCompiledContracts2/CallRipemd160_0Filler.json, I'm not exactly sure which should be put up there in the code. Nevertheless I'm removing the former one from here.

🔗 Related Issues or PRs

N/A.

✅ Checklist

  • All: Ran fast tox checks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:
    uvx tox -e static
  • All: PR title adheres to the repo standard - it will be used as the squash commit message and should start type(scope):.
  • All: Considered adding an entry to CHANGELOG.md.
  • All: Set appropriate labels for the changes (only maintainers can apply labels).
  • Ported Tests: All converted JSON/YML tests from ethereum/tests or tests/static have been assigned @ported_from marker.

Copy link
Member

@chfast chfast left a comment

Choose a reason for hiding this comment

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

Nice!

@codecov-commenter
Copy link

codecov-commenter commented Nov 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.08%. Comparing base (f23e4ab) to head (ed7096c).
⚠️ Report is 4 commits behind head on forks/osaka.

Additional details and impacted files
@@             Coverage Diff              @@
##           forks/osaka    #1732   +/-   ##
============================================
  Coverage        86.08%   86.08%           
============================================
  Files              743      743           
  Lines            44076    44076           
  Branches          3891     3891           
============================================
  Hits             37941    37941           
  Misses            5657     5657           
  Partials           478      478           
Flag Coverage Δ
unittests 86.08% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Collaborator

@LouisTsai-Csie LouisTsai-Csie left a comment

Choose a reason for hiding this comment

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

Thanks for this!

@marioevz
Copy link
Member

Rebased, waiting on CI to merge.

@marioevz marioevz merged commit 519eb26 into ethereum:forks/osaka Nov 28, 2025
14 checks passed
@pdobacz pdobacz deleted the tests/ripemd-oog branch November 28, 2025 17:05
SamWilsn pushed a commit that referenced this pull request Dec 9, 2025
* refactor: optimize jumpdest test case

* refactor(tests): streamline jumpdest contract creation in worst compute test

* Update tests/zkevm/test_worst_compute.py

---------

Co-authored-by: Mario Vega <[email protected]>
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.

5 participants