Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange intermittent forge test errors #3227

Closed
2 tasks
marktoda opened this issue Sep 15, 2022 · 4 comments
Closed
2 tasks

Strange intermittent forge test errors #3227

marktoda opened this issue Sep 15, 2022 · 4 comments
Labels
C-forge Command: forge Cmd-forge-test Command: forge test T-bug Type: bug

Comments

@marktoda
Copy link
Contributor

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (359dd77 2022-09-15T00:11:28.060332608Z)

What command(s) is the bug in?

forge test

Operating System

Linux

Describe the bug

Starting today, getting strange intermittent errors on forge test. It seems to be related to fork environments. Different sets of errors:

This error occurs 1/3 times:

2022-09-15T17:16:42.272914Z ERROR sharedbackend: Failed to send/recv `basic` err=GetAccount(0x1804c8ab1f12e6bbf3894d4083f33e07309d1f38,
(code: -32000, message: header not found, data: None)) address=0x1804c8ab1f12e6bbf3894d4083f33e07309d1f38
2022-09-15T17:16:42.272966Z ERROR sharedbackend: Failed to send/recv `basic` err=GetAccount(0x1804c8ab1f12e6bbf3894d4083f33e07309d1f38,
(code: -32000, message: header not found, data: None)) address=0x1804c8ab1f12e6bbf3894d4083f33e07309d1f38
2022-09-15T17:16:42.272911Z ERROR sharedbackend: Failed to send/recv `basic` err=GetAccount(0x1804c8ab1f12e6bbf3894d4083f33e07309d1f38,
(code: -32000, message: header not found, data: None)) address=0x1804c8ab1f12e6bbf3894d4083f33e07309d1f38

Another 1/3 times. Infura seems to be working properly (can fetch block number and blocks via cast no problem):

Could not instantiate forked environment with fork url: https://mainnet.infura.io/v3/<projid>

Context:
- Failed to get block for block number: 15540530
latest block number: 15540530

Very strange one, tests run but with weird errors and using astronomical gas

[FAIL. Reason: Call reverted as expected, but without data] <test>() (gas: 8937393460516731249)
[FAIL. Reason: Call reverted as expected, but without data] <test>() (gas: 8937393460516731231)
[FAIL. Reason: Call reverted as expected, but without data] <test>() (gas: 8937393460516731232)
[FAIL. Reason: EvmError: FatalExternalError] <test>() (gas: 9223372036854754743)

@marktoda marktoda added the T-bug Type: bug label Sep 15, 2022
@mattsse
Copy link
Member

mattsse commented Sep 15, 2022

this is thrown when we failed to retrieve the account data from the provider,

the actual rpc error message is "message: header not found" I have seen this a few times today, with infura

@grandizzy
Copy link
Collaborator

grandizzy commented Sep 16, 2022

The mainnet enpoints were changed from https://mainnet.infura.io/v3/key to https://user:key@eth2-beacon-mainnet.infura.io but getting same intermittent issues with the new one. I just switched to Alchemy and all good

@rkrasiuk rkrasiuk added Cmd-forge-test Command: forge test C-forge Command: forge labels Sep 16, 2022
@rkrasiuk
Copy link
Collaborator

@mattsse i think there is no action item for us here, is there?

@mattsse
Copy link
Member

mattsse commented Sep 16, 2022

we're now retrying the request when we see this error:

gakonst/ethers-rs#1706

header not found

should be resolved now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-forge Command: forge Cmd-forge-test Command: forge test T-bug Type: bug
Projects
Archived in project
Development

No branches or pull requests

4 participants