Skip to content

Conversation

@igor-sirotin
Copy link
Collaborator

@igor-sirotin igor-sirotin commented Sep 19, 2025

The test passes in a fresh setup:

  1. Create a local waku network: docker compose ...
  2. Run the test pytest -k test_discovery

But trying to run the test_discovery after any other tests fails. The problm is that docker reuses IP addresses, and peer exchange server cache seem to only clear it in 10 min. So in test_discovery the peer exchange client gets a list of nodes from previous test runs. We even try to connect to them, but obviously fail.

@status-im-auto
Copy link
Member

status-im-auto commented Sep 19, 2025

Jenkins Builds

Click to see older builds (28)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ df48dbf #1 2025-09-19 14:09:06 ~3 min macos/status-go 📦zip
✔️ df48dbf #1 2025-09-19 14:09:23 ~3 min linux/status-go 📦zip
✔️ df48dbf #1 2025-09-19 14:10:36 ~4 min windows/status-go 📦zip
✔️ df48dbf #1 2025-09-19 14:16:13 ~10 min linux/nwaku 📦zip
✖️ df48dbf #1 2025-09-19 14:17:43 ~11 min tests-rpc 📄log
✖️ df48dbf #1 2025-09-19 14:32:46 ~26 min tests 📄log
df48dbf #1 2025-12-01 11:31:23 ~20 min macos/nwaku 📄log
df48dbf #1 2025-12-01 11:43:56 ~17 min windows/nwaku 📄log
✖️ df48dbf #1 2025-12-01 12:49:10 ~36 min tests 📄log
✖️ df48dbf #1 2025-12-01 13:30:27 ~1 hr 0 min tests-rpc 📄log
✔️ 6c2cec5 #3 2025-12-09 01:11:34 ~4 min linux/status-go 📦zip
6c2cec5 #2 2025-12-09 01:11:40 ~4 min macos/nwaku 📄log
✔️ 6c2cec5 #3 2025-12-09 01:11:50 ~4 min macos/status-go 📦zip
✔️ 6c2cec5 #3 2025-12-09 01:11:55 ~4 min windows/status-go 📦zip
✔️ 6c2cec5 #3 2025-12-09 01:15:17 ~8 min linux/nwaku 📦zip
6c2cec5 #2 2025-12-09 01:17:42 ~10 min windows/nwaku 📄log
✖️ 6c2cec5 #2 2025-12-09 01:29:12 ~21 min tests-rpc 📄log
✖️ 6c2cec5 #3 2025-12-09 01:29:41 ~22 min tests-rpc 📄log
✔️ 6c2cec5 #3 2025-12-09 01:35:49 ~28 min tests 📄log
✔️ 6c2cec5 #2 2025-12-09 01:36:32 ~29 min tests 📄log
✔️ e0ba505 #4 2025-12-09 10:44:02 ~4 min linux/status-go 📦zip
e0ba505 #3 2025-12-09 10:44:08 ~4 min macos/nwaku 📄log
✔️ e0ba505 #4 2025-12-09 10:44:42 ~4 min windows/status-go 📦zip
✔️ e0ba505 #4 2025-12-09 10:44:53 ~4 min macos/status-go 📦zip
✔️ e0ba505 #4 2025-12-09 10:47:49 ~7 min linux/nwaku 📦zip
✖️ e0ba505 #3 2025-12-09 10:57:45 ~17 min tests-rpc 📄log
✖️ e0ba505 #4 2025-12-09 10:59:53 ~19 min tests-rpc 📄log
✔️ e0ba505 #3 2025-12-09 11:06:26 ~26 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
99d8e61 #4 2025-12-09 10:48:22 ~4 min macos/nwaku 📄log
✔️ 99d8e61 #5 2025-12-09 10:49:29 ~4 min macos/status-go 📦zip
✔️ 99d8e61 #5 2025-12-09 10:50:04 ~5 min windows/status-go 📦zip
✔️ 99d8e61 #5 2025-12-09 10:50:51 ~6 min linux/status-go 📦zip
99d8e61 #4 2025-12-09 10:51:46 ~10 min windows/nwaku 📄log
✔️ 99d8e61 #5 2025-12-09 10:56:27 ~8 min linux/nwaku 📦zip
✔️ 99d8e61 #5 2025-12-09 11:08:49 ~25 min tests 📄log
✖️ 99d8e61 #4 2025-12-09 11:18:16 ~20 min tests-rpc 📄log
✖️ 99d8e61 #5 2025-12-09 11:18:41 ~18 min tests-rpc 📄log
✖️ 99d8e61 #6 2025-12-09 17:26:00 ~13 min tests-rpc 📄log
57bd6cc #5 2025-12-09 17:23:09 ~4 min macos/nwaku 📄log
✔️ 57bd6cc #6 2025-12-09 17:23:19 ~4 min macos/status-go 📦zip
✔️ 57bd6cc #6 2025-12-09 17:23:35 ~4 min windows/status-go 📦zip
57bd6cc #5 2025-12-09 17:27:38 ~8 min windows/nwaku 📄log
✔️ 57bd6cc #6 2025-12-09 17:41:49 ~23 min linux/status-go 📦zip
✔️ 57bd6cc #6 2025-12-09 17:46:48 ~28 min linux/nwaku 📦zip
✖️ 57bd6cc #5 2025-12-09 18:01:44 ~42 min tests-rpc 📄log
✖️ 57bd6cc #7 2025-12-09 18:02:17 ~36 min tests-rpc 📄log
✔️ 57bd6cc #5 2025-12-09 18:07:03 ~48 min tests 📄log
✔️ 57bd6cc #6 2025-12-09 18:07:05 ~48 min tests 📄log
✔️ 57bd6cc #8 2025-12-09 21:24:47 ~16 min tests-rpc 📄log
✔️ 57bd6cc #6 2025-12-09 23:30:52 ~15 min tests-rpc 📄log

Base automatically changed from fix/peer-exchange to develop September 22, 2025 22:19
@igor-sirotin
Copy link
Collaborator Author

@igor-sirotin igor-sirotin force-pushed the test/light-client-discovery branch from df48dbf to 6c2cec5 Compare December 9, 2025 01:06
@codecov
Copy link

codecov bot commented Dec 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.76%. Comparing base (0fc8432) to head (57bd6cc).

Additional details and impacted files
@@             Coverage Diff              @@
##           develop    #6943       +/-   ##
============================================
+ Coverage    36.28%   59.76%   +23.48%     
============================================
  Files          800      815       +15     
  Lines       111467   113558     +2091     
============================================
+ Hits         40446    67872    +27426     
+ Misses       65933    38853    -27080     
- Partials      5088     6833     +1745     
Flag Coverage Δ
functional 35.26% <ø> (-1.02%) ⬇️
unit 54.96% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 509 files with indirect coverage changes

@igor-sirotin igor-sirotin force-pushed the test/light-client-discovery branch from e0ba505 to 99d8e61 Compare December 9, 2025 10:40
@igor-sirotin igor-sirotin changed the title Test/light client discovery test: light client discovery Dec 9, 2025
@igor-sirotin
Copy link
Collaborator Author

On CI, test is failing because it discovers MORE peers than required:

Checking node backend_2 peers: ['store', 'dEJ5V', 'N3pjM', 'Xzvze', 'boot-1', '8XaGU', 'S7hRq', 'backend_1', 'HRBGd', 'backend_4', 'backend_0', 'RNHDq', '8voX5', 'A2Qrb', 'NsY6o']

These are probably the peers from parallel runs, and this is expected.
I'll change the behaviour to check that all expected peers found, and more peers are ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants