Parent Log: http://ci.aztec-labs.com/ea435d2af522830a Command: 557c108a8ed544a3: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/ed4f6d71e2ea98f43186114eb914d54b87dd1183 Env: REF_NAME=gh-readonly-queue/next/pr-15116-433ba6218aed45169029991a493e4232b30b8ec6 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 17 19:34:15 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15116_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 19:34:15 +++ id -u 19:34:15 +++ id -g 19:34:15 ++ 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'\''' 19:34:15 + cid=3182be2741b7afc080f2552a704093bf41604c1b91e020dbf401c0f0d041df11 19:34:15 + set +x 19:34:19 [19:34:19.576] WARN: test Trusted peers not initialized, returning false 19:34:19 [19:34:19.582] WARN: test Private peers not initialized, returning false 19:34:19 [19:34:19.583] WARN: test Trusted peers not initialized, returning false 19:34:19 [19:34:19.584] WARN: test Private peers not initialized, returning false 19:34:19 [19:34:19.677] WARN: test Trusted peers not initialized, returning false 19:34:19 [19:34:19.678] WARN: test Private peers not initialized, returning false 19:34:19 [19:34:19.678] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 19:34:19 [19:34:19.912] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:34:20 [19:34:20.014] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:34:20 [19:34:20.230] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:34:20 [19:34:20.331] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:34:20 [19:34:20.449] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:34:20 [19:34:20.551] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:34:20 [19:34:20.689] WARN: test Trusted peers not initialized, returning false 19:34:20 [19:34:20.689] WARN: test Private peers not initialized, returning false 19:34:20 [19:34:20.689] WARN: test Trusted peers not initialized, returning false 19:34:20 [19:34:20.689] WARN: test Private peers not initialized, returning false 19:34:20 [19:34:20.690] WARN: test Trusted peers not initialized, returning false 19:34:20 [19:34:20.690] WARN: test Private peers not initialized, returning false 19:34:20 [19:34:20.800] WARN: test Trusted peers not initialized, returning false 19:34:20 [19:34:20.800] WARN: test Private peers not initialized, returning false 19:34:20 [19:34:20.801] WARN: test Trusted peers not initialized, returning false 19:34:20 [19:34:20.801] WARN: test Private peers not initialized, returning false 19:34:20 [19:34:20.801] WARN: test Trusted peers not initialized, returning false 19:34:20 [19:34:20.802] WARN: test Private peers not initialized, returning false 19:34:20 [19:34:20.802] WARN: test Trusted peers not initialized, returning false 19:34:20 [19:34:20.802] WARN: test Private peers not initialized, returning false 19:34:20 [19:34:20.802] WARN: test Trusted peers not initialized, returning false 19:34:20 [19:34:20.802] WARN: test Private peers not initialized, returning false 19:34:20 [19:34:20.908] WARN: test Trusted peers not initialized, returning false 19:34:20 [19:34:20.908] WARN: test Private peers not initialized, returning false 19:34:21 [19:34:21.124] WARN: test Private peers not initialized, returning false 19:34:21 [19:34:21.232] WARN: test Private peers not initialized, returning false 19:34:22 [19:34:22.001] WARN: test Private peers not initialized, returning false 19:34:22 [19:34:22.002] WARN: test Private peers not initialized, returning false 19:34:22 [19:34:22.668] WARN: test Trusted peers not initialized, returning false 19:34:22 [19:34:22.675] WARN: test Private peers not initialized, returning false 19:34:22 [19:34:22.675] WARN: test Private peers not initialized, returning false 19:34:22 [19:34:22.675] WARN: test Private peers not initialized, returning false 19:34:23 [19:34:23.424] WARN: test Private peers not initialized, returning false 19:34:23 [19:34:23.544] WARN: test Trusted peers not initialized, returning false 19:34:23 [19:34:23.544] WARN: test Private peers not initialized, returning false 19:34:23 PASS src/services/peer-manager/peer_manager.test.ts (6.817 s) 19:34:23 PeerManager 19:34:23 peer management 19:34:23 should return connected peers (52 ms) 19:34:23 should return peers in dial queue (5 ms) 19:34:23 should penalize peers (2 ms) 19:34:23 should handle heartbeat (11 ms) 19:34:23 should send goodbye to peers on shutdown (10 ms) 19:34:23 peer timeout functionality 19:34:23 should attempt to dial a discovered peer (79 ms) 19:34:23 should report peer count metric (107 ms) 19:34:23 should retry failed dials up to MAX_DIAL_ATTEMPTS (335 ms) 19:34:23 should timeout a peer after max dial attempts and ignore it for the timeout period (222 ms) 19:34:23 should cleanup expired timeouts during heartbeat (214 ms) 19:34:23 should include timed out peers in getPeers when includePending is true (10 ms) 19:34:23 should handle multiple peer discoveries and timeouts (117 ms) 19:34:23 should disconnect from unhealthy peers during heartbeat (107 ms) 19:34:23 should disconnect from low scoring peers above the max peer limit during heartbeat (113 ms) 19:34:23 should disconnect from duplicate peers during heartbeat (104 ms) 19:34:23 should properly clean up peers on stop (7 ms) 19:34:23 trusted peers 19:34:23 should not prune trusted peers (104 ms) 19:34:23 should prune untrusted peers and not trusted peers (106 ms) 19:34:23 should not disconnect trusted peers with low scores (106 ms) 19:34:23 should not remove trusted peers from the cache during pruning (669 ms) 19:34:23 should not remove trusted peers from the cache even when all peers are trusted (660 ms) 19:34:23 should return false from isTrustedPeer when trusted peers are not initialized (5 ms) 19:34:23 should not disconnect trusted peers when max peer count is reached (109 ms) 19:34:23 private peers 19:34:23 should not prune private peers with low scores (105 ms) 19:34:23 should not remove private peers from the cache during pruning (535 ms) 19:34:23 should return false from isPrivatePeer when private peers are not initialized (4 ms) 19:34:23 should initialize private peers from config (9 ms) 19:34:23 should handle a peer being both trusted and private (102 ms) 19:34:23 goodbye metrics 19:34:23 should record metrics when receiving goodbye messages (4 ms) 19:34:23 should record metrics when sending goodbye messages (4 ms) 19:34:23 19:34:23 Test Suites: 1 passed, 1 total 19:34:23 Tests: 30 passed, 30 total 19:34:23 Snapshots: 0 total 19:34:23 Time: 6.971 s 19:34:23 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 19:34:23 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?