Parent Log: http://ci.aztec-labs.com/704f35e55ac1c274 Command: b54d5ade67e7ffc9: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/347f29fb98cc855ead57129b4d1a444d9fb16820 Env: REF_NAME=gh-readonly-queue/next/pr-15059-16fc84676c7308fa5f7ca4a54b67319803d0f5b7 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 16:01:02 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15059_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 16:01:03 +++ id -u 16:01:03 +++ id -g 16:01:03 ++ 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'\''' 16:01:03 + cid=8776b0dfe30b02a7f4adf26f79c3e9a77a1b1ebed185a91ff85820b059432b16 16:01:03 + set +x 16:01:07 [16:01:07.420] WARN: test Trusted peers not initialized, returning false 16:01:07 [16:01:07.425] WARN: test Private peers not initialized, returning false 16:01:07 [16:01:07.426] WARN: test Trusted peers not initialized, returning false 16:01:07 [16:01:07.426] WARN: test Private peers not initialized, returning false 16:01:07 [16:01:07.502] WARN: test Trusted peers not initialized, returning false 16:01:07 [16:01:07.503] WARN: test Private peers not initialized, returning false 16:01:07 [16:01:07.503] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 16:01:07 [16:01:07.750] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:01:07 [16:01:07.852] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:01:08 [16:01:08.073] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:01:08 [16:01:08.175] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:01:08 [16:01:08.299] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:01:08 [16:01:08.403] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:01:08 [16:01:08.552] WARN: test Trusted peers not initialized, returning false 16:01:08 [16:01:08.552] WARN: test Private peers not initialized, returning false 16:01:08 [16:01:08.552] WARN: test Trusted peers not initialized, returning false 16:01:08 [16:01:08.552] WARN: test Private peers not initialized, returning false 16:01:08 [16:01:08.553] WARN: test Trusted peers not initialized, returning false 16:01:08 [16:01:08.553] WARN: test Private peers not initialized, returning false 16:01:08 [16:01:08.662] WARN: test Trusted peers not initialized, returning false 16:01:08 [16:01:08.663] WARN: test Private peers not initialized, returning false 16:01:08 [16:01:08.663] WARN: test Trusted peers not initialized, returning false 16:01:08 [16:01:08.664] WARN: test Private peers not initialized, returning false 16:01:08 [16:01:08.664] WARN: test Trusted peers not initialized, returning false 16:01:08 [16:01:08.664] WARN: test Private peers not initialized, returning false 16:01:08 [16:01:08.665] WARN: test Trusted peers not initialized, returning false 16:01:08 [16:01:08.665] WARN: test Private peers not initialized, returning false 16:01:08 [16:01:08.665] WARN: test Trusted peers not initialized, returning false 16:01:08 [16:01:08.666] WARN: test Private peers not initialized, returning false 16:01:08 [16:01:08.773] WARN: test Trusted peers not initialized, returning false 16:01:08 [16:01:08.774] WARN: test Private peers not initialized, returning false 16:01:08 [16:01:08.996] WARN: test Private peers not initialized, returning false 16:01:09 [16:01:09.105] WARN: test Private peers not initialized, returning false 16:01:09 [16:01:09.791] WARN: test Private peers not initialized, returning false 16:01:09 [16:01:09.792] WARN: test Private peers not initialized, returning false 16:01:10 [16:01:10.497] WARN: test Trusted peers not initialized, returning false 16:01:10 [16:01:10.508] WARN: test Private peers not initialized, returning false 16:01:10 [16:01:10.508] WARN: test Private peers not initialized, returning false 16:01:10 [16:01:10.509] WARN: test Private peers not initialized, returning false 16:01:11 [16:01:11.294] WARN: test Private peers not initialized, returning false 16:01:11 [16:01:11.414] WARN: test Trusted peers not initialized, returning false 16:01:11 [16:01:11.414] WARN: test Private peers not initialized, returning false 16:01:11 PASS src/services/peer-manager/peer_manager.test.ts (6.868 s) 16:01:11 PeerManager 16:01:11 peer management 16:01:11 should return connected peers (57 ms) 16:01:11 should return peers in dial queue (6 ms) 16:01:11 should penalize peers (4 ms) 16:01:11 should handle heartbeat (10 ms) 16:01:11 should send goodbye to peers on shutdown (6 ms) 16:01:11 peer timeout functionality 16:01:11 should attempt to dial a discovered peer (64 ms) 16:01:11 should report peer count metric (109 ms) 16:01:11 should retry failed dials up to MAX_DIAL_ATTEMPTS (348 ms) 16:01:11 should timeout a peer after max dial attempts and ignore it for the timeout period (229 ms) 16:01:11 should cleanup expired timeouts during heartbeat (222 ms) 16:01:11 should include timed out peers in getPeers when includePending is true (18 ms) 16:01:11 should handle multiple peer discoveries and timeouts (121 ms) 16:01:11 should disconnect from unhealthy peers during heartbeat (109 ms) 16:01:11 should disconnect from low scoring peers above the max peer limit during heartbeat (113 ms) 16:01:11 should disconnect from duplicate peers during heartbeat (105 ms) 16:01:11 should properly clean up peers on stop (9 ms) 16:01:11 trusted peers 16:01:11 should not prune trusted peers (104 ms) 16:01:11 should prune untrusted peers and not trusted peers (107 ms) 16:01:11 should not disconnect trusted peers with low scores (109 ms) 16:01:11 should not remove trusted peers from the cache during pruning (585 ms) 16:01:11 should not remove trusted peers from the cache even when all peers are trusted (701 ms) 16:01:11 should return false from isTrustedPeer when trusted peers are not initialized (4 ms) 16:01:11 should not disconnect trusted peers when max peer count is reached (112 ms) 16:01:11 private peers 16:01:11 should not prune private peers with low scores (104 ms) 16:01:11 should not remove private peers from the cache during pruning (572 ms) 16:01:11 should return false from isPrivatePeer when private peers are not initialized (8 ms) 16:01:11 should initialize private peers from config (10 ms) 16:01:11 should handle a peer being both trusted and private (104 ms) 16:01:11 goodbye metrics 16:01:11 should record metrics when receiving goodbye messages (2 ms) 16:01:11 should record metrics when sending goodbye messages (2 ms) 16:01:11 16:01:11 Test Suites: 1 passed, 1 total 16:01:11 Tests: 30 passed, 30 total 16:01:11 Snapshots: 0 total 16:01:11 Time: 6.981 s 16:01:11 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 16:01:11 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?