Parent Log:
http://ci.aztec-labs.com/6364a19c5b8a09e2
Command: 41adb1ae539b2f2b: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/a0944d6ab9d5708daa7ff219a932e7b3784c6637
Env: REF_NAME=gh-readonly-queue/next/pr-15020-90e495a77534c1d250949dbc053161959c9aadcc CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Tue Jun 17 15:08:21 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15020_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:08:22 +++ id -u
15:08:22 +++ id -g
15:08: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'\'''
15:08:22 + cid=1185d441a2966db60783172fcf2e7a3ce4caf8cae7ac7de75ebb9378dd7fe7f8
15:08:22 + set +x
15:08:26 [15:08:26.503]
WARN:
test Trusted peers not initialized, returning false
15:08:26 [15:08:26.510]
WARN:
test Private peers not initialized, returning false
15:08:26 [15:08:26.511]
WARN:
test Trusted peers not initialized, returning false
15:08:26 [15:08:26.511]
WARN:
test Private peers not initialized, returning false
15:08:26 [15:08:26.612]
WARN:
test Trusted peers not initialized, returning false
15:08:26 [15:08:26.613]
WARN:
test Private peers not initialized, returning false
15:08:26 [15:08:26.614]
INFO:
test Connected to 1 peers
{"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0}
15:08:26 [15:08:26.842]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
15:08:26 [15:08:26.945]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
15:08:27 [15:08:27.160]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
15:08:27 [15:08:27.261]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
15:08:27 [15:08:27.388]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
15:08:27 [15:08:27.491]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
15:08:27 [15:08:27.640]
WARN:
test Trusted peers not initialized, returning false
15:08:27 [15:08:27.641]
WARN:
test Private peers not initialized, returning false
15:08:27 [15:08:27.641]
WARN:
test Trusted peers not initialized, returning false
15:08:27 [15:08:27.641]
WARN:
test Private peers not initialized, returning false
15:08:27 [15:08:27.642]
WARN:
test Trusted peers not initialized, returning false
15:08:27 [15:08:27.642]
WARN:
test Private peers not initialized, returning false
15:08:27 [15:08:27.752]
WARN:
test Trusted peers not initialized, returning false
15:08:27 [15:08:27.753]
WARN:
test Private peers not initialized, returning false
15:08:27 [15:08:27.753]
WARN:
test Trusted peers not initialized, returning false
15:08:27 [15:08:27.753]
WARN:
test Private peers not initialized, returning false
15:08:27 [15:08:27.754]
WARN:
test Trusted peers not initialized, returning false
15:08:27 [15:08:27.754]
WARN:
test Private peers not initialized, returning false
15:08:27 [15:08:27.754]
WARN:
test Trusted peers not initialized, returning false
15:08:27 [15:08:27.754]
WARN:
test Private peers not initialized, returning false
15:08:27 [15:08:27.754]
WARN:
test Trusted peers not initialized, returning false
15:08:27 [15:08:27.754]
WARN:
test Private peers not initialized, returning false
15:08:27 [15:08:27.861]
WARN:
test Trusted peers not initialized, returning false
15:08:27 [15:08:27.861]
WARN:
test Private peers not initialized, returning false
15:08:28 [15:08:28.093]
WARN:
test Private peers not initialized, returning false
15:08:28 [15:08:28.205]
WARN:
test Private peers not initialized, returning false
15:08:28 [15:08:28.995]
WARN:
test Private peers not initialized, returning false
15:08:28 [15:08:28.996]
WARN:
test Private peers not initialized, returning false
15:08:29 [15:08:29.672]
WARN:
test Trusted peers not initialized, returning false
15:08:29 [15:08:29.678]
WARN:
test Private peers not initialized, returning false
15:08:29 [15:08:29.679]
WARN:
test Private peers not initialized, returning false
15:08:29 [15:08:29.679]
WARN:
test Private peers not initialized, returning false
15:08:30 [15:08:30.507]
WARN:
test Private peers not initialized, returning false
15:08:30 [15:08:30.623]
WARN:
test Trusted peers not initialized, returning false
15:08:30 [15:08:30.624]
WARN:
test Private peers not initialized, returning false
15:08:30
PASS src/services/peer-manager/peer_manager.test.ts (
7.216 s)
15:08:30 PeerManager
15:08:30 peer management
15:08:30
✓ should return connected peers (59 ms)
15:08:30
✓ should return peers in dial queue (7 ms)
15:08:30
✓ should penalize peers (4 ms)
15:08:30
✓ should handle heartbeat (12 ms)
15:08:30
✓ should send goodbye to peers on shutdown (9 ms)
15:08:30 peer timeout functionality
15:08:30
✓ should attempt to dial a discovered peer (84 ms)
15:08:30
✓ should report peer count metric (109 ms)
15:08:30
✓ should retry failed dials up to MAX_DIAL_ATTEMPTS (331 ms)
15:08:30
✓ should timeout a peer after max dial attempts and ignore it for the timeout period (220 ms)
15:08:30
✓ should cleanup expired timeouts during heartbeat (226 ms)
15:08:30
✓ should include timed out peers in getPeers when includePending is true (14 ms)
15:08:30
✓ should handle multiple peer discoveries and timeouts (123 ms)
15:08:30
✓ should disconnect from unhealthy peers during heartbeat (110 ms)
15:08:30
✓ should disconnect from low scoring peers above the max peer limit during heartbeat (113 ms)
15:08:30
✓ should disconnect from duplicate peers during heartbeat (105 ms)
15:08:30
✓ should properly clean up peers on stop (5 ms)
15:08:30 trusted peers
15:08:30
✓ should not prune trusted peers (105 ms)
15:08:30
✓ should prune untrusted peers and not trusted peers (122 ms)
15:08:30
✓ should not disconnect trusted peers with low scores (112 ms)
15:08:30
✓ should not remove trusted peers from the cache during pruning (688 ms)
15:08:30
✓ should not remove trusted peers from the cache even when all peers are trusted (672 ms)
15:08:30
✓ should return false from isTrustedPeer when trusted peers are not initialized (2 ms)
15:08:30
✓ should not disconnect trusted peers when max peer count is reached (112 ms)
15:08:30 private peers
15:08:30
✓ should not prune private peers with low scores (109 ms)
15:08:30
✓ should not remove private peers from the cache during pruning (610 ms)
15:08:30
✓ should return false from isPrivatePeer when private peers are not initialized (2 ms)
15:08:30
✓ should initialize private peers from config (8 ms)
15:08:30
✓ should handle a peer being both trusted and private (103 ms)
15:08:30 goodbye metrics
15:08:30
✓ should record metrics when receiving goodbye messages (3 ms)
15:08:30
✓ should record metrics when sending goodbye messages (2 ms)
15:08:30
15:08:30
Test Suites: 1 passed, 1 total
15:08:30
Tests: 30 passed, 30 total
15:08:30
Snapshots: 0 total
15:08:30
Time: 7.324 s
15:08:30
Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts
.
15:08:30
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?