Parent Log: http://ci.aztec-labs.com/058a10c61a6638d4 Command: a8cc061dbe484831: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/58696523cc93fda453138a4f2c2dff72b21f0bfa Env: REF_NAME=gh-readonly-queue/next/pr-15180-a923b0dd4c74291fcefa86c41b3b5dffca7e4178 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 20 13:10:21 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15180_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 13:10:22 +++ id -u 13:10:22 +++ id -g 13:10:22 ++ 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'\''' 13:10:22 + cid=1eebeeb106365b9d7b41c8e1be1602a87906fc64c114e5850cbc88d02d24c59b 13:10:22 + set +x 13:10:26 [13:10:26.248] WARN: test Trusted peers not initialized, returning false 13:10:26 [13:10:26.253] WARN: test Private peers not initialized, returning false 13:10:26 [13:10:26.254] WARN: test Trusted peers not initialized, returning false 13:10:26 [13:10:26.254] WARN: test Private peers not initialized, returning false 13:10:26 [13:10:26.327] WARN: test Trusted peers not initialized, returning false 13:10:26 [13:10:26.328] WARN: test Private peers not initialized, returning false 13:10:26 [13:10:26.329] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 13:10:26 [13:10:26.573] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 13:10:26 [13:10:26.675] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 13:10:26 [13:10:26.890] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 13:10:26 [13:10:26.991] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 13:10:27 [13:10:27.111] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 13:10:27 [13:10:27.213] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 13:10:27 [13:10:27.350] WARN: test Trusted peers not initialized, returning false 13:10:27 [13:10:27.351] WARN: test Private peers not initialized, returning false 13:10:27 [13:10:27.351] WARN: test Trusted peers not initialized, returning false 13:10:27 [13:10:27.352] WARN: test Private peers not initialized, returning false 13:10:27 [13:10:27.352] WARN: test Trusted peers not initialized, returning false 13:10:27 [13:10:27.352] WARN: test Private peers not initialized, returning false 13:10:27 [13:10:27.463] WARN: test Trusted peers not initialized, returning false 13:10:27 [13:10:27.464] WARN: test Private peers not initialized, returning false 13:10:27 [13:10:27.464] WARN: test Trusted peers not initialized, returning false 13:10:27 [13:10:27.464] WARN: test Private peers not initialized, returning false 13:10:27 [13:10:27.464] WARN: test Trusted peers not initialized, returning false 13:10:27 [13:10:27.465] WARN: test Private peers not initialized, returning false 13:10:27 [13:10:27.465] WARN: test Trusted peers not initialized, returning false 13:10:27 [13:10:27.465] WARN: test Private peers not initialized, returning false 13:10:27 [13:10:27.465] WARN: test Trusted peers not initialized, returning false 13:10:27 [13:10:27.466] WARN: test Private peers not initialized, returning false 13:10:27 [13:10:27.571] WARN: test Trusted peers not initialized, returning false 13:10:27 [13:10:27.572] WARN: test Private peers not initialized, returning false 13:10:27 [13:10:27.787] WARN: test Private peers not initialized, returning false 13:10:27 [13:10:27.894] WARN: test Private peers not initialized, returning false 13:10:28 [13:10:28.687] WARN: test Private peers not initialized, returning false 13:10:28 [13:10:28.689] WARN: test Private peers not initialized, returning false 13:10:29 [13:10:29.304] WARN: test Trusted peers not initialized, returning false 13:10:29 [13:10:29.314] WARN: test Private peers not initialized, returning false 13:10:29 [13:10:29.314] WARN: test Private peers not initialized, returning false 13:10:29 [13:10:29.315] WARN: test Private peers not initialized, returning false 13:10:30 [13:10:30.200] WARN: test Private peers not initialized, returning false 13:10:30 [13:10:30.328] WARN: test Trusted peers not initialized, returning false 13:10:30 [13:10:30.328] WARN: test Private peers not initialized, returning false 13:10:30 PASS src/services/peer-manager/peer_manager.test.ts (6.93 s) 13:10:30 PeerManager 13:10:30 peer management 13:10:30 should return connected peers (49 ms) 13:10:30 should return peers in dial queue (4 ms) 13:10:30 should penalize peers (7 ms) 13:10:30 should handle heartbeat (10 ms) 13:10:30 should send goodbye to peers on shutdown (6 ms) 13:10:30 peer timeout functionality 13:10:30 should attempt to dial a discovered peer (61 ms) 13:10:30 should report peer count metric (107 ms) 13:10:30 should retry failed dials up to MAX_DIAL_ATTEMPTS (346 ms) 13:10:30 should timeout a peer after max dial attempts and ignore it for the timeout period (220 ms) 13:10:30 should cleanup expired timeouts during heartbeat (217 ms) 13:10:30 should include timed out peers in getPeers when includePending is true (10 ms) 13:10:30 should handle multiple peer discoveries and timeouts (115 ms) 13:10:30 should disconnect from unhealthy peers during heartbeat (113 ms) 13:10:30 should disconnect from low scoring peers above the max peer limit during heartbeat (112 ms) 13:10:30 should disconnect from duplicate peers during heartbeat (105 ms) 13:10:30 should properly clean up peers on stop (5 ms) 13:10:30 trusted peers 13:10:30 should not prune trusted peers (103 ms) 13:10:30 should prune untrusted peers and not trusted peers (106 ms) 13:10:30 should not disconnect trusted peers with low scores (107 ms) 13:10:30 should not remove trusted peers from the cache during pruning (695 ms) 13:10:30 should not remove trusted peers from the cache even when all peers are trusted (611 ms) 13:10:30 should return false from isTrustedPeer when trusted peers are not initialized (2 ms) 13:10:30 should not disconnect trusted peers when max peer count is reached (114 ms) 13:10:30 private peers 13:10:30 should not prune private peers with low scores (110 ms) 13:10:30 should not remove private peers from the cache during pruning (668 ms) 13:10:30 should return false from isPrivatePeer when private peers are not initialized (3 ms) 13:10:30 should initialize private peers from config (16 ms) 13:10:30 should handle a peer being both trusted and private (104 ms) 13:10:30 goodbye metrics 13:10:30 should record metrics when receiving goodbye messages (3 ms) 13:10:30 should record metrics when sending goodbye messages (3 ms) 13:10:30 13:10:30 Test Suites: 1 passed, 1 total 13:10:30 Tests: 30 passed, 30 total 13:10:30 Snapshots: 0 total 13:10:30 Time: 7.027 s 13:10:30 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 13:10:30 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?