Parent Log: http://ci.aztec-labs.com/1d997b765e246008 Command: 5c58d0b0e69f02f7: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/7339c264ad706420ee9babb0dd1b6ed793e97402 Env: REF_NAME=gh-readonly-queue/next/pr-15039-ddabb45f79cc171e41a0a5330544775de9fdf7fd CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 13 15:02:07 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15039_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 15:02:07 +++ id -u 15:02:07 +++ id -g 15:02:07 ++ 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:02:08 + cid=4824f2f14e9a96cae7ad086ceea20fe0fe5845956d75ba88395dede1bded6b35 15:02:08 + set +x 15:02:12 [15:02:12.023] WARN: test Trusted peers not initialized, returning false 15:02:12 [15:02:12.029] WARN: test Private peers not initialized, returning false 15:02:12 [15:02:12.030] WARN: test Trusted peers not initialized, returning false 15:02:12 [15:02:12.030] WARN: test Private peers not initialized, returning false 15:02:12 [15:02:12.112] WARN: test Trusted peers not initialized, returning false 15:02:12 [15:02:12.113] WARN: test Private peers not initialized, returning false 15:02:12 [15:02:12.114] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 15:02:12 [15:02:12.352] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:02:12 [15:02:12.454] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:02:12 [15:02:12.669] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:02:12 [15:02:12.771] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:02:12 [15:02:12.893] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:02:12 [15:02:12.995] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:02:13 [15:02:13.140] WARN: test Trusted peers not initialized, returning false 15:02:13 [15:02:13.141] WARN: test Private peers not initialized, returning false 15:02:13 [15:02:13.141] WARN: test Trusted peers not initialized, returning false 15:02:13 [15:02:13.141] WARN: test Private peers not initialized, returning false 15:02:13 [15:02:13.141] WARN: test Trusted peers not initialized, returning false 15:02:13 [15:02:13.141] WARN: test Private peers not initialized, returning false 15:02:13 [15:02:13.251] WARN: test Trusted peers not initialized, returning false 15:02:13 [15:02:13.251] WARN: test Private peers not initialized, returning false 15:02:13 [15:02:13.251] WARN: test Trusted peers not initialized, returning false 15:02:13 [15:02:13.252] WARN: test Private peers not initialized, returning false 15:02:13 [15:02:13.252] WARN: test Trusted peers not initialized, returning false 15:02:13 [15:02:13.252] WARN: test Private peers not initialized, returning false 15:02:13 [15:02:13.252] WARN: test Trusted peers not initialized, returning false 15:02:13 [15:02:13.252] WARN: test Private peers not initialized, returning false 15:02:13 [15:02:13.253] WARN: test Trusted peers not initialized, returning false 15:02:13 [15:02:13.253] WARN: test Private peers not initialized, returning false 15:02:13 [15:02:13.359] WARN: test Trusted peers not initialized, returning false 15:02:13 [15:02:13.360] WARN: test Private peers not initialized, returning false 15:02:13 [15:02:13.577] WARN: test Private peers not initialized, returning false 15:02:13 [15:02:13.683] WARN: test Private peers not initialized, returning false 15:02:14 [15:02:14.316] WARN: test Private peers not initialized, returning false 15:02:14 [15:02:14.317] WARN: test Private peers not initialized, returning false 15:02:14 [15:02:14.908] WARN: test Trusted peers not initialized, returning false 15:02:14 [15:02:14.918] WARN: test Private peers not initialized, returning false 15:02:14 [15:02:14.918] WARN: test Private peers not initialized, returning false 15:02:14 [15:02:14.919] WARN: test Private peers not initialized, returning false 15:02:15 [15:02:15.634] WARN: test Private peers not initialized, returning false 15:02:15 [15:02:15.756] WARN: test Trusted peers not initialized, returning false 15:02:15 [15:02:15.756] WARN: test Private peers not initialized, returning false 15:02:15 PASS src/services/peer-manager/peer_manager.test.ts (6.599 s) 15:02:15 PeerManager 15:02:15 peer management 15:02:15 should return connected peers (40 ms) 15:02:15 should return peers in dial queue (8 ms) 15:02:15 should penalize peers (7 ms) 15:02:15 should handle heartbeat (11 ms) 15:02:15 should send goodbye to peers on shutdown (8 ms) 15:02:15 peer timeout functionality 15:02:15 should attempt to dial a discovered peer (69 ms) 15:02:15 should report peer count metric (106 ms) 15:02:15 should retry failed dials up to MAX_DIAL_ATTEMPTS (341 ms) 15:02:15 should timeout a peer after max dial attempts and ignore it for the timeout period (221 ms) 15:02:15 should cleanup expired timeouts during heartbeat (220 ms) 15:02:15 should include timed out peers in getPeers when includePending is true (12 ms) 15:02:15 should handle multiple peer discoveries and timeouts (119 ms) 15:02:15 should disconnect from unhealthy peers during heartbeat (111 ms) 15:02:15 should disconnect from low scoring peers above the max peer limit during heartbeat (111 ms) 15:02:15 should disconnect from duplicate peers during heartbeat (104 ms) 15:02:15 should properly clean up peers on stop (6 ms) 15:02:15 trusted peers 15:02:15 should not prune trusted peers (104 ms) 15:02:15 should prune untrusted peers and not trusted peers (106 ms) 15:02:15 should not disconnect trusted peers with low scores (107 ms) 15:02:15 should not remove trusted peers from the cache during pruning (533 ms) 15:02:15 should not remove trusted peers from the cache even when all peers are trusted (588 ms) 15:02:15 should return false from isTrustedPeer when trusted peers are not initialized (3 ms) 15:02:15 should not disconnect trusted peers when max peer count is reached (113 ms) 15:02:15 private peers 15:02:15 should not prune private peers with low scores (105 ms) 15:02:15 should not remove private peers from the cache during pruning (504 ms) 15:02:15 should return false from isPrivatePeer when private peers are not initialized (2 ms) 15:02:15 should initialize private peers from config (7 ms) 15:02:15 should handle a peer being both trusted and private (106 ms) 15:02:15 goodbye metrics 15:02:15 should record metrics when receiving goodbye messages (4 ms) 15:02:15 should record metrics when sending goodbye messages (4 ms) 15:02:15 15:02:15 Test Suites: 1 passed, 1 total 15:02:15 Tests: 30 passed, 30 total 15:02:15 Snapshots: 0 total 15:02:15 Time: 6.678 s 15:02:15 Ran all test suites matching /p2p\/src\/services\/peer-manager\/peer_manager.test.ts/i. 15:02:15 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?