Parent Log: http://ci.aztec-labs.com/103a111326154930 Command: a5511b51e55ea9c0: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/f29a038c58fc1f3ad95ad05d18aea321f0f598b2 Env: REF_NAME=gh-readonly-queue/next/pr-15151-be1fa8aacb33d330cf496352bb1446439e34c51a CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 20 10:13:57 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15151_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 10:13:57 +++ id -u 10:13:57 +++ id -g 10:13:57 ++ 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'\''' 10:13:57 + cid=9c9a860c794d301d88d750747844b734d2bae23a0a2a7d40df3b17d7cadfe5d1 10:13:57 + set +x 10:14:01 [10:14:01.832] WARN: test Trusted peers not initialized, returning false 10:14:01 [10:14:01.838] WARN: test Private peers not initialized, returning false 10:14:01 [10:14:01.839] WARN: test Trusted peers not initialized, returning false 10:14:01 [10:14:01.839] WARN: test Private peers not initialized, returning false 10:14:01 [10:14:01.922] WARN: test Trusted peers not initialized, returning false 10:14:01 [10:14:01.922] WARN: test Private peers not initialized, returning false 10:14:01 [10:14:01.923] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 10:14:02 [10:14:02.159] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:14:02 [10:14:02.261] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:14:02 [10:14:02.479] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:14:02 [10:14:02.579] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:14:02 [10:14:02.694] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:14:02 [10:14:02.796] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:14:02 [10:14:02.938] WARN: test Trusted peers not initialized, returning false 10:14:02 [10:14:02.938] WARN: test Private peers not initialized, returning false 10:14:02 [10:14:02.939] WARN: test Trusted peers not initialized, returning false 10:14:02 [10:14:02.939] WARN: test Private peers not initialized, returning false 10:14:02 [10:14:02.939] WARN: test Trusted peers not initialized, returning false 10:14:02 [10:14:02.939] WARN: test Private peers not initialized, returning false 10:14:03 [10:14:03.053] WARN: test Trusted peers not initialized, returning false 10:14:03 [10:14:03.053] WARN: test Private peers not initialized, returning false 10:14:03 [10:14:03.054] WARN: test Trusted peers not initialized, returning false 10:14:03 [10:14:03.054] WARN: test Private peers not initialized, returning false 10:14:03 [10:14:03.054] WARN: test Trusted peers not initialized, returning false 10:14:03 [10:14:03.055] WARN: test Private peers not initialized, returning false 10:14:03 [10:14:03.055] WARN: test Trusted peers not initialized, returning false 10:14:03 [10:14:03.055] WARN: test Private peers not initialized, returning false 10:14:03 [10:14:03.056] WARN: test Trusted peers not initialized, returning false 10:14:03 [10:14:03.056] WARN: test Private peers not initialized, returning false 10:14:03 [10:14:03.162] WARN: test Trusted peers not initialized, returning false 10:14:03 [10:14:03.162] WARN: test Private peers not initialized, returning false 10:14:03 [10:14:03.384] WARN: test Private peers not initialized, returning false 10:14:03 [10:14:03.495] WARN: test Private peers not initialized, returning false 10:14:04 [10:14:04.271] WARN: test Private peers not initialized, returning false 10:14:04 [10:14:04.271] WARN: test Private peers not initialized, returning false 10:14:04 [10:14:04.972] WARN: test Trusted peers not initialized, returning false 10:14:04 [10:14:04.983] WARN: test Private peers not initialized, returning false 10:14:04 [10:14:04.984] WARN: test Private peers not initialized, returning false 10:14:04 [10:14:04.984] WARN: test Private peers not initialized, returning false 10:14:05 [10:14:05.855] WARN: test Private peers not initialized, returning false 10:14:05 [10:14:05.993] WARN: test Trusted peers not initialized, returning false 10:14:05 [10:14:05.993] WARN: test Private peers not initialized, returning false 10:14:06 PASS src/services/peer-manager/peer_manager.test.ts (7.081 s) 10:14:06 PeerManager 10:14:06 peer management 10:14:06 should return connected peers (62 ms) 10:14:06 should return peers in dial queue (7 ms) 10:14:06 should penalize peers (8 ms) 10:14:06 should handle heartbeat (11 ms) 10:14:06 should send goodbye to peers on shutdown (9 ms) 10:14:06 peer timeout functionality 10:14:06 should attempt to dial a discovered peer (67 ms) 10:14:06 should report peer count metric (105 ms) 10:14:06 should retry failed dials up to MAX_DIAL_ATTEMPTS (338 ms) 10:14:06 should timeout a peer after max dial attempts and ignore it for the timeout period (222 ms) 10:14:06 should cleanup expired timeouts during heartbeat (213 ms) 10:14:06 should include timed out peers in getPeers when includePending is true (11 ms) 10:14:06 should handle multiple peer discoveries and timeouts (121 ms) 10:14:06 should disconnect from unhealthy peers during heartbeat (110 ms) 10:14:06 should disconnect from low scoring peers above the max peer limit during heartbeat (115 ms) 10:14:06 should disconnect from duplicate peers during heartbeat (106 ms) 10:14:06 should properly clean up peers on stop (5 ms) 10:14:06 trusted peers 10:14:06 should not prune trusted peers (103 ms) 10:14:06 should prune untrusted peers and not trusted peers (117 ms) 10:14:06 should not disconnect trusted peers with low scores (105 ms) 10:14:06 should not remove trusted peers from the cache during pruning (676 ms) 10:14:06 should not remove trusted peers from the cache even when all peers are trusted (696 ms) 10:14:06 should return false from isTrustedPeer when trusted peers are not initialized (4 ms) 10:14:06 should not disconnect trusted peers when max peer count is reached (119 ms) 10:14:06 private peers 10:14:06 should not prune private peers with low scores (106 ms) 10:14:06 should not remove private peers from the cache during pruning (652 ms) 10:14:06 should return false from isPrivatePeer when private peers are not initialized (3 ms) 10:14:06 should initialize private peers from config (24 ms) 10:14:06 should handle a peer being both trusted and private (106 ms) 10:14:06 goodbye metrics 10:14:06 should record metrics when receiving goodbye messages (3 ms) 10:14:06 should record metrics when sending goodbye messages (4 ms) 10:14:06 10:14:06 Test Suites: 1 passed, 1 total 10:14:06 Tests: 30 passed, 30 total 10:14:06 Snapshots: 0 total 10:14:06 Time: 7.186 s 10:14:06 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 10:14:06 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?