ethereum-optimism / ethereum-optimism/optimism
flaky test: `TestP2PFull`
- Dominant language
- Go
- Stars
- 6.5k
- Forks
- 4k
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 145
Description
CircleCI Insights reports 6 flakes across `go-tests-short`, `go-tests-full`, and `go-tests` in the current 14-day window (checked 2026-08-11).
CI runs:
- https://circleci.com/gh/ethereum-optimism/optimism/5401783
- https://circleci.com/gh/ethereum-optimism/optimism/5440367
- https://circleci.com/gh/ethereum-optimism/optimism/5446081
Representative failures at `host_test.go:260`:
```
failed to dial : no addresses
```
and:
```
failed to dial : all dials failed
* [/ip4/127.0.0.1/tcp/44191] failed to negotiate security protocol:
error reading handshake message: noise: message is too short
```
Each failing attempt took 0.01s and passed on retry in 0.02s.
Contributor guide
Research direction
Start with TestP2PFull and host_test.go:260, then compare the linked CircleCI runs across go-tests-short, go-tests-full, and go-tests. Reproduce the no-address or Noise handshake failures and identify why the peer dial sometimes fails; done means the test no longer flakes across these CI jobs and still verifies the P2P behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- networking, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100