Parent Log: http://ci.aztec-labs.com/57a3a05ea1e502d0 Command: 448a16f463e450de: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/80d800435dd8dfa325e38593d83b405488449dba Env: REF_NAME=gh-readonly-queue/next/pr-14444-28bf32bfc2566751e8baa0a9125a9db20d474bee CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 20 15:58:32 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14444_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 15:58:32 +++ id -u 15:58:32 +++ id -g 15:58:32 ++ 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'\''' 15:58:32 + cid=95229b3c5c38cc9a9f0d5131953e7d24cee512809b9497db17c2520bfdf7737f 15:58:32 + set +x 15:58:36 [15:58:36.462] WARN: test Trusted peers not initialized, returning false 15:58:36 [15:58:36.468] WARN: test Private peers not initialized, returning false 15:58:36 [15:58:36.469] WARN: test Trusted peers not initialized, returning false 15:58:36 [15:58:36.470] WARN: test Private peers not initialized, returning false 15:58:36 [15:58:36.529] WARN: test Trusted peers not initialized, returning false 15:58:36 [15:58:36.530] WARN: test Private peers not initialized, returning false 15:58:36 [15:58:36.530] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 15:58:36 [15:58:36.764] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:58:36 [15:58:36.864] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:58:37 [15:58:37.078] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:58:37 [15:58:37.179] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:58:37 [15:58:37.294] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:58:37 [15:58:37.396] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:58:37 [15:58:37.545] WARN: test Trusted peers not initialized, returning false 15:58:37 [15:58:37.545] WARN: test Private peers not initialized, returning false 15:58:37 [15:58:37.546] WARN: test Trusted peers not initialized, returning false 15:58:37 [15:58:37.546] WARN: test Private peers not initialized, returning false 15:58:37 [15:58:37.546] WARN: test Trusted peers not initialized, returning false 15:58:37 [15:58:37.546] WARN: test Private peers not initialized, returning false 15:58:37 [15:58:37.657] WARN: test Trusted peers not initialized, returning false 15:58:37 [15:58:37.658] WARN: test Private peers not initialized, returning false 15:58:37 [15:58:37.658] WARN: test Trusted peers not initialized, returning false 15:58:37 [15:58:37.658] WARN: test Private peers not initialized, returning false 15:58:37 [15:58:37.658] WARN: test Trusted peers not initialized, returning false 15:58:37 [15:58:37.659] WARN: test Private peers not initialized, returning false 15:58:37 [15:58:37.659] WARN: test Trusted peers not initialized, returning false 15:58:37 [15:58:37.659] WARN: test Private peers not initialized, returning false 15:58:37 [15:58:37.659] WARN: test Trusted peers not initialized, returning false 15:58:37 [15:58:37.659] WARN: test Private peers not initialized, returning false 15:58:37 [15:58:37.764] WARN: test Trusted peers not initialized, returning false 15:58:37 [15:58:37.764] WARN: test Private peers not initialized, returning false 15:58:37 [15:58:37.978] WARN: test Private peers not initialized, returning false 15:58:38 [15:58:38.085] WARN: test Private peers not initialized, returning false 15:58:38 [15:58:38.759] WARN: test Private peers not initialized, returning false 15:58:38 [15:58:38.759] WARN: test Private peers not initialized, returning false 15:58:39 [15:58:39.367] WARN: test Trusted peers not initialized, returning false 15:58:39 [15:58:39.375] WARN: test Private peers not initialized, returning false 15:58:39 [15:58:39.376] WARN: test Private peers not initialized, returning false 15:58:39 [15:58:39.376] WARN: test Private peers not initialized, returning false 15:58:40 [15:58:40.120] WARN: test Private peers not initialized, returning false 15:58:40 [15:58:40.242] WARN: test Trusted peers not initialized, returning false 15:58:40 [15:58:40.243] WARN: test Private peers not initialized, returning false 15:58:40 PASS src/services/peer-manager/peer_manager.test.ts (6.686 s) 15:58:40 PeerManager 15:58:40 peer management 15:58:40 should return connected peers (36 ms) 15:58:40 should return peers in dial queue (9 ms) 15:58:40 should penalize peers (5 ms) 15:58:40 should handle heartbeat (11 ms) 15:58:40 should send goodbye to peers on shutdown (6 ms) 15:58:40 peer timeout functionality 15:58:40 should attempt to dial a discovered peer (49 ms) 15:58:40 should report peer count metric (106 ms) 15:58:40 should retry failed dials up to MAX_DIAL_ATTEMPTS (335 ms) 15:58:40 should timeout a peer after max dial attempts and ignore it for the timeout period (217 ms) 15:58:40 should cleanup expired timeouts during heartbeat (219 ms) 15:58:40 should include timed out peers in getPeers when includePending is true (13 ms) 15:58:40 should handle multiple peer discoveries and timeouts (120 ms) 15:58:40 should disconnect from unhealthy peers during heartbeat (110 ms) 15:58:40 should disconnect from low scoring peers above the max peer limit during heartbeat (113 ms) 15:58:40 should disconnect from duplicate peers during heartbeat (105 ms) 15:58:40 should properly clean up peers on stop (6 ms) 15:58:40 trusted peers 15:58:40 should not prune trusted peers (103 ms) 15:58:40 should prune untrusted peers and not trusted peers (106 ms) 15:58:40 should not disconnect trusted peers with low scores (104 ms) 15:58:40 should not remove trusted peers from the cache during pruning (574 ms) 15:58:40 should not remove trusted peers from the cache even when all peers are trusted (603 ms) 15:58:40 should return false from isTrustedPeer when trusted peers are not initialized (4 ms) 15:58:40 should not disconnect trusted peers when max peer count is reached (110 ms) 15:58:40 private peers 15:58:40 should not prune private peers with low scores (106 ms) 15:58:40 should not remove private peers from the cache during pruning (530 ms) 15:58:40 should return false from isPrivatePeer when private peers are not initialized (6 ms) 15:58:40 should initialize private peers from config (12 ms) 15:58:40 should handle a peer being both trusted and private (103 ms) 15:58:40 goodbye metrics 15:58:40 should record metrics when receiving goodbye messages (2 ms) 15:58:40 should record metrics when sending goodbye messages (4 ms) 15:58:40 15:58:40 Test Suites: 1 passed, 1 total 15:58:40 Tests: 30 passed, 30 total 15:58:40 Snapshots: 0 total 15:58:40 Time: 6.77 s 15:58:40 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 15:58:40 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?