Parent Log: http://ci.aztec-labs.com/1fba7ea69bc65366 Command: b818050160cbcbd8:ISOLATE=1:NAME=p2p/src/services/peer-manager/peer_manager.test.ts yarn-project/scripts/run_test.sh p2p/src/services/peer-manager/peer_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/184d5f7d956dd7251670a2dd6728f313cfdf3caf Env: REF_NAME=gh-readonly-queue/next/pr-14822-e56baa7f24bac54baf9e2f22f6f33ae6fa8b8c0f CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 13 21:17:59 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14822_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 21:17:59 +++ id -u 21:17:59 +++ id -g 21:17:59 ++ docker run -d --name p2p_src_services_peer-manager_peer_manager.test.ts --net=none --cpuset-cpus=0-127 --cpus=2 --memory=8g --user 1000:1000 -v/home/aztec-dev:/home/aztec-dev --mount type=tmpfs,target=/tmp,tmpfs-size=1g --workdir /home/aztec-dev/aztec-packages -e HOME -e VERBOSE -e GIT_CONFIG_GLOBAL=/home/aztec-dev/aztec-packages/build-images/src/home/.gitconfig -e FORCE_COLOR=true -e CPUS -e MEM aztecprotocol/build:3.0 /bin/bash -c 'timeout -v 600s bash -c '\''yarn-project/scripts/run_test.sh p2p/src/services/peer-manager/peer_manager.test.ts'\''' 21:17:59 + cid=c5a7a2b7da0eab7ad692acb05cce4e666e1726630373d9d7cd14bd83e6bc3fb2 21:17:59 + set +x 21:18:03 [21:18:03.493] WARN: test Trusted peers not initialized, returning false 21:18:03 [21:18:03.498] WARN: test Private peers not initialized, returning false 21:18:03 [21:18:03.498] WARN: test Trusted peers not initialized, returning false 21:18:03 [21:18:03.499] WARN: test Private peers not initialized, returning false 21:18:03 [21:18:03.569] WARN: test Trusted peers not initialized, returning false 21:18:03 [21:18:03.569] WARN: test Private peers not initialized, returning false 21:18:03 [21:18:03.570] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 21:18:03 [21:18:03.796] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 21:18:03 [21:18:03.898] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 21:18:04 [21:18:04.113] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 21:18:04 [21:18:04.214] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 21:18:04 [21:18:04.329] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 21:18:04 [21:18:04.432] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 21:18:04 [21:18:04.563] WARN: test Trusted peers not initialized, returning false 21:18:04 [21:18:04.563] WARN: test Private peers not initialized, returning false 21:18:04 [21:18:04.563] WARN: test Trusted peers not initialized, returning false 21:18:04 [21:18:04.564] WARN: test Private peers not initialized, returning false 21:18:04 [21:18:04.564] WARN: test Trusted peers not initialized, returning false 21:18:04 [21:18:04.564] WARN: test Private peers not initialized, returning false 21:18:04 [21:18:04.671] WARN: test Trusted peers not initialized, returning false 21:18:04 [21:18:04.672] WARN: test Private peers not initialized, returning false 21:18:04 [21:18:04.672] WARN: test Trusted peers not initialized, returning false 21:18:04 [21:18:04.672] WARN: test Private peers not initialized, returning false 21:18:04 [21:18:04.672] WARN: test Trusted peers not initialized, returning false 21:18:04 [21:18:04.673] WARN: test Private peers not initialized, returning false 21:18:04 [21:18:04.673] WARN: test Trusted peers not initialized, returning false 21:18:04 [21:18:04.673] WARN: test Private peers not initialized, returning false 21:18:04 [21:18:04.673] WARN: test Trusted peers not initialized, returning false 21:18:04 [21:18:04.673] WARN: test Private peers not initialized, returning false 21:18:04 [21:18:04.779] WARN: test Trusted peers not initialized, returning false 21:18:04 [21:18:04.779] WARN: test Private peers not initialized, returning false 21:18:04 [21:18:04.994] WARN: test Private peers not initialized, returning false 21:18:05 [21:18:05.101] WARN: test Private peers not initialized, returning false 21:18:05 [21:18:05.789] WARN: test Private peers not initialized, returning false 21:18:05 [21:18:05.789] WARN: test Private peers not initialized, returning false 21:18:06 [21:18:06.301] WARN: test Trusted peers not initialized, returning false 21:18:06 [21:18:06.310] WARN: test Private peers not initialized, returning false 21:18:06 [21:18:06.310] WARN: test Private peers not initialized, returning false 21:18:06 [21:18:06.310] WARN: test Private peers not initialized, returning false 21:18:07 [21:18:07.083] WARN: test Private peers not initialized, returning false 21:18:07 [21:18:07.203] WARN: test Trusted peers not initialized, returning false 21:18:07 [21:18:07.204] WARN: test Private peers not initialized, returning false 21:18:07 PASS src/services/peer-manager/peer_manager.test.ts (6.368 s) 21:18:07 PeerManager 21:18:07 peer management 21:18:07 should return connected peers (47 ms) 21:18:07 should return peers in dial queue (4 ms) 21:18:07 should penalize peers (2 ms) 21:18:07 should handle heartbeat (9 ms) 21:18:07 should send goodbye to peers on shutdown (6 ms) 21:18:07 peer timeout functionality 21:18:07 should attempt to dial a discovered peer (60 ms) 21:18:07 should report peer count metric (105 ms) 21:18:07 should retry failed dials up to MAX_DIAL_ATTEMPTS (331 ms) 21:18:07 should timeout a peer after max dial attempts and ignore it for the timeout period (218 ms) 21:18:07 should cleanup expired timeouts during heartbeat (215 ms) 21:18:07 should include timed out peers in getPeers when includePending is true (7 ms) 21:18:07 should handle multiple peer discoveries and timeouts (115 ms) 21:18:07 should disconnect from unhealthy peers during heartbeat (107 ms) 21:18:07 should disconnect from low scoring peers above the max peer limit during heartbeat (111 ms) 21:18:07 should disconnect from duplicate peers during heartbeat (105 ms) 21:18:07 should properly clean up peers on stop (5 ms) 21:18:07 trusted peers 21:18:07 should not prune trusted peers (104 ms) 21:18:07 should prune untrusted peers and not trusted peers (106 ms) 21:18:07 should not disconnect trusted peers with low scores (107 ms) 21:18:07 should not remove trusted peers from the cache during pruning (587 ms) 21:18:07 should not remove trusted peers from the cache even when all peers are trusted (509 ms) 21:18:07 should return false from isTrustedPeer when trusted peers are not initialized (3 ms) 21:18:07 should not disconnect trusted peers when max peer count is reached (111 ms) 21:18:07 private peers 21:18:07 should not prune private peers with low scores (107 ms) 21:18:07 should not remove private peers from the cache during pruning (560 ms) 21:18:07 should return false from isPrivatePeer when private peers are not initialized (2 ms) 21:18:07 should initialize private peers from config (10 ms) 21:18:07 should handle a peer being both trusted and private (103 ms) 21:18:07 goodbye metrics 21:18:07 should record metrics when receiving goodbye messages (4 ms) 21:18:07 should record metrics when sending goodbye messages (4 ms) 21:18:07 21:18:07 Test Suites: 1 passed, 1 total 21:18:07 Tests: 30 passed, 30 total 21:18:07 Snapshots: 0 total 21:18:07 Time: 6.452 s 21:18:07 Ran all test suites matching /p2p\/src\/services\/peer-manager\/peer_manager.test.ts/i. 21:18:07 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?