Skip to content

chore(weld): ruff 79 line length alignment#1649

Merged
spencer-tb merged 11 commits into
ethereum:forks/osakafrom
spencer-tb:ruff-linting-final
Oct 22, 2025
Merged

chore(weld): ruff 79 line length alignment#1649
spencer-tb merged 11 commits into
ethereum:forks/osakafrom
spencer-tb:ruff-linting-final

Conversation

@spencer-tb

@spencer-tb spencer-tb commented Oct 21, 2025

Copy link
Copy Markdown
Contributor

🗒️ Description

Updates packages/tests and src/tests with the ruff line length of 79 (and other ruff related changes).

Note uvx --with=tox-uv tox -e static passes mypy/ruff now!

Closes ethereum/execution-spec-tests#2199

🔗 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 --with=tox-uv 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: Considered updating the online docs in the ./docs/ directory.
  • All: Set appropriate labels for the changes (only maintainers can apply labels).

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@spencer-tb spencer-tb added A-test-tests Area: tests for packages/testing A-test-specs Area: execution_testing.specs Finalize Weld labels Oct 21, 2025
@spencer-tb spencer-tb marked this pull request as ready for review October 21, 2025 17:49
@spencer-tb

spencer-tb commented Oct 21, 2025

Copy link
Copy Markdown
Contributor Author

Can someone check fill still works please? So I've not broken anything... or maybe we can wait for tests-develop tox env/CI workflow :)

@marioevz marioevz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Amazing! Thanks for this.

@danceratopz danceratopz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @spencer-tb! I think the suggestion below will fix-up filling the tests.

## Curve Coefficient
B = 0x5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B
## Subgroup Order
N = 0xFFFFFFFF0000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sneaky!

Suggested change
N = 0xFFFFFFFF0000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551
N = 0xFFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What happened here? 👀

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Don't know, bit scary. Worth verifying fixtures via hasher to make sure nothing more subtle has crept in (not only for this PR).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I committed the change to trigger the CI flow.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

lol sry! I was editing with vim mode so probably a missed typed "x" that removed the 0

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.08%. Comparing base (6383d7b) to head (ecff389).
⚠️ Report is 5 commits behind head on forks/osaka.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##           forks/osaka    #1649   +/-   ##
============================================
  Coverage        86.08%   86.08%           
============================================
  Files              743      743           
  Lines            44072    44072           
  Branches          3891     3891           
============================================
  Hits             37938    37938           
  Misses            5656     5656           
  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.

@LouisTsai-Csie

Copy link
Copy Markdown
Collaborator

Amazing!! There are more than 2K+ error originally

danceratopz pushed a commit to danceratopz/execution-specs that referenced this pull request Oct 22, 2025
…e_size()` from fork config (ethereum#1649)

* feat(forks): introduce max code size / max initcode size

* feat(tests): read max code size from fork / scale gas limit as appropriate for test

* Update src/ethereum_test_forks/base_fork.py

Co-authored-by: Paweł Bylica <chfast@gmail.com>

* Update src/ethereum_test_forks/base_fork.py

Co-authored-by: Paweł Bylica <chfast@gmail.com>

* Update src/ethereum_test_forks/forks/forks.py

Co-authored-by: Paweł Bylica <chfast@gmail.com>

* feat(tests): fix type error complaints

* feat(tests): make tests dependent on MAX_CODE_SIZE now depend on the fork-based max code size

* feat(tests): use a more logical gas limit formula for contract deployment

* feat(tests): default (init)code size limit to first limit set

* feat(tests): remove EIP 7907 from Osaka

* feat(tests): make typecheck happy

* feat(tests): do not use fallback for code size being returned `None` anymore

* feat(tests): read code size from forks from newly added tests after rebase

* Update tests/zkevm/test_worst_bytecode.py

Co-authored-by: Mario Vega <marioevz@gmail.com>

* feat(tests): insert max_code_size for modarith zkevm test

---------

Co-authored-by: Paweł Bylica <chfast@gmail.com>
Co-authored-by: Mario Vega <marioevz@gmail.com>
@spencer-tb

Copy link
Copy Markdown
Contributor Author

Checking hasher then will merge afterwards.

@spencer-tb

Copy link
Copy Markdown
Contributor Author

Root hashes are the same between filling from EELS on this branch and with EEST.

@spencer-tb spencer-tb merged commit 8ac541c into ethereum:forks/osaka Oct 22, 2025
1 check passed
chetna-mittal pushed a commit to gnosischain/execution-specs that referenced this pull request Oct 24, 2025
…e_size()` from fork config (ethereum#1649)

* feat(forks): introduce max code size / max initcode size

* feat(tests): read max code size from fork / scale gas limit as appropriate for test

* Update src/ethereum_test_forks/base_fork.py

Co-authored-by: Paweł Bylica <chfast@gmail.com>

* Update src/ethereum_test_forks/base_fork.py

Co-authored-by: Paweł Bylica <chfast@gmail.com>

* Update src/ethereum_test_forks/forks/forks.py

Co-authored-by: Paweł Bylica <chfast@gmail.com>

* feat(tests): fix type error complaints

* feat(tests): make tests dependent on MAX_CODE_SIZE now depend on the fork-based max code size

* feat(tests): use a more logical gas limit formula for contract deployment

* feat(tests): default (init)code size limit to first limit set

* feat(tests): remove EIP 7907 from Osaka

* feat(tests): make typecheck happy

* feat(tests): do not use fallback for code size being returned `None` anymore

* feat(tests): read code size from forks from newly added tests after rebase

* Update tests/zkevm/test_worst_bytecode.py

Co-authored-by: Mario Vega <marioevz@gmail.com>

* feat(tests): insert max_code_size for modarith zkevm test

---------

Co-authored-by: Paweł Bylica <chfast@gmail.com>
Co-authored-by: Mario Vega <marioevz@gmail.com>
chetna-mittal pushed a commit to gnosischain/execution-specs that referenced this pull request Oct 24, 2025
…e_size()` from fork config (ethereum#1649)

* feat(forks): introduce max code size / max initcode size

* feat(tests): read max code size from fork / scale gas limit as appropriate for test

* Update src/ethereum_test_forks/base_fork.py

Co-authored-by: Paweł Bylica <chfast@gmail.com>

* Update src/ethereum_test_forks/base_fork.py

Co-authored-by: Paweł Bylica <chfast@gmail.com>

* Update src/ethereum_test_forks/forks/forks.py

Co-authored-by: Paweł Bylica <chfast@gmail.com>

* feat(tests): fix type error complaints

* feat(tests): make tests dependent on MAX_CODE_SIZE now depend on the fork-based max code size

* feat(tests): use a more logical gas limit formula for contract deployment

* feat(tests): default (init)code size limit to first limit set

* feat(tests): remove EIP 7907 from Osaka

* feat(tests): make typecheck happy

* feat(tests): do not use fallback for code size being returned `None` anymore

* feat(tests): read code size from forks from newly added tests after rebase

* Update tests/zkevm/test_worst_bytecode.py

Co-authored-by: Mario Vega <marioevz@gmail.com>

* feat(tests): insert max_code_size for modarith zkevm test

---------

Co-authored-by: Paweł Bylica <chfast@gmail.com>
Co-authored-by: Mario Vega <marioevz@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-test-specs Area: execution_testing.specs A-test-tests Area: tests for packages/testing Finalize Weld

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: reformat source code from 99 to 79

5 participants