Parent Log: http://ci.aztec-labs.com/14599c7f9b5e088f Command: 736bd65c2c998997: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/2b96419831503435fa46a83dc2e2b7ba19109d0f Env: REF_NAME=gh-readonly-queue/next/pr-15229-af094bce13530e078c78de9f3264280e6693d533 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 24 08:39:56 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15229_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 08:39:56 +++ id -u 08:39:56 +++ id -g 08:39:56 ++ 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'\''' 08:39:56 + cid=27d02e44d9fba886f233e4caa9a4f657b532f01762e0616cb339ad4b4ac918c0 08:39:56 + set +x 08:40:00 [08:40:00.717] WARN: test Trusted peers not initialized, returning false 08:40:00 [08:40:00.721] WARN: test Private peers not initialized, returning false 08:40:00 [08:40:00.722] WARN: test Trusted peers not initialized, returning false 08:40:00 [08:40:00.722] WARN: test Private peers not initialized, returning false 08:40:00 [08:40:00.833] WARN: test Trusted peers not initialized, returning false 08:40:00 [08:40:00.834] WARN: test Private peers not initialized, returning false 08:40:00 [08:40:00.835] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 08:40:01 [08:40:01.076] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 08:40:01 [08:40:01.178] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 08:40:01 [08:40:01.395] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 08:40:01 [08:40:01.496] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 08:40:01 [08:40:01.621] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 08:40:01 [08:40:01.723] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 08:40:01 [08:40:01.860] WARN: test Trusted peers not initialized, returning false 08:40:01 [08:40:01.861] WARN: test Private peers not initialized, returning false 08:40:01 [08:40:01.861] WARN: test Trusted peers not initialized, returning false 08:40:01 [08:40:01.862] WARN: test Private peers not initialized, returning false 08:40:01 [08:40:01.862] WARN: test Trusted peers not initialized, returning false 08:40:01 [08:40:01.862] WARN: test Private peers not initialized, returning false 08:40:01 [08:40:01.975] WARN: test Trusted peers not initialized, returning false 08:40:01 [08:40:01.976] WARN: test Private peers not initialized, returning false 08:40:01 [08:40:01.976] WARN: test Trusted peers not initialized, returning false 08:40:01 [08:40:01.976] WARN: test Private peers not initialized, returning false 08:40:01 [08:40:01.977] WARN: test Trusted peers not initialized, returning false 08:40:01 [08:40:01.978] WARN: test Private peers not initialized, returning false 08:40:01 [08:40:01.978] WARN: test Trusted peers not initialized, returning false 08:40:01 [08:40:01.978] WARN: test Private peers not initialized, returning false 08:40:01 [08:40:01.979] WARN: test Trusted peers not initialized, returning false 08:40:01 [08:40:01.979] WARN: test Private peers not initialized, returning false 08:40:02 [08:40:02.086] WARN: test Trusted peers not initialized, returning false 08:40:02 [08:40:02.086] WARN: test Private peers not initialized, returning false 08:40:02 [08:40:02.309] WARN: test Private peers not initialized, returning false 08:40:02 [08:40:02.424] WARN: test Private peers not initialized, returning false 08:40:03 [08:40:03.129] WARN: test Private peers not initialized, returning false 08:40:03 [08:40:03.130] WARN: test Private peers not initialized, returning false 08:40:03 [08:40:03.687] WARN: test Trusted peers not initialized, returning false 08:40:03 [08:40:03.697] WARN: test Private peers not initialized, returning false 08:40:03 [08:40:03.697] WARN: test Private peers not initialized, returning false 08:40:03 [08:40:03.698] WARN: test Private peers not initialized, returning false 08:40:04 [08:40:04.520] WARN: test Private peers not initialized, returning false 08:40:04 [08:40:04.644] WARN: test Trusted peers not initialized, returning false 08:40:04 [08:40:04.644] WARN: test Private peers not initialized, returning false 08:40:04 PASS src/services/peer-manager/peer_manager.test.ts (6.721 s) 08:40:04 PeerManager 08:40:04 peer management 08:40:04 should return connected peers (39 ms) 08:40:04 should return peers in dial queue (5 ms) 08:40:04 should penalize peers (3 ms) 08:40:04 should handle heartbeat (7 ms) 08:40:04 should send goodbye to peers on shutdown (7 ms) 08:40:04 peer timeout functionality 08:40:04 should attempt to dial a discovered peer (96 ms) 08:40:04 should report peer count metric (109 ms) 08:40:04 should retry failed dials up to MAX_DIAL_ATTEMPTS (341 ms) 08:40:04 should timeout a peer after max dial attempts and ignore it for the timeout period (225 ms) 08:40:04 should cleanup expired timeouts during heartbeat (220 ms) 08:40:04 should include timed out peers in getPeers when includePending is true (9 ms) 08:40:04 should handle multiple peer discoveries and timeouts (116 ms) 08:40:04 should disconnect from unhealthy peers during heartbeat (111 ms) 08:40:04 should disconnect from low scoring peers above the max peer limit during heartbeat (117 ms) 08:40:04 should disconnect from duplicate peers during heartbeat (106 ms) 08:40:04 should properly clean up peers on stop (7 ms) 08:40:04 trusted peers 08:40:04 should not prune trusted peers (104 ms) 08:40:04 should prune untrusted peers and not trusted peers (116 ms) 08:40:04 should not disconnect trusted peers with low scores (110 ms) 08:40:04 should not remove trusted peers from the cache during pruning (603 ms) 08:40:04 should not remove trusted peers from the cache even when all peers are trusted (553 ms) 08:40:04 should return false from isTrustedPeer when trusted peers are not initialized (3 ms) 08:40:04 should not disconnect trusted peers when max peer count is reached (117 ms) 08:40:04 private peers 08:40:04 should not prune private peers with low scores (114 ms) 08:40:04 should not remove private peers from the cache during pruning (594 ms) 08:40:04 should return false from isPrivatePeer when private peers are not initialized (8 ms) 08:40:04 should initialize private peers from config (12 ms) 08:40:04 should handle a peer being both trusted and private (104 ms) 08:40:04 goodbye metrics 08:40:04 should record metrics when receiving goodbye messages (3 ms) 08:40:04 should record metrics when sending goodbye messages (3 ms) 08:40:04 08:40:04 Test Suites: 1 passed, 1 total 08:40:04 Tests: 30 passed, 30 total 08:40:04 Snapshots: 0 total 08:40:04 Time: 6.823 s 08:40:04 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 08:40:04 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?