Skip to content

test(policy): remove POLICY_DISPATCH_FIX skip from dispatch_inactive - #242

Merged
meyer9 merged 2 commits into
mainfrom
chore/remove-policy-dispatch-fix-flag
Oct 26, 2026
Merged

meyer9 merged 2 commits into
mainfrom
chore/remove-policy-dispatch-fix-flag

Conversation

@rayyan224

Copy link
Copy Markdown
Collaborator

Removes the POLICY_DISPATCH_FIX env gate from test_dispatch_revert_unknownSelectorNotMaskedByActivation, so it runs whenever fork mode is on instead of being reported as skipped. Also drops the flag from LIVE_PRECOMPILE_TESTING.md.

This avoids adding extra config for the flag to base/base CI (see base/base#6154).

Testing: forge test --match-path test/unit/PolicyRegistry/dispatch_inactive.t.sol compiles and skips in mock mode as before. Fork CI is the check that the live precompile passes this test.

The unknown-selector dispatch test no longer needs the POLICY_DISPATCH_FIX opt-in, so it runs whenever fork mode is on. Drop the flag from the test and from LIVE_PRECOMPILE_TESTING.md so base/base CI needs no extra config.

Co-authored-by: Toshi <toshi-noreply@coinbase.com>
@github-actions

Copy link
Copy Markdown

Interface Coverage

✅ All interface functions have test coverage.

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

📊 Forge Coverage (src/lib/)

🟡 ≥95% across all metrics — some metrics below 99%.

File Lines Stmts Branches Funcs
🟡 B20FactoryLib.sol 97.70% 98.00% 100.00% 95.00%
🔴 test/lib/ForceFeeder.sol 0.00% 0.00% 100.00% 0.00%
🔴 test/lib/PrecompileProbe.sol 0.00% 0.00% 0.00% 0.00%
🟢 MockActivationRegistry.sol 100.00% 100.00% 100.00% 100.00%
🟢 MockActivationRegistryStorage.sol 100.00% 100.00% 100.00% 100.00%
🟢 MockB20.sol 100.00% 99.68% 100.00% 100.00%
🟢 MockB20Asset.sol 100.00% 100.00% 100.00% 100.00%
🟡 MockB20Factory.sol 98.96% 99.10% 100.00% 100.00%
🟢 MockB20Stablecoin.sol 100.00% 100.00% 100.00% 100.00%
🟢 MockB20Storage.sol 100.00% 100.00% 100.00% 100.00%
🟢 MockBaseTime.sol 100.00% 100.00% 100.00% 100.00%
🟡 MockPolicyRegistry.sol 100.00% 99.58% 97.78% 100.00%
🟢 MockPolicyRegistryStorage.sol 100.00% 100.00% 100.00% 100.00%
Total 97.14% 97.51% 98.21% 97.07%

Full report: download artifact. To browse locally: make coverage (runs forge coverage + genhtml + opens the HTML report).

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

✅ Fork tests: 795 passed, 0 failed, 13 skipped

The completed Denim suite passed. Skipped tests were not validated.

meyer9 added a commit to base/base that referenced this pull request Oct 22, 2026
base/base-std#242 removes the flag from base-std, but the pinned Beryl
and Cobalt tags, and Denim until its ref moves past that change, still
skip the dispatch test without it.

Amp-Thread-ID: https://ampcode.com/threads/T-f04cecba-e4dc-42c5-94de-8846dbf5444c
Co-authored-by: Julian Meyer <julian.meyer@coinbase.com>
@meyer9
meyer9 merged commit b97145b into main Oct 26, 2026
10 checks passed
@meyer9
meyer9 deleted the chore/remove-policy-dispatch-fix-flag branch October 26, 2026 16:24
meyer9 added a commit to base/base that referenced this pull request Oct 26, 2026
base/base-std#242 runs the policy dispatch-ordering test in live mode
without POLICY_DISPATCH_FIX. Move Denim's base-std ref to its merge
commit; the Beryl and Cobalt tags still read the flag.

Amp-Thread-ID: https://ampcode.com/threads/T-f04cecba-e4dc-42c5-94de-8846dbf5444c
Co-authored-by: Julian Meyer <julian.meyer@coinbase.com>
meyer9 added a commit to base/base that referenced this pull request Oct 26, 2026
Denim's base-std ref includes base/base-std#242, which runs the policy
dispatch-ordering test without the flag. The Beryl and Cobalt tags
predate that change, so the test stays skipped there; that is accepted
rather than carrying the flag for two frozen refs.

Amp-Thread-ID: https://ampcode.com/threads/T-f04cecba-e4dc-42c5-94de-8846dbf5444c
Co-authored-by: Julian Meyer <julian.meyer@coinbase.com>
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.

2 participants