Parent Log:
http://ci.aztec-labs.com/5b78f67da94557f7
Command: e4e37220d2336322: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/282da3bd25d49b92970e6fc85f110092e8566299
Env: REF_NAME=gh-readonly-queue/next/pr-14610-ee24aac96469b4f1cb8d70e614b2dd27bf0eb134 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Tue Jun 24 14:18:01 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14610_amd64_x3-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next
14:18:01 +++ id -u
14:18:01 +++ id -g
14:18: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'\'''
14:18:01 + cid=fc40d8173f3716d669f1fc442dbc23ce3abcc7a891db18e0a303c56a19567707
14:18:01 + set +x
14:18:05 [14:18:05.606]
WARN:
test Trusted peers not initialized, returning false
14:18:05 [14:18:05.612]
WARN:
test Private peers not initialized, returning false
14:18:05 [14:18:05.613]
WARN:
test Trusted peers not initialized, returning false
14:18:05 [14:18:05.613]
WARN:
test Private peers not initialized, returning false
14:18:05 [14:18:05.678]
WARN:
test Trusted peers not initialized, returning false
14:18:05 [14:18:05.679]
WARN:
test Private peers not initialized, returning false
14:18:05 [14:18:05.679]
INFO:
test Connected to 1 peers
{"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0}
14:18:05 [14:18:05.914]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:18:06 [14:18:06.017]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:18:06 [14:18:06.235]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:18:06 [14:18:06.336]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:18:06 [14:18:06.453]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:18:06 [14:18:06.554]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:18:06 [14:18:06.699]
WARN:
test Trusted peers not initialized, returning false
14:18:06 [14:18:06.700]
WARN:
test Private peers not initialized, returning false
14:18:06 [14:18:06.700]
WARN:
test Trusted peers not initialized, returning false
14:18:06 [14:18:06.701]
WARN:
test Private peers not initialized, returning false
14:18:06 [14:18:06.701]
WARN:
test Trusted peers not initialized, returning false
14:18:06 [14:18:06.701]
WARN:
test Private peers not initialized, returning false
14:18:06 [14:18:06.816]
WARN:
test Trusted peers not initialized, returning false
14:18:06 [14:18:06.816]
WARN:
test Private peers not initialized, returning false
14:18:06 [14:18:06.817]
WARN:
test Trusted peers not initialized, returning false
14:18:06 [14:18:06.817]
WARN:
test Private peers not initialized, returning false
14:18:06 [14:18:06.817]
WARN:
test Trusted peers not initialized, returning false
14:18:06 [14:18:06.818]
WARN:
test Private peers not initialized, returning false
14:18:06 [14:18:06.818]
WARN:
test Trusted peers not initialized, returning false
14:18:06 [14:18:06.818]
WARN:
test Private peers not initialized, returning false
14:18:06 [14:18:06.819]
WARN:
test Trusted peers not initialized, returning false
14:18:06 [14:18:06.819]
WARN:
test Private peers not initialized, returning false
14:18:06 [14:18:06.924]
WARN:
test Trusted peers not initialized, returning false
14:18:06 [14:18:06.924]
WARN:
test Private peers not initialized, returning false
14:18:07 [14:18:07.139]
WARN:
test Private peers not initialized, returning false
14:18:07 [14:18:07.246]
WARN:
test Private peers not initialized, returning false
14:18:07 [14:18:07.997]
WARN:
test Private peers not initialized, returning false
14:18:07 [14:18:07.998]
WARN:
test Private peers not initialized, returning false
14:18:08 [14:18:08.576]
WARN:
test Trusted peers not initialized, returning false
14:18:08 [14:18:08.586]
WARN:
test Private peers not initialized, returning false
14:18:08 [14:18:08.586]
WARN:
test Private peers not initialized, returning false
14:18:08 [14:18:08.586]
WARN:
test Private peers not initialized, returning false
14:18:09 [14:18:09.452]
WARN:
test Private peers not initialized, returning false
14:18:09 [14:18:09.571]
WARN:
test Trusted peers not initialized, returning false
14:18:09 [14:18:09.572]
WARN:
test Private peers not initialized, returning false
14:18:09
PASS src/services/peer-manager/peer_manager.test.ts (
6.749 s)
14:18:09 PeerManager
14:18:09 peer management
14:18:09
✓ should return connected peers (55 ms)
14:18:09
✓ should return peers in dial queue (6 ms)
14:18:09
✓ should penalize peers (4 ms)
14:18:09
✓ should handle heartbeat (9 ms)
14:18:09
✓ should send goodbye to peers on shutdown (7 ms)
14:18:09 peer timeout functionality
14:18:09
✓ should attempt to dial a discovered peer (53 ms)
14:18:09
✓ should report peer count metric (106 ms)
14:18:09
✓ should retry failed dials up to MAX_DIAL_ATTEMPTS (338 ms)
14:18:09
✓ should timeout a peer after max dial attempts and ignore it for the timeout period (223 ms)
14:18:09
✓ should cleanup expired timeouts during heartbeat (215 ms)
14:18:09
✓ should include timed out peers in getPeers when includePending is true (13 ms)
14:18:09
✓ should handle multiple peer discoveries and timeouts (120 ms)
14:18:09
✓ should disconnect from unhealthy peers during heartbeat (110 ms)
14:18:09
✓ should disconnect from low scoring peers above the max peer limit during heartbeat (116 ms)
14:18:09
✓ should disconnect from duplicate peers during heartbeat (105 ms)
14:18:09
✓ should properly clean up peers on stop (6 ms)
14:18:09 trusted peers
14:18:09
✓ should not prune trusted peers (103 ms)
14:18:09
✓ should prune untrusted peers and not trusted peers (106 ms)
14:18:09
✓ should not disconnect trusted peers with low scores (107 ms)
14:18:09
✓ should not remove trusted peers from the cache during pruning (650 ms)
14:18:09
✓ should not remove trusted peers from the cache even when all peers are trusted (574 ms)
14:18:09
✓ should return false from isTrustedPeer when trusted peers are not initialized (3 ms)
14:18:09
✓ should not disconnect trusted peers when max peer count is reached (113 ms)
14:18:09 private peers
14:18:09
✓ should not prune private peers with low scores (105 ms)
14:18:09
✓ should not remove private peers from the cache during pruning (653 ms)
14:18:09
✓ should return false from isPrivatePeer when private peers are not initialized (3 ms)
14:18:09
✓ should initialize private peers from config (7 ms)
14:18:09
✓ should handle a peer being both trusted and private (104 ms)
14:18:09 goodbye metrics
14:18:09
✓ should record metrics when receiving goodbye messages (3 ms)
14:18:09
✓ should record metrics when sending goodbye messages (4 ms)
14:18:09
14:18:09
Test Suites: 1 passed, 1 total
14:18:09
Tests: 30 passed, 30 total
14:18:09
Snapshots: 0 total
14:18:09
Time: 6.85 s
14:18:09
Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts
.
14:18:09
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?