Parent Log:
http://ci.aztec-labs.com/505880563421c087
Command: 816a8a0e28c14627: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/7d223783d91db15002a09abc1b52d1455eb3e3da
Env: REF_NAME=gh-readonly-queue/next/pr-14161-97080f178c0a3e244c64b3c17bf255bed63fc3cf CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 10:41:12 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14161_amd64_x4-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next
10:41:12 +++ id -u
10:41:12 +++ id -g
10:41:12 ++ 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'\'''
10:41:13 + cid=4c1fa52668b7c3c31fdb61f29f8e003c646ae00511981ab63ffa377354021c29
10:41:13 + set +x
10:41:17 [10:41:17.008]
WARN:
test Trusted peers not initialized, returning false
10:41:17 [10:41:17.013]
WARN:
test Private peers not initialized, returning false
10:41:17 [10:41:17.015]
WARN:
test Trusted peers not initialized, returning false
10:41:17 [10:41:17.016]
WARN:
test Private peers not initialized, returning false
10:41:17 [10:41:17.124]
WARN:
test Trusted peers not initialized, returning false
10:41:17 [10:41:17.124]
WARN:
test Private peers not initialized, returning false
10:41:17 [10:41:17.125]
INFO:
test Connected to 1 peers
{"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0}
10:41:17 [10:41:17.372]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
10:41:17 [10:41:17.475]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
10:41:17 [10:41:17.698]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
10:41:17 [10:41:17.799]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
10:41:17 [10:41:17.919]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
10:41:18 [10:41:18.021]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
10:41:18 [10:41:18.168]
WARN:
test Trusted peers not initialized, returning false
10:41:18 [10:41:18.168]
WARN:
test Private peers not initialized, returning false
10:41:18 [10:41:18.169]
WARN:
test Trusted peers not initialized, returning false
10:41:18 [10:41:18.169]
WARN:
test Private peers not initialized, returning false
10:41:18 [10:41:18.169]
WARN:
test Trusted peers not initialized, returning false
10:41:18 [10:41:18.169]
WARN:
test Private peers not initialized, returning false
10:41:18 [10:41:18.278]
WARN:
test Trusted peers not initialized, returning false
10:41:18 [10:41:18.278]
WARN:
test Private peers not initialized, returning false
10:41:18 [10:41:18.278]
WARN:
test Trusted peers not initialized, returning false
10:41:18 [10:41:18.279]
WARN:
test Private peers not initialized, returning false
10:41:18 [10:41:18.279]
WARN:
test Trusted peers not initialized, returning false
10:41:18 [10:41:18.279]
WARN:
test Private peers not initialized, returning false
10:41:18 [10:41:18.279]
WARN:
test Trusted peers not initialized, returning false
10:41:18 [10:41:18.279]
WARN:
test Private peers not initialized, returning false
10:41:18 [10:41:18.279]
WARN:
test Trusted peers not initialized, returning false
10:41:18 [10:41:18.279]
WARN:
test Private peers not initialized, returning false
10:41:18 [10:41:18.385]
WARN:
test Trusted peers not initialized, returning false
10:41:18 [10:41:18.385]
WARN:
test Private peers not initialized, returning false
10:41:18 [10:41:18.598]
WARN:
test Private peers not initialized, returning false
10:41:18 [10:41:18.704]
WARN:
test Private peers not initialized, returning false
10:41:19 [10:41:19.439]
WARN:
test Private peers not initialized, returning false
10:41:19 [10:41:19.439]
WARN:
test Private peers not initialized, returning false
10:41:20 [10:41:20.087]
WARN:
test Trusted peers not initialized, returning false
10:41:20 [10:41:20.097]
WARN:
test Private peers not initialized, returning false
10:41:20 [10:41:20.097]
WARN:
test Private peers not initialized, returning false
10:41:20 [10:41:20.098]
WARN:
test Private peers not initialized, returning false
10:41:20 [10:41:20.890]
WARN:
test Private peers not initialized, returning false
10:41:21 [10:41:21.012]
WARN:
test Trusted peers not initialized, returning false
10:41:21 [10:41:21.013]
WARN:
test Private peers not initialized, returning false
10:41:21
PASS src/services/peer-manager/peer_manager.test.ts (
6.711 s)
10:41:21 PeerManager
10:41:21 peer management
10:41:21
✓ should return connected peers (58 ms)
10:41:21
✓ should return peers in dial queue (6 ms)
10:41:21
✓ should penalize peers (5 ms)
10:41:21
✓ should handle heartbeat (12 ms)
10:41:21
✓ should send goodbye to peers on shutdown (8 ms)
10:41:21 peer timeout functionality
10:41:21
✓ should attempt to dial a discovered peer (93 ms)
10:41:21
✓ should report peer count metric (106 ms)
10:41:21
✓ should retry failed dials up to MAX_DIAL_ATTEMPTS (353 ms)
10:41:21
✓ should timeout a peer after max dial attempts and ignore it for the timeout period (225 ms)
10:41:21
✓ should cleanup expired timeouts during heartbeat (219 ms)
10:41:21
✓ should include timed out peers in getPeers when includePending is true (12 ms)
10:41:21
✓ should handle multiple peer discoveries and timeouts (123 ms)
10:41:21
✓ should disconnect from unhealthy peers during heartbeat (111 ms)
10:41:21
✓ should disconnect from low scoring peers above the max peer limit during heartbeat (110 ms)
10:41:21
✓ should disconnect from duplicate peers during heartbeat (105 ms)
10:41:21
✓ should properly clean up peers on stop (4 ms)
10:41:21 trusted peers
10:41:21
✓ should not prune trusted peers (102 ms)
10:41:21
✓ should prune untrusted peers and not trusted peers (105 ms)
10:41:21
✓ should not disconnect trusted peers with low scores (106 ms)
10:41:21
✓ should not remove trusted peers from the cache during pruning (634 ms)
10:41:21
✓ should not remove trusted peers from the cache even when all peers are trusted (643 ms)
10:41:21
✓ should return false from isTrustedPeer when trusted peers are not initialized (3 ms)
10:41:21
✓ should not disconnect trusted peers when max peer count is reached (111 ms)
10:41:21 private peers
10:41:21
✓ should not prune private peers with low scores (106 ms)
10:41:21
✓ should not remove private peers from the cache during pruning (580 ms)
10:41:21
✓ should return false from isPrivatePeer when private peers are not initialized (5 ms)
10:41:21
✓ should initialize private peers from config (11 ms)
10:41:21
✓ should handle a peer being both trusted and private (103 ms)
10:41:21 goodbye metrics
10:41:21
✓ should record metrics when receiving goodbye messages (3 ms)
10:41:21
✓ should record metrics when sending goodbye messages (4 ms)
10:41:21
10:41:21
Test Suites: 1 passed, 1 total
10:41:21
Tests: 30 passed, 30 total
10:41:21
Snapshots: 0 total
10:41:21
Time: 6.788 s
10:41:21
Ran all test suites matching /p2p\/src\/services\/peer-manager\/peer_manager.test.ts/i
.
10:41:21
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?