Parent Log: http://ci.aztec-labs.com/d5005dbc6734dc9b Command: 467c61bd41bfcfc4: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/2a96aa32179deb1c1a98c9bc93fbe72f0d016d62 Env: REF_NAME=gh-readonly-queue/next/pr-15284-aacd7d15462246c78893a25b05d292342c07b582 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Wed Jun 25 15:36:47 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15284_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 15:36:47 +++ id -u 15:36:47 +++ id -g 15:36:47 ++ 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'\''' 15:36:47 + cid=720801dad29b090bef1b17d6f3e302f8d723d835e46be2b0190b92a7acb92a13 15:36:47 + set +x 15:36:51 [15:36:51.492] WARN: test Trusted peers not initialized, returning false 15:36:51 [15:36:51.498] WARN: test Private peers not initialized, returning false 15:36:51 [15:36:51.499] WARN: test Trusted peers not initialized, returning false 15:36:51 [15:36:51.499] WARN: test Private peers not initialized, returning false 15:36:51 [15:36:51.589] WARN: test Trusted peers not initialized, returning false 15:36:51 [15:36:51.591] WARN: test Private peers not initialized, returning false 15:36:51 [15:36:51.591] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 15:36:51 [15:36:51.832] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:36:51 [15:36:51.934] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:36:52 [15:36:52.151] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:36:52 [15:36:52.252] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:36:52 [15:36:52.389] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:36:52 [15:36:52.491] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:36:52 [15:36:52.651] WARN: test Trusted peers not initialized, returning false 15:36:52 [15:36:52.652] WARN: test Private peers not initialized, returning false 15:36:52 [15:36:52.652] WARN: test Trusted peers not initialized, returning false 15:36:52 [15:36:52.652] WARN: test Private peers not initialized, returning false 15:36:52 [15:36:52.653] WARN: test Trusted peers not initialized, returning false 15:36:52 [15:36:52.653] WARN: test Private peers not initialized, returning false 15:36:52 [15:36:52.770] WARN: test Trusted peers not initialized, returning false 15:36:52 [15:36:52.770] WARN: test Private peers not initialized, returning false 15:36:52 [15:36:52.771] WARN: test Trusted peers not initialized, returning false 15:36:52 [15:36:52.771] WARN: test Private peers not initialized, returning false 15:36:52 [15:36:52.771] WARN: test Trusted peers not initialized, returning false 15:36:52 [15:36:52.771] WARN: test Private peers not initialized, returning false 15:36:52 [15:36:52.772] WARN: test Trusted peers not initialized, returning false 15:36:52 [15:36:52.772] WARN: test Private peers not initialized, returning false 15:36:52 [15:36:52.772] WARN: test Trusted peers not initialized, returning false 15:36:52 [15:36:52.772] WARN: test Private peers not initialized, returning false 15:36:52 [15:36:52.879] WARN: test Trusted peers not initialized, returning false 15:36:52 [15:36:52.880] WARN: test Private peers not initialized, returning false 15:36:53 [15:36:53.097] WARN: test Private peers not initialized, returning false 15:36:53 [15:36:53.202] WARN: test Private peers not initialized, returning false 15:36:53 [15:36:53.920] WARN: test Private peers not initialized, returning false 15:36:53 [15:36:53.921] WARN: test Private peers not initialized, returning false 15:36:54 [15:36:54.591] WARN: test Trusted peers not initialized, returning false 15:36:54 [15:36:54.600] WARN: test Private peers not initialized, returning false 15:36:54 [15:36:54.601] WARN: test Private peers not initialized, returning false 15:36:54 [15:36:54.601] WARN: test Private peers not initialized, returning false 15:36:55 [15:36:55.527] WARN: test Private peers not initialized, returning false 15:36:55 [15:36:55.645] WARN: test Trusted peers not initialized, returning false 15:36:55 [15:36:55.645] WARN: test Private peers not initialized, returning false 15:36:55 PASS src/services/peer-manager/peer_manager.test.ts (7.054 s) 15:36:55 PeerManager 15:36:55 peer management 15:36:55 should return connected peers (56 ms) 15:36:55 should return peers in dial queue (5 ms) 15:36:55 should penalize peers (4 ms) 15:36:55 should handle heartbeat (11 ms) 15:36:55 should send goodbye to peers on shutdown (13 ms) 15:36:55 peer timeout functionality 15:36:55 should attempt to dial a discovered peer (71 ms) 15:36:55 should report peer count metric (108 ms) 15:36:55 should retry failed dials up to MAX_DIAL_ATTEMPTS (342 ms) 15:36:55 should timeout a peer after max dial attempts and ignore it for the timeout period (238 ms) 15:36:55 should cleanup expired timeouts during heartbeat (219 ms) 15:36:55 should include timed out peers in getPeers when includePending is true (18 ms) 15:36:55 should handle multiple peer discoveries and timeouts (128 ms) 15:36:55 should disconnect from unhealthy peers during heartbeat (114 ms) 15:36:55 should disconnect from low scoring peers above the max peer limit during heartbeat (116 ms) 15:36:55 should disconnect from duplicate peers during heartbeat (108 ms) 15:36:55 should properly clean up peers on stop (6 ms) 15:36:55 trusted peers 15:36:55 should not prune trusted peers (103 ms) 15:36:55 should prune untrusted peers and not trusted peers (105 ms) 15:36:55 should not disconnect trusted peers with low scores (105 ms) 15:36:55 should not remove trusted peers from the cache during pruning (618 ms) 15:36:55 should not remove trusted peers from the cache even when all peers are trusted (666 ms) 15:36:55 should return false from isTrustedPeer when trusted peers are not initialized (4 ms) 15:36:55 should not disconnect trusted peers when max peer count is reached (112 ms) 15:36:55 private peers 15:36:55 should not prune private peers with low scores (114 ms) 15:36:55 should not remove private peers from the cache during pruning (706 ms) 15:36:55 should return false from isPrivatePeer when private peers are not initialized (3 ms) 15:36:55 should initialize private peers from config (9 ms) 15:36:55 should handle a peer being both trusted and private (102 ms) 15:36:55 goodbye metrics 15:36:55 should record metrics when receiving goodbye messages (2 ms) 15:36:55 should record metrics when sending goodbye messages (4 ms) 15:36:55 15:36:55 Test Suites: 1 passed, 1 total 15:36:55 Tests: 30 passed, 30 total 15:36:55 Snapshots: 0 total 15:36:55 Time: 7.152 s 15:36:55 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 15:36:55 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?