Parent Log: http://ci.aztec-labs.com/ea10f86f3d4ea560 Command: d634b34c6dd762bb: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/9b801754ba98479ee645488c29d2fda1eecbfd85 Env: REF_NAME=gh-readonly-queue/next/pr-14963-ee3655e025191bc85c5b3d3122eeedb44e38ffb2 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 20:57:31 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14963_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 20:57:31 +++ id -u 20:57:31 +++ id -g 20:57:31 ++ 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'\''' 20:57:32 + cid=7ad89be357d3c63eef8baab8e47fff1ab7f2dcbc09ced1a8ec8638f5dff9161f 20:57:32 + set +x 20:57:36 [20:57:36.238] WARN: test Trusted peers not initialized, returning false 20:57:36 [20:57:36.244] WARN: test Private peers not initialized, returning false 20:57:36 [20:57:36.245] WARN: test Trusted peers not initialized, returning false 20:57:36 [20:57:36.245] WARN: test Private peers not initialized, returning false 20:57:36 [20:57:36.338] WARN: test Trusted peers not initialized, returning false 20:57:36 [20:57:36.338] WARN: test Private peers not initialized, returning false 20:57:36 [20:57:36.339] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 20:57:36 [20:57:36.579] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:57:36 [20:57:36.680] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:57:36 [20:57:36.902] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:57:37 [20:57:37.004] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:57:37 [20:57:37.132] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:57:37 [20:57:37.235] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:57:37 [20:57:37.387] WARN: test Trusted peers not initialized, returning false 20:57:37 [20:57:37.388] WARN: test Private peers not initialized, returning false 20:57:37 [20:57:37.389] WARN: test Trusted peers not initialized, returning false 20:57:37 [20:57:37.389] WARN: test Private peers not initialized, returning false 20:57:37 [20:57:37.390] WARN: test Trusted peers not initialized, returning false 20:57:37 [20:57:37.390] WARN: test Private peers not initialized, returning false 20:57:37 [20:57:37.504] WARN: test Trusted peers not initialized, returning false 20:57:37 [20:57:37.504] WARN: test Private peers not initialized, returning false 20:57:37 [20:57:37.505] WARN: test Trusted peers not initialized, returning false 20:57:37 [20:57:37.505] WARN: test Private peers not initialized, returning false 20:57:37 [20:57:37.505] WARN: test Trusted peers not initialized, returning false 20:57:37 [20:57:37.506] WARN: test Private peers not initialized, returning false 20:57:37 [20:57:37.506] WARN: test Trusted peers not initialized, returning false 20:57:37 [20:57:37.506] WARN: test Private peers not initialized, returning false 20:57:37 [20:57:37.506] WARN: test Trusted peers not initialized, returning false 20:57:37 [20:57:37.507] WARN: test Private peers not initialized, returning false 20:57:37 [20:57:37.614] WARN: test Trusted peers not initialized, returning false 20:57:37 [20:57:37.614] WARN: test Private peers not initialized, returning false 20:57:37 [20:57:37.832] WARN: test Private peers not initialized, returning false 20:57:37 [20:57:37.946] WARN: test Private peers not initialized, returning false 20:57:38 [20:57:38.786] WARN: test Private peers not initialized, returning false 20:57:38 [20:57:38.787] WARN: test Private peers not initialized, returning false 20:57:39 [20:57:39.401] WARN: test Trusted peers not initialized, returning false 20:57:39 [20:57:39.411] WARN: test Private peers not initialized, returning false 20:57:39 [20:57:39.411] WARN: test Private peers not initialized, returning false 20:57:39 [20:57:39.412] WARN: test Private peers not initialized, returning false 20:57:40 [20:57:40.125] WARN: test Private peers not initialized, returning false 20:57:40 [20:57:40.242] WARN: test Trusted peers not initialized, returning false 20:57:40 [20:57:40.242] WARN: test Private peers not initialized, returning false 20:57:40 PASS src/services/peer-manager/peer_manager.test.ts (7.141 s) 20:57:40 PeerManager 20:57:40 peer management 20:57:40 should return connected peers (57 ms) 20:57:40 should return peers in dial queue (7 ms) 20:57:40 should penalize peers (5 ms) 20:57:40 should handle heartbeat (11 ms) 20:57:40 should send goodbye to peers on shutdown (10 ms) 20:57:40 peer timeout functionality 20:57:40 should attempt to dial a discovered peer (78 ms) 20:57:40 should report peer count metric (105 ms) 20:57:40 should retry failed dials up to MAX_DIAL_ATTEMPTS (343 ms) 20:57:40 should timeout a peer after max dial attempts and ignore it for the timeout period (231 ms) 20:57:40 should cleanup expired timeouts during heartbeat (223 ms) 20:57:40 should include timed out peers in getPeers when includePending is true (15 ms) 20:57:40 should handle multiple peer discoveries and timeouts (121 ms) 20:57:40 should disconnect from unhealthy peers during heartbeat (115 ms) 20:57:40 should disconnect from low scoring peers above the max peer limit during heartbeat (115 ms) 20:57:40 should disconnect from duplicate peers during heartbeat (106 ms) 20:57:40 should properly clean up peers on stop (7 ms) 20:57:40 trusted peers 20:57:40 should not prune trusted peers (103 ms) 20:57:40 should prune untrusted peers and not trusted peers (109 ms) 20:57:40 should not disconnect trusted peers with low scores (109 ms) 20:57:40 should not remove trusted peers from the cache during pruning (738 ms) 20:57:40 should not remove trusted peers from the cache even when all peers are trusted (610 ms) 20:57:40 should return false from isTrustedPeer when trusted peers are not initialized (2 ms) 20:57:40 should not disconnect trusted peers when max peer count is reached (113 ms) 20:57:40 private peers 20:57:40 should not prune private peers with low scores (105 ms) 20:57:40 should not remove private peers from the cache during pruning (502 ms) 20:57:40 should return false from isPrivatePeer when private peers are not initialized (3 ms) 20:57:40 should initialize private peers from config (7 ms) 20:57:40 should handle a peer being both trusted and private (103 ms) 20:57:40 goodbye metrics 20:57:40 should record metrics when receiving goodbye messages (3 ms) 20:57:40 should record metrics when sending goodbye messages (4 ms) 20:57:40 20:57:40 Test Suites: 1 passed, 1 total 20:57:40 Tests: 30 passed, 30 total 20:57:40 Snapshots: 0 total 20:57:40 Time: 7.24 s 20:57:40 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 20:57:40 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?