Parent Log: http://ci.aztec-labs.com/453396286815f782 Command: b895a7fa8f839b60: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/b80949775e5c27908a6055ad24592f7d98bdc45a Env: REF_NAME=gh-readonly-queue/next/pr-14816-fa159c5d52a45358479f951a547fed37f141a6ed CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Sat Jun 14 10:43:58 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14816_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 10:43:58 +++ id -u 10:43:58 +++ id -g 10:43:58 ++ 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'\''' 10:43:59 + cid=94be1acd37d19c6222e2003a9a7432c224f7705755839e90899743ec6c2a749c 10:43:59 + set +x 10:44:02 [10:44:02.523] WARN: test Trusted peers not initialized, returning false 10:44:02 [10:44:02.528] WARN: test Private peers not initialized, returning false 10:44:02 [10:44:02.529] WARN: test Trusted peers not initialized, returning false 10:44:02 [10:44:02.529] WARN: test Private peers not initialized, returning false 10:44:02 [10:44:02.612] WARN: test Trusted peers not initialized, returning false 10:44:02 [10:44:02.612] WARN: test Private peers not initialized, returning false 10:44:02 [10:44:02.613] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 10:44:02 [10:44:02.848] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:44:02 [10:44:02.951] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:44:03 [10:44:03.165] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:44:03 [10:44:03.266] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:44:03 [10:44:03.395] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:44:03 [10:44:03.497] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:44:03 [10:44:03.635] WARN: test Trusted peers not initialized, returning false 10:44:03 [10:44:03.636] WARN: test Private peers not initialized, returning false 10:44:03 [10:44:03.636] WARN: test Trusted peers not initialized, returning false 10:44:03 [10:44:03.636] WARN: test Private peers not initialized, returning false 10:44:03 [10:44:03.636] WARN: test Trusted peers not initialized, returning false 10:44:03 [10:44:03.637] WARN: test Private peers not initialized, returning false 10:44:03 [10:44:03.746] WARN: test Trusted peers not initialized, returning false 10:44:03 [10:44:03.747] WARN: test Private peers not initialized, returning false 10:44:03 [10:44:03.747] WARN: test Trusted peers not initialized, returning false 10:44:03 [10:44:03.747] WARN: test Private peers not initialized, returning false 10:44:03 [10:44:03.747] WARN: test Trusted peers not initialized, returning false 10:44:03 [10:44:03.748] WARN: test Private peers not initialized, returning false 10:44:03 [10:44:03.748] WARN: test Trusted peers not initialized, returning false 10:44:03 [10:44:03.748] WARN: test Private peers not initialized, returning false 10:44:03 [10:44:03.748] WARN: test Trusted peers not initialized, returning false 10:44:03 [10:44:03.748] WARN: test Private peers not initialized, returning false 10:44:03 [10:44:03.853] WARN: test Trusted peers not initialized, returning false 10:44:03 [10:44:03.854] WARN: test Private peers not initialized, returning false 10:44:04 [10:44:04.070] WARN: test Private peers not initialized, returning false 10:44:04 [10:44:04.184] WARN: test Private peers not initialized, returning false 10:44:04 [10:44:04.821] WARN: test Private peers not initialized, returning false 10:44:04 [10:44:04.823] WARN: test Private peers not initialized, returning false 10:44:05 [10:44:05.341] WARN: test Trusted peers not initialized, returning false 10:44:05 [10:44:05.351] WARN: test Private peers not initialized, returning false 10:44:05 [10:44:05.351] WARN: test Private peers not initialized, returning false 10:44:05 [10:44:05.351] WARN: test Private peers not initialized, returning false 10:44:06 [10:44:06.109] WARN: test Private peers not initialized, returning false 10:44:06 [10:44:06.225] WARN: test Trusted peers not initialized, returning false 10:44:06 [10:44:06.226] WARN: test Private peers not initialized, returning false 10:44:06 PASS src/services/peer-manager/peer_manager.test.ts (6.179 s) 10:44:06 PeerManager 10:44:06 peer management 10:44:06 should return connected peers (63 ms) 10:44:06 should return peers in dial queue (5 ms) 10:44:06 should penalize peers (7 ms) 10:44:06 should handle heartbeat (9 ms) 10:44:06 should send goodbye to peers on shutdown (7 ms) 10:44:06 peer timeout functionality 10:44:06 should attempt to dial a discovered peer (71 ms) 10:44:06 should report peer count metric (105 ms) 10:44:06 should retry failed dials up to MAX_DIAL_ATTEMPTS (338 ms) 10:44:06 should timeout a peer after max dial attempts and ignore it for the timeout period (228 ms) 10:44:06 should cleanup expired timeouts during heartbeat (218 ms) 10:44:06 should include timed out peers in getPeers when includePending is true (8 ms) 10:44:06 should handle multiple peer discoveries and timeouts (120 ms) 10:44:06 should disconnect from unhealthy peers during heartbeat (110 ms) 10:44:06 should disconnect from low scoring peers above the max peer limit during heartbeat (110 ms) 10:44:06 should disconnect from duplicate peers during heartbeat (105 ms) 10:44:06 should properly clean up peers on stop (6 ms) 10:44:06 trusted peers 10:44:06 should not prune trusted peers (104 ms) 10:44:06 should prune untrusted peers and not trusted peers (107 ms) 10:44:06 should not disconnect trusted peers with low scores (113 ms) 10:44:06 should not remove trusted peers from the cache during pruning (538 ms) 10:44:06 should not remove trusted peers from the cache even when all peers are trusted (514 ms) 10:44:06 should return false from isTrustedPeer when trusted peers are not initialized (2 ms) 10:44:06 should not disconnect trusted peers when max peer count is reached (110 ms) 10:44:06 private peers 10:44:06 should not prune private peers with low scores (103 ms) 10:44:06 should not remove private peers from the cache during pruning (549 ms) 10:44:06 should return false from isPrivatePeer when private peers are not initialized (3 ms) 10:44:06 should initialize private peers from config (8 ms) 10:44:06 should handle a peer being both trusted and private (102 ms) 10:44:06 goodbye metrics 10:44:06 should record metrics when receiving goodbye messages (2 ms) 10:44:06 should record metrics when sending goodbye messages (2 ms) 10:44:06 10:44:06 Test Suites: 1 passed, 1 total 10:44:06 Tests: 30 passed, 30 total 10:44:06 Snapshots: 0 total 10:44:06 Time: 6.27 s 10:44:06 Ran all test suites matching /p2p\/src\/services\/peer-manager\/peer_manager.test.ts/i. 10:44:06 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?