Parent Log: http://ci.aztec-labs.com/5da774ef0d100089 Command: a668859b212fc7b1: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/3c1b9d57eadcc8fb03a7ed42610cf0a1ae4a32eb Env: REF_NAME=gh-readonly-queue/next/pr-14858-4b0e4dc09fa55f0bc808fa0c7c3e95e8fa997069 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 17 21:39:59 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14858_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 21:39:59 +++ id -u 21:39:59 +++ id -g 21:39:59 ++ 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'\''' 21:39:59 + cid=de80e5101856de286424541783afc3bc9c1bbabdacdd7bba138cff7247c34636 21:39:59 + set +x 21:40:03 [21:40:03.949] WARN: test Trusted peers not initialized, returning false 21:40:03 [21:40:03.954] WARN: test Private peers not initialized, returning false 21:40:03 [21:40:03.954] WARN: test Trusted peers not initialized, returning false 21:40:03 [21:40:03.955] WARN: test Private peers not initialized, returning false 21:40:04 [21:40:04.031] WARN: test Trusted peers not initialized, returning false 21:40:04 [21:40:04.032] WARN: test Private peers not initialized, returning false 21:40:04 [21:40:04.032] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 21:40:04 [21:40:04.275] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 21:40:04 [21:40:04.376] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 21:40:04 [21:40:04.597] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 21:40:04 [21:40:04.699] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 21:40:04 [21:40:04.814] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 21:40:04 [21:40:04.916] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 21:40:05 [21:40:05.065] WARN: test Trusted peers not initialized, returning false 21:40:05 [21:40:05.065] WARN: test Private peers not initialized, returning false 21:40:05 [21:40:05.066] WARN: test Trusted peers not initialized, returning false 21:40:05 [21:40:05.066] WARN: test Private peers not initialized, returning false 21:40:05 [21:40:05.066] WARN: test Trusted peers not initialized, returning false 21:40:05 [21:40:05.066] WARN: test Private peers not initialized, returning false 21:40:05 [21:40:05.175] WARN: test Trusted peers not initialized, returning false 21:40:05 [21:40:05.176] WARN: test Private peers not initialized, returning false 21:40:05 [21:40:05.176] WARN: test Trusted peers not initialized, returning false 21:40:05 [21:40:05.176] WARN: test Private peers not initialized, returning false 21:40:05 [21:40:05.176] WARN: test Trusted peers not initialized, returning false 21:40:05 [21:40:05.177] WARN: test Private peers not initialized, returning false 21:40:05 [21:40:05.177] WARN: test Trusted peers not initialized, returning false 21:40:05 [21:40:05.177] WARN: test Private peers not initialized, returning false 21:40:05 [21:40:05.177] WARN: test Trusted peers not initialized, returning false 21:40:05 [21:40:05.177] WARN: test Private peers not initialized, returning false 21:40:05 [21:40:05.282] WARN: test Trusted peers not initialized, returning false 21:40:05 [21:40:05.283] WARN: test Private peers not initialized, returning false 21:40:05 [21:40:05.504] WARN: test Private peers not initialized, returning false 21:40:05 [21:40:05.612] WARN: test Private peers not initialized, returning false 21:40:06 [21:40:06.340] WARN: test Private peers not initialized, returning false 21:40:06 [21:40:06.340] WARN: test Private peers not initialized, returning false 21:40:06 [21:40:06.897] WARN: test Trusted peers not initialized, returning false 21:40:06 [21:40:06.907] WARN: test Private peers not initialized, returning false 21:40:06 [21:40:06.907] WARN: test Private peers not initialized, returning false 21:40:06 [21:40:06.907] WARN: test Private peers not initialized, returning false 21:40:07 [21:40:07.614] WARN: test Private peers not initialized, returning false 21:40:07 [21:40:07.731] WARN: test Trusted peers not initialized, returning false 21:40:07 [21:40:07.731] WARN: test Private peers not initialized, returning false 21:40:07 PASS src/services/peer-manager/peer_manager.test.ts (6.798 s) 21:40:07 PeerManager 21:40:07 peer management 21:40:07 should return connected peers (51 ms) 21:40:07 should return peers in dial queue (5 ms) 21:40:07 should penalize peers (3 ms) 21:40:07 should handle heartbeat (8 ms) 21:40:07 should send goodbye to peers on shutdown (7 ms) 21:40:07 peer timeout functionality 21:40:07 should attempt to dial a discovered peer (65 ms) 21:40:07 should report peer count metric (106 ms) 21:40:07 should retry failed dials up to MAX_DIAL_ATTEMPTS (347 ms) 21:40:07 should timeout a peer after max dial attempts and ignore it for the timeout period (224 ms) 21:40:07 should cleanup expired timeouts during heartbeat (214 ms) 21:40:07 should include timed out peers in getPeers when includePending is true (14 ms) 21:40:07 should handle multiple peer discoveries and timeouts (123 ms) 21:40:07 should disconnect from unhealthy peers during heartbeat (108 ms) 21:40:07 should disconnect from low scoring peers above the max peer limit during heartbeat (111 ms) 21:40:07 should disconnect from duplicate peers during heartbeat (104 ms) 21:40:07 should properly clean up peers on stop (5 ms) 21:40:07 trusted peers 21:40:07 should not prune trusted peers (104 ms) 21:40:07 should prune untrusted peers and not trusted peers (112 ms) 21:40:07 should not disconnect trusted peers with low scores (106 ms) 21:40:07 should not remove trusted peers from the cache during pruning (627 ms) 21:40:07 should not remove trusted peers from the cache even when all peers are trusted (553 ms) 21:40:07 should return false from isTrustedPeer when trusted peers are not initialized (2 ms) 21:40:07 should not disconnect trusted peers when max peer count is reached (112 ms) 21:40:07 private peers 21:40:07 should not prune private peers with low scores (105 ms) 21:40:07 should not remove private peers from the cache during pruning (496 ms) 21:40:07 should return false from isPrivatePeer when private peers are not initialized (4 ms) 21:40:07 should initialize private peers from config (8 ms) 21:40:07 should handle a peer being both trusted and private (102 ms) 21:40:07 goodbye metrics 21:40:07 should record metrics when receiving goodbye messages (3 ms) 21:40:07 should record metrics when sending goodbye messages (3 ms) 21:40:07 21:40:07 Test Suites: 1 passed, 1 total 21:40:07 Tests: 30 passed, 30 total 21:40:07 Snapshots: 0 total 21:40:07 Time: 6.899 s 21:40:07 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 21:40:07 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?