Parent Log: http://ci.aztec-labs.com/5b0c3de501d8603e Command: 4ef547fa5e299294: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/016def8adbfe93f34b41a41f439b146b5318c895 Env: REF_NAME=gh-readonly-queue/next/pr-15237-d4893155ff105399557b55c16450c39921c70d11 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 24 11:55:44 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15237_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 11:55:44 +++ id -u 11:55:44 +++ id -g 11:55:44 ++ 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'\''' 11:55:44 + cid=fd35bd5fbdb52dfdbc4bdf2725ef97397cacd519e959373aa44beae147a809ec 11:55:44 + set +x 11:55:48 [11:55:48.631] WARN: test Trusted peers not initialized, returning false 11:55:48 [11:55:48.638] WARN: test Private peers not initialized, returning false 11:55:48 [11:55:48.639] WARN: test Trusted peers not initialized, returning false 11:55:48 [11:55:48.639] WARN: test Private peers not initialized, returning false 11:55:48 [11:55:48.715] WARN: test Trusted peers not initialized, returning false 11:55:48 [11:55:48.716] WARN: test Private peers not initialized, returning false 11:55:48 [11:55:48.716] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 11:55:48 [11:55:48.960] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 11:55:49 [11:55:49.063] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 11:55:49 [11:55:49.278] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 11:55:49 [11:55:49.380] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 11:55:49 [11:55:49.497] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 11:55:49 [11:55:49.599] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 11:55:49 [11:55:49.750] WARN: test Trusted peers not initialized, returning false 11:55:49 [11:55:49.750] WARN: test Private peers not initialized, returning false 11:55:49 [11:55:49.750] WARN: test Trusted peers not initialized, returning false 11:55:49 [11:55:49.751] WARN: test Private peers not initialized, returning false 11:55:49 [11:55:49.751] WARN: test Trusted peers not initialized, returning false 11:55:49 [11:55:49.751] WARN: test Private peers not initialized, returning false 11:55:49 [11:55:49.865] WARN: test Trusted peers not initialized, returning false 11:55:49 [11:55:49.865] WARN: test Private peers not initialized, returning false 11:55:49 [11:55:49.866] WARN: test Trusted peers not initialized, returning false 11:55:49 [11:55:49.866] WARN: test Private peers not initialized, returning false 11:55:49 [11:55:49.867] WARN: test Trusted peers not initialized, returning false 11:55:49 [11:55:49.868] WARN: test Private peers not initialized, returning false 11:55:49 [11:55:49.868] WARN: test Trusted peers not initialized, returning false 11:55:49 [11:55:49.868] WARN: test Private peers not initialized, returning false 11:55:49 [11:55:49.869] WARN: test Trusted peers not initialized, returning false 11:55:49 [11:55:49.869] WARN: test Private peers not initialized, returning false 11:55:49 [11:55:49.976] WARN: test Trusted peers not initialized, returning false 11:55:49 [11:55:49.976] WARN: test Private peers not initialized, returning false 11:55:50 [11:55:50.195] WARN: test Private peers not initialized, returning false 11:55:50 [11:55:50.304] WARN: test Private peers not initialized, returning false 11:55:51 [11:55:51.053] WARN: test Private peers not initialized, returning false 11:55:51 [11:55:51.054] WARN: test Private peers not initialized, returning false 11:55:51 [11:55:51.813] WARN: test Trusted peers not initialized, returning false 11:55:51 [11:55:51.829] WARN: test Private peers not initialized, returning false 11:55:51 [11:55:51.830] WARN: test Private peers not initialized, returning false 11:55:51 [11:55:51.831] WARN: test Private peers not initialized, returning false 11:55:52 [11:55:52.611] WARN: test Private peers not initialized, returning false 11:55:52 [11:55:52.744] WARN: test Trusted peers not initialized, returning false 11:55:52 [11:55:52.745] WARN: test Private peers not initialized, returning false 11:55:52 PASS src/services/peer-manager/peer_manager.test.ts (7.004 s) 11:55:52 PeerManager 11:55:52 peer management 11:55:52 should return connected peers (40 ms) 11:55:52 should return peers in dial queue (7 ms) 11:55:52 should penalize peers (5 ms) 11:55:52 should handle heartbeat (13 ms) 11:55:52 should send goodbye to peers on shutdown (14 ms) 11:55:52 peer timeout functionality 11:55:52 should attempt to dial a discovered peer (57 ms) 11:55:52 should report peer count metric (111 ms) 11:55:52 should retry failed dials up to MAX_DIAL_ATTEMPTS (343 ms) 11:55:52 should timeout a peer after max dial attempts and ignore it for the timeout period (219 ms) 11:55:52 should cleanup expired timeouts during heartbeat (216 ms) 11:55:52 should include timed out peers in getPeers when includePending is true (15 ms) 11:55:52 should handle multiple peer discoveries and timeouts (126 ms) 11:55:52 should disconnect from unhealthy peers during heartbeat (109 ms) 11:55:52 should disconnect from low scoring peers above the max peer limit during heartbeat (118 ms) 11:55:52 should disconnect from duplicate peers during heartbeat (106 ms) 11:55:52 should properly clean up peers on stop (7 ms) 11:55:52 trusted peers 11:55:52 should not prune trusted peers (103 ms) 11:55:52 should prune untrusted peers and not trusted peers (108 ms) 11:55:52 should not disconnect trusted peers with low scores (108 ms) 11:55:52 should not remove trusted peers from the cache during pruning (649 ms) 11:55:52 should not remove trusted peers from the cache even when all peers are trusted (756 ms) 11:55:52 should return false from isTrustedPeer when trusted peers are not initialized (2 ms) 11:55:52 should not disconnect trusted peers when max peer count is reached (121 ms) 11:55:52 private peers 11:55:52 should not prune private peers with low scores (111 ms) 11:55:52 should not remove private peers from the cache during pruning (562 ms) 11:55:52 should return false from isPrivatePeer when private peers are not initialized (2 ms) 11:55:52 should initialize private peers from config (14 ms) 11:55:52 should handle a peer being both trusted and private (105 ms) 11:55:52 goodbye metrics 11:55:52 should record metrics when receiving goodbye messages (4 ms) 11:55:52 should record metrics when sending goodbye messages (6 ms) 11:55:52 11:55:52 Test Suites: 1 passed, 1 total 11:55:52 Tests: 30 passed, 30 total 11:55:52 Snapshots: 0 total 11:55:52 Time: 7.11 s 11:55:52 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 11:55:52 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?