Parent Log:
http://ci.aztec-labs.com/f820f650f8909c52
Command: bcc565b00bd8bb22: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/bcb41f0bbab679d1b5d50e6b59b4af0faeeb9b48
Env: REF_NAME=gh-readonly-queue/next/pr-15138-3c671e0822075208f705135771771f5a47e9652e CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Wed Jun 18 16:17:50 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15138_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next
16:17:50 +++ id -u
16:17:50 +++ id -g
16:17:50 ++ 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'\'''
16:17:50 + cid=759546f4ec3af3665a0c4518a555cfedecb974a964eddf09c819fb3138410164
16:17:50 + set +x
16:17:55 [16:17:55.122]
WARN:
test Trusted peers not initialized, returning false
16:17:55 [16:17:55.127]
WARN:
test Private peers not initialized, returning false
16:17:55 [16:17:55.128]
WARN:
test Trusted peers not initialized, returning false
16:17:55 [16:17:55.129]
WARN:
test Private peers not initialized, returning false
16:17:55 [16:17:55.216]
WARN:
test Trusted peers not initialized, returning false
16:17:55 [16:17:55.217]
WARN:
test Private peers not initialized, returning false
16:17:55 [16:17:55.217]
INFO:
test Connected to 1 peers
{"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0}
16:17:55 [16:17:55.459]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
16:17:55 [16:17:55.562]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
16:17:55 [16:17:55.781]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
16:17:55 [16:17:55.883]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
16:17:56 [16:17:55.999]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
16:17:56 [16:17:56.100]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
16:17:56 [16:17:56.245]
WARN:
test Trusted peers not initialized, returning false
16:17:56 [16:17:56.246]
WARN:
test Private peers not initialized, returning false
16:17:56 [16:17:56.246]
WARN:
test Trusted peers not initialized, returning false
16:17:56 [16:17:56.246]
WARN:
test Private peers not initialized, returning false
16:17:56 [16:17:56.247]
WARN:
test Trusted peers not initialized, returning false
16:17:56 [16:17:56.247]
WARN:
test Private peers not initialized, returning false
16:17:56 [16:17:56.360]
WARN:
test Trusted peers not initialized, returning false
16:17:56 [16:17:56.361]
WARN:
test Private peers not initialized, returning false
16:17:56 [16:17:56.361]
WARN:
test Trusted peers not initialized, returning false
16:17:56 [16:17:56.361]
WARN:
test Private peers not initialized, returning false
16:17:56 [16:17:56.361]
WARN:
test Trusted peers not initialized, returning false
16:17:56 [16:17:56.362]
WARN:
test Private peers not initialized, returning false
16:17:56 [16:17:56.362]
WARN:
test Trusted peers not initialized, returning false
16:17:56 [16:17:56.362]
WARN:
test Private peers not initialized, returning false
16:17:56 [16:17:56.362]
WARN:
test Trusted peers not initialized, returning false
16:17:56 [16:17:56.363]
WARN:
test Private peers not initialized, returning false
16:17:56 [16:17:56.471]
WARN:
test Trusted peers not initialized, returning false
16:17:56 [16:17:56.472]
WARN:
test Private peers not initialized, returning false
16:17:56 [16:17:56.700]
WARN:
test Private peers not initialized, returning false
16:17:56 [16:17:56.808]
WARN:
test Private peers not initialized, returning false
16:17:57 [16:17:57.506]
WARN:
test Private peers not initialized, returning false
16:17:57 [16:17:57.507]
WARN:
test Private peers not initialized, returning false
16:17:58 [16:17:58.232]
WARN:
test Trusted peers not initialized, returning false
16:17:58 [16:17:58.239]
WARN:
test Private peers not initialized, returning false
16:17:58 [16:17:58.239]
WARN:
test Private peers not initialized, returning false
16:17:58 [16:17:58.240]
WARN:
test Private peers not initialized, returning false
16:17:59 [16:17:59.088]
WARN:
test Private peers not initialized, returning false
16:17:59 [16:17:59.213]
WARN:
test Trusted peers not initialized, returning false
16:17:59 [16:17:59.214]
WARN:
test Private peers not initialized, returning false
16:17:59
PASS src/services/peer-manager/peer_manager.test.ts (
7.225 s)
16:17:59 PeerManager
16:17:59 peer management
16:17:59
✓ should return connected peers (52 ms)
16:17:59
✓ should return peers in dial queue (6 ms)
16:17:59
✓ should penalize peers (8 ms)
16:17:59
✓ should handle heartbeat (10 ms)
16:17:59
✓ should send goodbye to peers on shutdown (8 ms)
16:17:59 peer timeout functionality
16:17:59
✓ should attempt to dial a discovered peer (73 ms)
16:17:59
✓ should report peer count metric (109 ms)
16:17:59
✓ should retry failed dials up to MAX_DIAL_ATTEMPTS (342 ms)
16:17:59
✓ should timeout a peer after max dial attempts and ignore it for the timeout period (225 ms)
16:17:59
✓ should cleanup expired timeouts during heartbeat (214 ms)
16:17:59
✓ should include timed out peers in getPeers when includePending is true (12 ms)
16:17:59
✓ should handle multiple peer discoveries and timeouts (120 ms)
16:17:59
✓ should disconnect from unhealthy peers during heartbeat (111 ms)
16:17:59
✓ should disconnect from low scoring peers above the max peer limit during heartbeat (117 ms)
16:17:59
✓ should disconnect from duplicate peers during heartbeat (113 ms)
16:17:59
✓ should properly clean up peers on stop (7 ms)
16:17:59 trusted peers
16:17:59
✓ should not prune trusted peers (105 ms)
16:17:59
✓ should prune untrusted peers and not trusted peers (109 ms)
16:17:59
✓ should not disconnect trusted peers with low scores (107 ms)
16:17:59
✓ should not remove trusted peers from the cache during pruning (598 ms)
16:17:59
✓ should not remove trusted peers from the cache even when all peers are trusted (722 ms)
16:17:59
✓ should return false from isTrustedPeer when trusted peers are not initialized (2 ms)
16:17:59
✓ should not disconnect trusted peers when max peer count is reached (108 ms)
16:17:59 private peers
16:17:59
✓ should not prune private peers with low scores (104 ms)
16:17:59
✓ should not remove private peers from the cache during pruning (637 ms)
16:17:59
✓ should return false from isPrivatePeer when private peers are not initialized (6 ms)
16:17:59
✓ should initialize private peers from config (13 ms)
16:17:59
✓ should handle a peer being both trusted and private (105 ms)
16:17:59 goodbye metrics
16:17:59
✓ should record metrics when receiving goodbye messages (4 ms)
16:17:59
✓ should record metrics when sending goodbye messages (4 ms)
16:17:59
16:17:59
Test Suites: 1 passed, 1 total
16:17:59
Tests: 30 passed, 30 total
16:17:59
Snapshots: 0 total
16:17:59
Time: 7.315 s
16:17:59
Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts
.
16:17:59
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?