ava-labs / subnet-evm

Launch your own EVM as an Avalanche Subnet
https://docs.avax.network/subnets/create-a-fuji-subnet
GNU Lesser General Public License v3.0
239 stars 217 forks source link

[flake] upstream TestChainIndexerWithChildren unit test failure #1238

Open marun opened 1 month ago

marun commented 1 month ago

This flake was seen recently in CI: https://github.com/ava-labs/subnet-evm/actions/runs/9922012679/job/27410601129#step:7:68

The test in question is from upstream, and the failure appears to be timing-related.

-test.shuffle 1720895400787666590
From: `0xffffFFFfFFffffffffffffffFfFFFfffFFFfFFfE`
To: `0x000F3df6D732807Ef1319fB7B8bB8522d0Beac02`
Data: `0x0000000000000000000000000000000000000000000000000000000000000000`
Gas: `30000000`
Value `0` wei

|  Pc   |      Op     | Cost |   Stack   |   RStack  |  Refund |
|-------|-------------|------|-----------|-----------|---------|

Output: ``
Consumed gas: `0`
Error: `<nil>`
From: `0x71562b71999873DB5b286dF957af199Ec94617F7`
To: `0x000000000000000000000000000000000000BbBB`
Data: ``
Gas: `479000`
Value `0` wei

|  Pc   |      Op     | Cost |   Stack   |   RStack  |  Refund |
|-------|-------------|------|-----------|-----------|---------|
|    0  |      PUSH1  |    3 |        [] |         0 |
|    2  |       DUP1  |    3 |     [0x0] |         0 |
|    3  |       DUP1  |    3 | [0x0,0x0] |         0 |
|    4  |       DUP1  |    3 |[0x0,0x0,0x0] |         0 |
|    5  |      PUSH2  |    3 |[0x0,0x0,0x0,0x0] |         0 |
|    8  |        GAS  |    2 |[0x0,0x0,0x0,0x0,0xaaaa] |         0 |
|    9  | DELEGATECALL  |  471501 |[0x0,0x0,0x0,0x0,0xaaaa,0x74f07] |         0 |
|    0  |         PC  |    2 |        [] |         0 |
|    1  |         PC  |    2 |     [0x0] |         0 |
|    2  |      SLOAD  |  2100 | [0x0,0x1] |         0 |
|    3  |      SLOAD  |  2100 | [0x0,0x0] |         0 |
|    4  |       STOP  |    0 | [0x0,0x0] |         0 |
|   10  |       STOP  |    0 |     [0x1] |         0 |

Output: ``
Consumed gas: `4321`
Error: `<nil>`
--- FAIL: TestChainIndexerWithChildren (8.85s)
    chain_indexer_test.go:166: Canonical section count mismatch: have 501, want 502
FAIL
joshua-kim commented 1 month ago

likely related: https://github.com/ava-labs/subnet-evm/issues/1242