Parent Log:
http://ci.aztec-labs.com/84a46107c517e2c5
Command: 71ec8227227d28e6: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/a45107e7f95b675cb2768b6bcb06483b511141f4
Env: REF_NAME=gh-readonly-queue/next/pr-15018-2731d9a8aebf63d05db1a786296abdf897c49490 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Thu Jun 12 17:44:09 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15018_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next
17:44:09 +++ id -u
17:44:09 +++ id -g
17:44:09 ++ 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'\'''
17:44:09 + cid=8c08aec766294163a6b972642424aa7cd97831fd41a4d82e6961505698630143
17:44:09 + set +x
17:44:13 [17:44:13.666]
WARN:
test Trusted peers not initialized, returning false
17:44:13 [17:44:13.673]
WARN:
test Private peers not initialized, returning false
17:44:13 [17:44:13.674]
WARN:
test Trusted peers not initialized, returning false
17:44:13 [17:44:13.675]
WARN:
test Private peers not initialized, returning false
17:44:13 [17:44:13.766]
WARN:
test Trusted peers not initialized, returning false
17:44:13 [17:44:13.767]
WARN:
test Private peers not initialized, returning false
17:44:13 [17:44:13.767]
INFO:
test Connected to 1 peers
{"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0}
17:44:14 [17:44:14.008]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
17:44:14 [17:44:14.111]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
17:44:14 [17:44:14.327]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
17:44:14 [17:44:14.434]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
17:44:14 [17:44:14.571]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
17:44:14 [17:44:14.675]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
17:44:14 [17:44:14.811]
WARN:
test Trusted peers not initialized, returning false
17:44:14 [17:44:14.811]
WARN:
test Private peers not initialized, returning false
17:44:14 [17:44:14.811]
WARN:
test Trusted peers not initialized, returning false
17:44:14 [17:44:14.812]
WARN:
test Private peers not initialized, returning false
17:44:14 [17:44:14.812]
WARN:
test Trusted peers not initialized, returning false
17:44:14 [17:44:14.812]
WARN:
test Private peers not initialized, returning false
17:44:14 [17:44:14.926]
WARN:
test Trusted peers not initialized, returning false
17:44:14 [17:44:14.927]
WARN:
test Private peers not initialized, returning false
17:44:14 [17:44:14.927]
WARN:
test Trusted peers not initialized, returning false
17:44:14 [17:44:14.927]
WARN:
test Private peers not initialized, returning false
17:44:14 [17:44:14.928]
WARN:
test Trusted peers not initialized, returning false
17:44:14 [17:44:14.928]
WARN:
test Private peers not initialized, returning false
17:44:14 [17:44:14.928]
WARN:
test Trusted peers not initialized, returning false
17:44:14 [17:44:14.929]
WARN:
test Private peers not initialized, returning false
17:44:14 [17:44:14.929]
WARN:
test Trusted peers not initialized, returning false
17:44:14 [17:44:14.929]
WARN:
test Private peers not initialized, returning false
17:44:15 [17:44:15.056]
WARN:
test Trusted peers not initialized, returning false
17:44:15 [17:44:15.056]
WARN:
test Private peers not initialized, returning false
17:44:15 [17:44:15.274]
WARN:
test Private peers not initialized, returning false
17:44:15 [17:44:15.380]
WARN:
test Private peers not initialized, returning false
17:44:16 [17:44:16.209]
WARN:
test Private peers not initialized, returning false
17:44:16 [17:44:16.210]
WARN:
test Private peers not initialized, returning false
17:44:16 [17:44:16.965]
WARN:
test Trusted peers not initialized, returning false
17:44:16 [17:44:16.973]
WARN:
test Private peers not initialized, returning false
17:44:16 [17:44:16.973]
WARN:
test Private peers not initialized, returning false
17:44:16 [17:44:16.973]
WARN:
test Private peers not initialized, returning false
17:44:17 [17:44:17.903]
WARN:
test Private peers not initialized, returning false
17:44:18 [17:44:18.023]
WARN:
test Trusted peers not initialized, returning false
17:44:18 [17:44:18.024]
WARN:
test Private peers not initialized, returning false
17:44:18
PASS src/services/peer-manager/peer_manager.test.ts (
7.131 s)
17:44:18 PeerManager
17:44:18 peer management
17:44:18
✓ should return connected peers (67 ms)
17:44:18
✓ should return peers in dial queue (9 ms)
17:44:18
✓ should penalize peers (5 ms)
17:44:18
✓ should handle heartbeat (12 ms)
17:44:18
✓ should send goodbye to peers on shutdown (9 ms)
17:44:18 peer timeout functionality
17:44:18
✓ should attempt to dial a discovered peer (77 ms)
17:44:18
✓ should report peer count metric (105 ms)
17:44:18
✓ should retry failed dials up to MAX_DIAL_ATTEMPTS (343 ms)
17:44:18
✓ should timeout a peer after max dial attempts and ignore it for the timeout period (244 ms)
17:44:18
✓ should cleanup expired timeouts during heartbeat (221 ms)
17:44:18
✓ should include timed out peers in getPeers when includePending is true (8 ms)
17:44:18
✓ should handle multiple peer discoveries and timeouts (115 ms)
17:44:18
✓ should disconnect from unhealthy peers during heartbeat (113 ms)
17:44:18
✓ should disconnect from low scoring peers above the max peer limit during heartbeat (135 ms)
17:44:18
✓ should disconnect from duplicate peers during heartbeat (107 ms)
17:44:18
✓ should properly clean up peers on stop (6 ms)
17:44:18 trusted peers
17:44:18
✓ should not prune trusted peers (103 ms)
17:44:18
✓ should prune untrusted peers and not trusted peers (107 ms)
17:44:18
✓ should not disconnect trusted peers with low scores (106 ms)
17:44:18
✓ should not remove trusted peers from the cache during pruning (730 ms)
17:44:18
✓ should not remove trusted peers from the cache even when all peers are trusted (750 ms)
17:44:18
✓ should return false from isTrustedPeer when trusted peers are not initialized (3 ms)
17:44:18
✓ should not disconnect trusted peers when max peer count is reached (109 ms)
17:44:18 private peers
17:44:18
✓ should not prune private peers with low scores (106 ms)
17:44:18
✓ should not remove private peers from the cache during pruning (718 ms)
17:44:18
✓ should return false from isPrivatePeer when private peers are not initialized (3 ms)
17:44:18
✓ should initialize private peers from config (8 ms)
17:44:18
✓ should handle a peer being both trusted and private (103 ms)
17:44:18 goodbye metrics
17:44:18
✓ should record metrics when receiving goodbye messages (4 ms)
17:44:18
✓ should record metrics when sending goodbye messages (4 ms)
17:44:18
17:44:18
Test Suites: 1 passed, 1 total
17:44:18
Tests: 30 passed, 30 total
17:44:18
Snapshots: 0 total
17:44:18
Time: 7.247 s
17:44:18
Ran all test suites matching /p2p\/src\/services\/peer-manager\/peer_manager.test.ts/i
.
17:44:18
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?