Skip to content

Conversation

@fselmo
Copy link
Contributor

@fselmo fselmo commented Nov 3, 2025

🗒️ Description

We were writing tests specific to BALs but now that we turned on all tests, some of the ordering checks from the specs were not getting caught. We should separate the static validation checks on the t8n BAL coming from the specs (BlockAccessList) from the validation that happens against a defined BlockAccessListExpectation in a BAL-specific test.

This PR moves the ordering and validation checks for the t8n BAL over to that class, as it should've probably been from the start. This way we always perform this validation on the BAL coming from t8n and IF we also define an expectation we only validate against the expectation in this second step.

This correctly catches duplicate entries from this report while filling tests: https://discord.com/channels/595666850260713488/1434985857823146059/1434999311812530176

✅ 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).

Cute Animal Picture

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

@fselmo fselmo added C-bug Category: this is a bug, deviation, or other problem C-refactor Category: refactor A-test-types Area: Test Types—Definitions used in tests/testing tools (eg. `p/t/s/e/{base,test}_types`) labels Nov 3, 2025
@fselmo fselmo force-pushed the fix/block-access-list-validation branch 3 times, most recently from 5d1606d to 640348d Compare November 3, 2025 22:04
@fselmo fselmo marked this pull request as ready for review November 3, 2025 23:32
@fselmo fselmo force-pushed the eips/amsterdam/eip-7928 branch from 70a7786 to be41913 Compare November 4, 2025 21:55
@fselmo fselmo force-pushed the fix/block-access-list-validation branch from 640348d to b1d7cd9 Compare November 4, 2025 22:02
@fselmo fselmo force-pushed the eips/amsterdam/eip-7928 branch from be41913 to 20db73a Compare November 4, 2025 22:28
- Validate static checks on the t8n BAL if it exists
- IF the expectation also exists, validate against the expectation

Keep these checks separate as this helps validation now that we fill
for all tests, regardless if they have an expectation or not.
@fselmo fselmo force-pushed the fix/block-access-list-validation branch from b1d7cd9 to 5b3d50f Compare November 4, 2025 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-test-types Area: Test Types—Definitions used in tests/testing tools (eg. `p/t/s/e/{base,test}_types`) C-bug Category: this is a bug, deviation, or other problem C-refactor Category: refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant