Parent Log: http://ci.aztec-labs.com/30965617224928f2 Command: 1574a02ff8f30339: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/1677dac936d084443e64d6c4ba6e45d3958ba1f8 Env: REF_NAME=gh-readonly-queue/next/pr-15122-df0c3e8efd6211cf15eedf67d2a591cc54099ac8 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Wed Jun 18 18:31:28 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15122_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 18:31:28 +++ id -u 18:31:28 +++ id -g 18:31:28 ++ 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'\''' 18:31:28 + cid=6b86a4586e2643770f815c224193e44cf39904048fe3e946611cbec28d305e1c 18:31:28 + set +x 18:31:32 [18:31:32.973] WARN: test Trusted peers not initialized, returning false 18:31:32 [18:31:32.979] WARN: test Private peers not initialized, returning false 18:31:32 [18:31:32.980] WARN: test Trusted peers not initialized, returning false 18:31:32 [18:31:32.980] WARN: test Private peers not initialized, returning false 18:31:33 [18:31:33.064] WARN: test Trusted peers not initialized, returning false 18:31:33 [18:31:33.065] WARN: test Private peers not initialized, returning false 18:31:33 [18:31:33.065] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 18:31:33 [18:31:33.296] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:31:33 [18:31:33.398] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:31:33 [18:31:33.615] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:31:33 [18:31:33.718] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:31:33 [18:31:33.838] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:31:33 [18:31:33.940] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:31:34 [18:31:34.085] WARN: test Trusted peers not initialized, returning false 18:31:34 [18:31:34.086] WARN: test Private peers not initialized, returning false 18:31:34 [18:31:34.086] WARN: test Trusted peers not initialized, returning false 18:31:34 [18:31:34.086] WARN: test Private peers not initialized, returning false 18:31:34 [18:31:34.086] WARN: test Trusted peers not initialized, returning false 18:31:34 [18:31:34.087] WARN: test Private peers not initialized, returning false 18:31:34 [18:31:34.198] WARN: test Trusted peers not initialized, returning false 18:31:34 [18:31:34.199] WARN: test Private peers not initialized, returning false 18:31:34 [18:31:34.199] WARN: test Trusted peers not initialized, returning false 18:31:34 [18:31:34.199] WARN: test Private peers not initialized, returning false 18:31:34 [18:31:34.199] WARN: test Trusted peers not initialized, returning false 18:31:34 [18:31:34.200] WARN: test Private peers not initialized, returning false 18:31:34 [18:31:34.200] WARN: test Trusted peers not initialized, returning false 18:31:34 [18:31:34.200] WARN: test Private peers not initialized, returning false 18:31:34 [18:31:34.200] WARN: test Trusted peers not initialized, returning false 18:31:34 [18:31:34.201] WARN: test Private peers not initialized, returning false 18:31:34 [18:31:34.308] WARN: test Trusted peers not initialized, returning false 18:31:34 [18:31:34.311] WARN: test Private peers not initialized, returning false 18:31:34 [18:31:34.532] WARN: test Private peers not initialized, returning false 18:31:34 [18:31:34.640] WARN: test Private peers not initialized, returning false 18:31:35 [18:31:35.381] WARN: test Private peers not initialized, returning false 18:31:35 [18:31:35.382] WARN: test Private peers not initialized, returning false 18:31:35 [18:31:35.931] WARN: test Trusted peers not initialized, returning false 18:31:35 [18:31:35.940] WARN: test Private peers not initialized, returning false 18:31:35 [18:31:35.940] WARN: test Private peers not initialized, returning false 18:31:35 [18:31:35.940] WARN: test Private peers not initialized, returning false 18:31:36 [18:31:36.667] WARN: test Private peers not initialized, returning false 18:31:36 [18:31:36.784] WARN: test Trusted peers not initialized, returning false 18:31:36 [18:31:36.785] WARN: test Private peers not initialized, returning false 18:31:36 PASS src/services/peer-manager/peer_manager.test.ts (6.75 s) 18:31:36 PeerManager 18:31:36 peer management 18:31:36 should return connected peers (37 ms) 18:31:36 should return peers in dial queue (5 ms) 18:31:36 should penalize peers (4 ms) 18:31:36 should handle heartbeat (10 ms) 18:31:36 should send goodbye to peers on shutdown (8 ms) 18:31:36 peer timeout functionality 18:31:36 should attempt to dial a discovered peer (72 ms) 18:31:36 should report peer count metric (106 ms) 18:31:36 should retry failed dials up to MAX_DIAL_ATTEMPTS (332 ms) 18:31:36 should timeout a peer after max dial attempts and ignore it for the timeout period (224 ms) 18:31:36 should cleanup expired timeouts during heartbeat (217 ms) 18:31:36 should include timed out peers in getPeers when includePending is true (13 ms) 18:31:36 should handle multiple peer discoveries and timeouts (120 ms) 18:31:36 should disconnect from unhealthy peers during heartbeat (110 ms) 18:31:36 should disconnect from low scoring peers above the max peer limit during heartbeat (114 ms) 18:31:36 should disconnect from duplicate peers during heartbeat (111 ms) 18:31:36 should properly clean up peers on stop (9 ms) 18:31:36 trusted peers 18:31:36 should not prune trusted peers (103 ms) 18:31:36 should prune untrusted peers and not trusted peers (107 ms) 18:31:36 should not disconnect trusted peers with low scores (107 ms) 18:31:36 should not remove trusted peers from the cache during pruning (641 ms) 18:31:36 should not remove trusted peers from the cache even when all peers are trusted (544 ms) 18:31:36 should return false from isTrustedPeer when trusted peers are not initialized (3 ms) 18:31:36 should not disconnect trusted peers when max peer count is reached (111 ms) 18:31:36 private peers 18:31:36 should not prune private peers with low scores (106 ms) 18:31:36 should not remove private peers from the cache during pruning (515 ms) 18:31:36 should return false from isPrivatePeer when private peers are not initialized (2 ms) 18:31:36 should initialize private peers from config (8 ms) 18:31:36 should handle a peer being both trusted and private (103 ms) 18:31:36 goodbye metrics 18:31:36 should record metrics when receiving goodbye messages (4 ms) 18:31:36 should record metrics when sending goodbye messages (4 ms) 18:31:36 18:31:36 Test Suites: 1 passed, 1 total 18:31:36 Tests: 30 passed, 30 total 18:31:36 Snapshots: 0 total 18:31:36 Time: 6.844 s 18:31:36 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 18:31:36 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?