-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
A-compilerArea: compilerArea: compilerCmd-forge-testCommand: forge testCommand: forge testT-bugType: bugType: bug
Description
Component
Forge
Have you ensured that all of these are up to date?
- Foundry
- Foundryup
What version of Foundry are you on?
No response
What version of Foundryup are you on?
No response
What command(s) is the bug in?
No response
Operating System
None
Describe the bug
Steps to reproduce:
git clone https://github.com/ethereum-optimism/optimism.gitgit checkout opcm-up/upgrade-asr- branch with following compiler profiles enabled
additional_compiler_profiles = [
{ name = "dispute", optimizer_runs = 5000 },
]
compilation_restrictions = [
{ paths = "src/dispute/FaultDisputeGame.sol", optimizer_runs = 5000 },
{ paths = "src/dispute/PermissionedDisputeGame.sol", optimizer_runs = 5000 },
{ paths = "src/L1/OPContractsManager.sol", optimizer_runs = 5000 },
]cd optimism/packages/contracts-bedrockforge test --mt invariant_gasLimitBoundariesfails with
Ran 1 test for test/invariants/SystemConfig.t.sol:SystemConfig_GasLimitBoundaries_Invariant
[FAIL: failed to set up invariant testing environment: src/universal/Proxy.sol:Proxy does not have the selector 0xb40a817c] invariant_gasLimitBoundaries() (runs: 0, calls: 0, reverts: 0)
Suite result: FAILED. 0 passed; 1 failed; 0 skipped; finished in 9.84ms (4.89ms CPU time)
Ran 1 test suite in 49.66ms (9.84ms CPU time): 0 tests passed, 1 failed, 0 skipped (1 total tests)
Failing tests:
Encountered 1 failing test in test/invariants/SystemConfig.t.sol:SystemConfig_GasLimitBoundaries_Invariant
[FAIL: failed to set up invariant testing environment: src/universal/Proxy.sol:Proxy does not have the selector 0xb40a817c] invariant_gasLimitBoundaries() (runs: 0, calls: 0, reverts: 0)- test pass if removing compiler profiles from foundry.toml and
forge clean && forge build
Metadata
Metadata
Assignees
Labels
A-compilerArea: compilerArea: compilerCmd-forge-testCommand: forge testCommand: forge testT-bugType: bugType: bug
Type
Projects
Status
Done