Parent Log: http://ci.aztec-labs.com/034b537ee44cd1a8 Command: 128a905c1f9c1691: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/76ca48a2187e3506bb464eae574e49476c2876ca Env: REF_NAME=gh-readonly-queue/next/pr-15045-9d6fb0bd1594726370a5f3a56591963452264642 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 13 18:06:01 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15045_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 18:06:01 +++ id -u 18:06:01 +++ id -g 18:06:01 ++ 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'\''' 18:06:01 + cid=eda9dd89236fac418552e9c03e48954ea52d83e050d4458c7014a5b0c288a86e 18:06:01 + set +x 18:06:05 [18:06:05.584] WARN: test Trusted peers not initialized, returning false 18:06:05 [18:06:05.591] WARN: test Private peers not initialized, returning false 18:06:05 [18:06:05.593] WARN: test Trusted peers not initialized, returning false 18:06:05 [18:06:05.594] WARN: test Private peers not initialized, returning false 18:06:05 [18:06:05.668] WARN: test Trusted peers not initialized, returning false 18:06:05 [18:06:05.669] WARN: test Private peers not initialized, returning false 18:06:05 [18:06:05.670] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 18:06:05 [18:06:05.905] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:06:06 [18:06:06.007] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:06:06 [18:06:06.220] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:06:06 [18:06:06.322] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:06:06 [18:06:06.440] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:06:06 [18:06:06.541] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:06:06 [18:06:06.685] WARN: test Trusted peers not initialized, returning false 18:06:06 [18:06:06.685] WARN: test Private peers not initialized, returning false 18:06:06 [18:06:06.686] WARN: test Trusted peers not initialized, returning false 18:06:06 [18:06:06.686] WARN: test Private peers not initialized, returning false 18:06:06 [18:06:06.686] WARN: test Trusted peers not initialized, returning false 18:06:06 [18:06:06.687] WARN: test Private peers not initialized, returning false 18:06:06 [18:06:06.795] WARN: test Trusted peers not initialized, returning false 18:06:06 [18:06:06.796] WARN: test Private peers not initialized, returning false 18:06:06 [18:06:06.796] WARN: test Trusted peers not initialized, returning false 18:06:06 [18:06:06.796] WARN: test Private peers not initialized, returning false 18:06:06 [18:06:06.796] WARN: test Trusted peers not initialized, returning false 18:06:06 [18:06:06.797] WARN: test Private peers not initialized, returning false 18:06:06 [18:06:06.797] WARN: test Trusted peers not initialized, returning false 18:06:06 [18:06:06.797] WARN: test Private peers not initialized, returning false 18:06:06 [18:06:06.797] WARN: test Trusted peers not initialized, returning false 18:06:06 [18:06:06.797] WARN: test Private peers not initialized, returning false 18:06:06 [18:06:06.903] WARN: test Trusted peers not initialized, returning false 18:06:06 [18:06:06.904] WARN: test Private peers not initialized, returning false 18:06:07 [18:06:07.117] WARN: test Private peers not initialized, returning false 18:06:07 [18:06:07.223] WARN: test Private peers not initialized, returning false 18:06:07 [18:06:07.981] WARN: test Private peers not initialized, returning false 18:06:07 [18:06:07.983] WARN: test Private peers not initialized, returning false 18:06:08 [18:06:08.574] WARN: test Trusted peers not initialized, returning false 18:06:08 [18:06:08.585] WARN: test Private peers not initialized, returning false 18:06:08 [18:06:08.585] WARN: test Private peers not initialized, returning false 18:06:08 [18:06:08.586] WARN: test Private peers not initialized, returning false 18:06:09 [18:06:09.273] WARN: test Private peers not initialized, returning false 18:06:09 [18:06:09.394] WARN: test Trusted peers not initialized, returning false 18:06:09 [18:06:09.395] WARN: test Private peers not initialized, returning false 18:06:09 PASS src/services/peer-manager/peer_manager.test.ts (6.489 s) 18:06:09 PeerManager 18:06:09 peer management 18:06:09 should return connected peers (60 ms) 18:06:09 should return peers in dial queue (6 ms) 18:06:09 should penalize peers (5 ms) 18:06:09 should handle heartbeat (14 ms) 18:06:09 should send goodbye to peers on shutdown (10 ms) 18:06:09 peer timeout functionality 18:06:09 should attempt to dial a discovered peer (59 ms) 18:06:09 should report peer count metric (106 ms) 18:06:09 should retry failed dials up to MAX_DIAL_ATTEMPTS (337 ms) 18:06:09 should timeout a peer after max dial attempts and ignore it for the timeout period (219 ms) 18:06:09 should cleanup expired timeouts during heartbeat (216 ms) 18:06:09 should include timed out peers in getPeers when includePending is true (13 ms) 18:06:09 should handle multiple peer discoveries and timeouts (119 ms) 18:06:09 should disconnect from unhealthy peers during heartbeat (111 ms) 18:06:09 should disconnect from low scoring peers above the max peer limit during heartbeat (110 ms) 18:06:09 should disconnect from duplicate peers during heartbeat (104 ms) 18:06:09 should properly clean up peers on stop (5 ms) 18:06:09 trusted peers 18:06:09 should not prune trusted peers (103 ms) 18:06:09 should prune untrusted peers and not trusted peers (106 ms) 18:06:09 should not disconnect trusted peers with low scores (105 ms) 18:06:09 should not remove trusted peers from the cache during pruning (659 ms) 18:06:09 should not remove trusted peers from the cache even when all peers are trusted (586 ms) 18:06:09 should return false from isTrustedPeer when trusted peers are not initialized (3 ms) 18:06:09 should not disconnect trusted peers when max peer count is reached (112 ms) 18:06:09 private peers 18:06:09 should not prune private peers with low scores (105 ms) 18:06:09 should not remove private peers from the cache during pruning (478 ms) 18:06:09 should return false from isPrivatePeer when private peers are not initialized (3 ms) 18:06:09 should initialize private peers from config (10 ms) 18:06:09 should handle a peer being both trusted and private (103 ms) 18:06:09 goodbye metrics 18:06:09 should record metrics when receiving goodbye messages (4 ms) 18:06:09 should record metrics when sending goodbye messages (4 ms) 18:06:09 18:06:09 Test Suites: 1 passed, 1 total 18:06:09 Tests: 30 passed, 30 total 18:06:09 Snapshots: 0 total 18:06:09 Time: 6.588 s 18:06:09 Ran all test suites matching /p2p\/src\/services\/peer-manager\/peer_manager.test.ts/i. 18:06:09 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?