Parent Log: http://ci.aztec-labs.com/632b8ea015640e73 Command: 68e9475192d7aeac: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/301dce04331dcfb583b7508b91491de618d4acf4 Env: REF_NAME=gh-readonly-queue/next/pr-15208-9b8ea5acda76687342ddb62595e293281661f029 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 23 10:24:31 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15208_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 10:24:31 +++ id -u 10:24:31 +++ id -g 10:24: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'\''' 10:24:31 + cid=de96a4c5de3a99e91da8e1e3909167c7fcf028945744c6d5ec8fac73eaa3b7da 10:24:31 + set +x 10:24:35 [10:24:35.696] WARN: test Trusted peers not initialized, returning false 10:24:35 [10:24:35.702] WARN: test Private peers not initialized, returning false 10:24:35 [10:24:35.703] WARN: test Trusted peers not initialized, returning false 10:24:35 [10:24:35.704] WARN: test Private peers not initialized, returning false 10:24:35 [10:24:35.795] WARN: test Trusted peers not initialized, returning false 10:24:35 [10:24:35.796] WARN: test Private peers not initialized, returning false 10:24:35 [10:24:35.796] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 10:24:36 [10:24:36.027] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:24:36 [10:24:36.129] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:24:36 [10:24:36.347] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:24:36 [10:24:36.449] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:24:36 [10:24:36.580] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:24:36 [10:24:36.682] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:24:36 [10:24:36.833] WARN: test Trusted peers not initialized, returning false 10:24:36 [10:24:36.833] WARN: test Private peers not initialized, returning false 10:24:36 [10:24:36.834] WARN: test Trusted peers not initialized, returning false 10:24:36 [10:24:36.834] WARN: test Private peers not initialized, returning false 10:24:36 [10:24:36.835] WARN: test Trusted peers not initialized, returning false 10:24:36 [10:24:36.835] WARN: test Private peers not initialized, returning false 10:24:36 [10:24:36.958] WARN: test Trusted peers not initialized, returning false 10:24:36 [10:24:36.960] WARN: test Private peers not initialized, returning false 10:24:36 [10:24:36.962] WARN: test Trusted peers not initialized, returning false 10:24:36 [10:24:36.962] WARN: test Private peers not initialized, returning false 10:24:36 [10:24:36.963] WARN: test Trusted peers not initialized, returning false 10:24:36 [10:24:36.964] WARN: test Private peers not initialized, returning false 10:24:36 [10:24:36.964] WARN: test Trusted peers not initialized, returning false 10:24:36 [10:24:36.964] WARN: test Private peers not initialized, returning false 10:24:36 [10:24:36.965] WARN: test Trusted peers not initialized, returning false 10:24:36 [10:24:36.966] WARN: test Private peers not initialized, returning false 10:24:37 [10:24:37.073] WARN: test Trusted peers not initialized, returning false 10:24:37 [10:24:37.073] WARN: test Private peers not initialized, returning false 10:24:37 [10:24:37.287] WARN: test Private peers not initialized, returning false 10:24:37 [10:24:37.393] WARN: test Private peers not initialized, returning false 10:24:38 [10:24:38.091] WARN: test Private peers not initialized, returning false 10:24:38 [10:24:38.091] WARN: test Private peers not initialized, returning false 10:24:38 [10:24:38.687] WARN: test Trusted peers not initialized, returning false 10:24:38 [10:24:38.694] WARN: test Private peers not initialized, returning false 10:24:38 [10:24:38.694] WARN: test Private peers not initialized, returning false 10:24:38 [10:24:38.694] WARN: test Private peers not initialized, returning false 10:24:39 [10:24:39.472] WARN: test Private peers not initialized, returning false 10:24:39 [10:24:39.596] WARN: test Trusted peers not initialized, returning false 10:24:39 [10:24:39.596] WARN: test Private peers not initialized, returning false 10:24:39 PASS src/services/peer-manager/peer_manager.test.ts (6.973 s) 10:24:39 PeerManager 10:24:39 peer management 10:24:39 should return connected peers (55 ms) 10:24:39 should return peers in dial queue (4 ms) 10:24:39 should penalize peers (4 ms) 10:24:39 should handle heartbeat (11 ms) 10:24:39 should send goodbye to peers on shutdown (9 ms) 10:24:39 peer timeout functionality 10:24:39 should attempt to dial a discovered peer (77 ms) 10:24:39 should report peer count metric (106 ms) 10:24:39 should retry failed dials up to MAX_DIAL_ATTEMPTS (332 ms) 10:24:39 should timeout a peer after max dial attempts and ignore it for the timeout period (232 ms) 10:24:39 should cleanup expired timeouts during heartbeat (222 ms) 10:24:39 should include timed out peers in getPeers when includePending is true (15 ms) 10:24:39 should handle multiple peer discoveries and timeouts (123 ms) 10:24:39 should disconnect from unhealthy peers during heartbeat (111 ms) 10:24:39 should disconnect from low scoring peers above the max peer limit during heartbeat (131 ms) 10:24:39 should disconnect from duplicate peers during heartbeat (105 ms) 10:24:39 should properly clean up peers on stop (5 ms) 10:24:39 trusted peers 10:24:39 should not prune trusted peers (103 ms) 10:24:39 should prune untrusted peers and not trusted peers (107 ms) 10:24:39 should not disconnect trusted peers with low scores (104 ms) 10:24:39 should not remove trusted peers from the cache during pruning (597 ms) 10:24:39 should not remove trusted peers from the cache even when all peers are trusted (593 ms) 10:24:39 should return false from isTrustedPeer when trusted peers are not initialized (2 ms) 10:24:39 should not disconnect trusted peers when max peer count is reached (108 ms) 10:24:39 private peers 10:24:39 should not prune private peers with low scores (104 ms) 10:24:39 should not remove private peers from the cache during pruning (567 ms) 10:24:39 should return false from isPrivatePeer when private peers are not initialized (5 ms) 10:24:39 should initialize private peers from config (12 ms) 10:24:39 should handle a peer being both trusted and private (105 ms) 10:24:39 goodbye metrics 10:24:39 should record metrics when receiving goodbye messages (3 ms) 10:24:39 should record metrics when sending goodbye messages (3 ms) 10:24:39 10:24:39 Test Suites: 1 passed, 1 total 10:24:39 Tests: 30 passed, 30 total 10:24:39 Snapshots: 0 total 10:24:39 Time: 7.071 s 10:24:39 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 10:24:39 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?