Skip to content

feat(consume): add support for ethereum/{tests,legacytests} tarball urls #1306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 17, 2025

Conversation

danceratopz
Copy link
Member

@danceratopz danceratopz commented Mar 12, 2025

🗒️ Description

Adds tarball release URL download support for ethereum/tests and ethereum/legacytests to consume, for example:

consume cache --input=https://github.com/ethereum/tests/releases/download/v17.0/fixtures_blockchain_tests.tgz

An additional fix that was required to enable this feature with the above tarball: Don't assume that the directory contained within the tarball is hard-coded as "fixtures", now the top-level directory name is automatically detected, this was the offending code:

return already_cached, extract_to / "fixtures"

and
return already_cached, extract_to / "fixtures"

🔗 Related Issues

✅ Checklist

  • All: Set appropriate labels for the changes.
  • All: Considered squashing commits to improve commit history.
  • All: Added an entry to CHANGELOG.md.

@danceratopz danceratopz added type:feat type: Feature scope:consume Scope: Consume command suite labels Mar 12, 2025
@danceratopz danceratopz requested a review from winsvega March 12, 2025 21:53
@danceratopz danceratopz force-pushed the consume-cache-for-ethereum-tests branch from 430e007 to b7ffcc5 Compare March 17, 2025 12:19
@danceratopz
Copy link
Member Author

@winsvega this now works:

consume direct --input https://github.com/ethereum/tests/releases/download/v17.0/fixtures_blockchain_tests.tgz --bin=~/code/github/ethereum/go-ethereum/build/bin/evm -k chainid -m Cancun -v

Copy link
Contributor

@spencer-tb spencer-tb left a comment

Choose a reason for hiding this comment

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

LGTM! Runs in hive for me with the following:

./hive --sim "ethereum/eest/consume-rlp" --client go-ethereum --client-file=configs/prague.yaml --client.checktimelimit=60s --sim.parallelism=1 --docker.output  --sim.buildarg fixtures=https://github.com/ethereum/tests/releases/download/v17.0/fixtures_blockchain_tests.tgz --sim.buildarg branch=consume-cache-for-ethereum-tests --sim.loglevel=3 --docker.output --docker.nocache go-ethereum

Let's get ethereum/tests running in consume-rlp on hiveview :D!

Copy link
Member

@marioevz marioevz left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@marioevz marioevz merged commit e67d774 into main Mar 17, 2025
21 checks passed
@marioevz marioevz deleted the consume-cache-for-ethereum-tests branch March 17, 2025 21:54
felix314159 pushed a commit to felix314159/execution-spec-tests that referenced this pull request May 16, 2025
…rls (ethereum#1306)

* feat(consume): add support for ethereum/{tests,legacytests} tarball urls

* docs: update changelog

* fix(consume): don't extract to hard-coded fixtures directory

Detect single directory within archive instead of a hard-coded "fixtures" directory.

* fix(consume): fix tag matching when fetching releases

* docs: add advisory to changelog about cache dir changes

* fix(consume): revert incorrect "fix" from 39b0f54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:consume Scope: Consume command suite type:feat type: Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(consume): add support for ethereum/tests release tarballs
4 participants