Skip to content

Conversation

@SamWilsn
Copy link
Contributor

🗒️ Description

Some tests make heavy use of lru_cache. Others are just memory hungry. By grouping these tests onto a single xdist worker, we consolidate caches and prevent multiple big-memory tests from running at the same time.

In some very rough benchmarks, I see a reduction in memory use of about 1.2GB on my local machine.

✅ Checklist

  • All: Ran fast tox checks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:
    uvx --with=tox-uv tox -e lint,typecheck,spellcheck,markdownlint
  • 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: Considered updating the online docs in the ./docs/ directory.
  • All: Set appropriate labels for the changes (only maintainers can apply labels).

Some tests make heavy use of `lru_cache`. Others are just memory hungry.
By grouping these tests onto a single xdist worker, we consolidate
caches and prevent multiple big-memory tests from running at the same
time.

In some _very_ rough benchmarks, I see a reduction in memory use of
about 1.2GB on my local machine.
Copy link
Collaborator

@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!! cc @danceratopz

Copy link
Member

@danceratopz danceratopz left a comment

Choose a reason for hiding this comment

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

Amazing, thanks @SamWilsn!

@danceratopz danceratopz changed the title fix(tests): group mem heavy tests together chore(tests): group mem heavy tests together Sep 17, 2025
@danceratopz danceratopz changed the title chore(tests): group mem heavy tests together chore(tests): group mem-heavy tests together in xdist Sep 17, 2025
@danceratopz danceratopz merged commit 11b96b8 into ethereum:main Sep 17, 2025
16 checks passed
@danceratopz
Copy link
Member

Really nice addition, I tagged as chore not fix as it's doesn't address a bug in the test source itself.

@SamWilsn SamWilsn deleted the bigmem branch September 30, 2025 18:39
kclowes pushed a commit to kclowes/execution-spec-tests that referenced this pull request Oct 20, 2025
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.

3 participants