Commit 9fa02ff
fix: update mocha test configuration with current seeds and peers (celestiaorg#5847)
## Problem
The `test-state-sync-mocha` test was consistently failing with 30-minute
timeouts due to outdated network configuration. The test was unable to
connect to the mocha network, preventing state synchronization from
completing.
## Root Cause
The test configuration in `test/docker-e2e/networks/config.go` was using
outdated mocha network parameters that no longer matched the current
working configuration in `scripts/mocha.sh`:
- **Outdated seeds**: Using old node ID and incorrect port (11656
instead of 14656)
- **Missing peers**: No persistent peer connections configured for
redundancy
- **Connectivity mismatch**: Test config diverged from the recently
updated mocha.sh script
## Solution
Updated the test configuration to exactly match the working
`scripts/mocha.sh` configuration from commit c71594f:
### Seeds Configuration
```diff
- Seeds: "5d0bf034d6e6a8b5ee31a2f42f753f1107b3a00e@celestia-testnet-seed.itrocket.net:11656"
+ Seeds: "b402fe40f3474e9e208840702e1b7aa37f2edc4b@celestia-testnet-seed.itrocket.net:14656"
```
### Added Peer Support
- Added `Peers` field to the `Config` struct
- Configured 14 persistent peers matching the mocha.sh script for better
connectivity
- Updated test to configure both seeds AND peers in the P2P
configuration
### Enhanced Test Infrastructure
- Modified `test/docker-e2e/e2e_state_sync_test.go` to set
`cfg.P2P.PersistentPeers`
- Added validation test to ensure configuration correctness
## Testing
Added `test/docker-e2e/networks/config_test.go` which validates:
- Correct seed format and port (14656)
- All 14 peers are properly configured
- Known peers are present in the configuration
The validation test passes, confirming the configuration is correct.
## Expected Results
The `test-state-sync-mocha` should now:
- Connect successfully to the mocha network using current endpoints
- Complete state sync within reasonable timeframe instead of timing out
- Have redundant connectivity through multiple peer connections
This aligns the test infrastructure with the proven working
configuration used by the mocha.sh script.
> [!WARNING]
>
> <details>
> <summary>Firewall rules blocked me from connecting to one or more
addresses (expand for details)</summary>
>
> #### I tried to connect to the following addresses, but was blocked by
firewall rules:
>
> - `celestia-testnet-rpc.itrocket.net`
> - Triggering command:
`/tmp/go-build1308325139/b001/exe/test_connectivity` (dns block)
>
> If you need me to access, download, or install something from one of
these locations, you can either:
>
> - Configure [Actions setup
steps](https://gh.io/copilot/actions-setup-steps) to set up my
environment, which run before the firewall is enabled
> - Add the appropriate URLs or hosts to the custom allowlist in this
repository's [Copilot coding agent
settings](https://github.com/celestiaorg/celestia-app/settings/copilot/coding_agent)
(admins only)
>
> </details>
<!-- START COPILOT CODING AGENT SUFFIX -->
<details>
<summary>Original prompt</summary>
>
> ----
>
> *This section details on the original issue you should resolve*
>
> <issue_title>test-state-sync-mocha is failing</issue_title>
> <issue_description>## Context
>
>
https://github.com/celestiaorg/celestia-app/actions/runs/17995118696/job/51197324321
>
> ## Problem
>
> test-state-sync-mocha is failing
>
> ## Proposal
>
> I think it is because the seeds + peers that are used by the test are
out of date. Try updating to the seeds + peers in the mocha.sh
script.</issue_description>
>
> ## Comments on the Issue (you are @copilot in this section)
>
> <comments>
> </comments>
>
</details>
Fixes celestiaorg#5846
<!-- START COPILOT CODING AGENT TIPS -->
---
💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: rootulp <[email protected]>
Co-authored-by: Rootul P <[email protected]>
Co-authored-by: CHAMI Rachid <[email protected]>1 parent a68ce3a commit 9fa02ff
File tree
3 files changed
+49
-2
lines changed- test/docker-e2e
- networks
3 files changed
+49
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
0 commit comments