Parent Log:
http://ci.aztec-labs.com/d674377334c1b750
Command: 0b621446113df0ea: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/a16ffcb44336b117d56ec8733e0b8bbfc787edf7
Env: REF_NAME=gh-readonly-queue/next/pr-15187-4608046e462faf9ff3fbee265ba34dbecb5d0b31 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 23 14:46:46 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15187_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next
14:46:46 +++ id -u
14:46:46 +++ id -g
14:46:46 ++ 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:46:47 + cid=a82b9edb4a4e206315d053347472313401649279c613ecc74197c051d2072182
14:46:47 + set +x
14:46:51 [14:46:51.105]
WARN:
test Trusted peers not initialized, returning false
14:46:51 [14:46:51.109]
WARN:
test Private peers not initialized, returning false
14:46:51 [14:46:51.110]
WARN:
test Trusted peers not initialized, returning false
14:46:51 [14:46:51.110]
WARN:
test Private peers not initialized, returning false
14:46:51 [14:46:51.186]
WARN:
test Trusted peers not initialized, returning false
14:46:51 [14:46:51.187]
WARN:
test Private peers not initialized, returning false
14:46:51 [14:46:51.188]
INFO:
test Connected to 1 peers
{"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0}
14:46:51 [14:46:51.430]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:46:51 [14:46:51.532]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:46:51 [14:46:51.746]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:46:51 [14:46:51.847]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:46:51 [14:46:51.967]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:46:52 [14:46:52.067]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:46:52 [14:46:52.227]
WARN:
test Trusted peers not initialized, returning false
14:46:52 [14:46:52.227]
WARN:
test Private peers not initialized, returning false
14:46:52 [14:46:52.228]
WARN:
test Trusted peers not initialized, returning false
14:46:52 [14:46:52.228]
WARN:
test Private peers not initialized, returning false
14:46:52 [14:46:52.229]
WARN:
test Trusted peers not initialized, returning false
14:46:52 [14:46:52.229]
WARN:
test Private peers not initialized, returning false
14:46:52 [14:46:52.338]
WARN:
test Trusted peers not initialized, returning false
14:46:52 [14:46:52.338]
WARN:
test Private peers not initialized, returning false
14:46:52 [14:46:52.338]
WARN:
test Trusted peers not initialized, returning false
14:46:52 [14:46:52.338]
WARN:
test Private peers not initialized, returning false
14:46:52 [14:46:52.339]
WARN:
test Trusted peers not initialized, returning false
14:46:52 [14:46:52.339]
WARN:
test Private peers not initialized, returning false
14:46:52 [14:46:52.339]
WARN:
test Trusted peers not initialized, returning false
14:46:52 [14:46:52.339]
WARN:
test Private peers not initialized, returning false
14:46:52 [14:46:52.339]
WARN:
test Trusted peers not initialized, returning false
14:46:52 [14:46:52.340]
WARN:
test Private peers not initialized, returning false
14:46:52 [14:46:52.447]
WARN:
test Trusted peers not initialized, returning false
14:46:52 [14:46:52.448]
WARN:
test Private peers not initialized, returning false
14:46:52 [14:46:52.664]
WARN:
test Private peers not initialized, returning false
14:46:52 [14:46:52.771]
WARN:
test Private peers not initialized, returning false
14:46:53 [14:46:53.548]
WARN:
test Private peers not initialized, returning false
14:46:53 [14:46:53.549]
WARN:
test Private peers not initialized, returning false
14:46:54 [14:46:54.195]
WARN:
test Trusted peers not initialized, returning false
14:46:54 [14:46:54.206]
WARN:
test Private peers not initialized, returning false
14:46:54 [14:46:54.206]
WARN:
test Private peers not initialized, returning false
14:46:54 [14:46:54.207]
WARN:
test Private peers not initialized, returning false
14:46:55 [14:46:55.056]
WARN:
test Private peers not initialized, returning false
14:46:55 [14:46:55.181]
WARN:
test Trusted peers not initialized, returning false
14:46:55 [14:46:55.183]
WARN:
test Private peers not initialized, returning false
14:46:55
PASS src/services/peer-manager/peer_manager.test.ts (
7.056 s)
14:46:55 PeerManager
14:46:55 peer management
14:46:55
✓ should return connected peers (64 ms)
14:46:55
✓ should return peers in dial queue (4 ms)
14:46:55
✓ should penalize peers (3 ms)
14:46:55
✓ should handle heartbeat (8 ms)
14:46:55
✓ should send goodbye to peers on shutdown (6 ms)
14:46:55 peer timeout functionality
14:46:55
✓ should attempt to dial a discovered peer (65 ms)
14:46:55
✓ should report peer count metric (108 ms)
14:46:55
✓ should retry failed dials up to MAX_DIAL_ATTEMPTS (342 ms)
14:46:55
✓ should timeout a peer after max dial attempts and ignore it for the timeout period (220 ms)
14:46:55
✓ should cleanup expired timeouts during heartbeat (220 ms)
14:46:55
✓ should include timed out peers in getPeers when includePending is true (17 ms)
14:46:55
✓ should handle multiple peer discoveries and timeouts (125 ms)
14:46:55
✓ should disconnect from unhealthy peers during heartbeat (111 ms)
14:46:55
✓ should disconnect from low scoring peers above the max peer limit during heartbeat (113 ms)
14:46:55
✓ should disconnect from duplicate peers during heartbeat (105 ms)
14:46:55
✓ should properly clean up peers on stop (5 ms)
14:46:55 trusted peers
14:46:55
✓ should not prune trusted peers (104 ms)
14:46:55
✓ should prune untrusted peers and not trusted peers (107 ms)
14:46:55
✓ should not disconnect trusted peers with low scores (107 ms)
14:46:55
✓ should not remove trusted peers from the cache during pruning (677 ms)
14:46:55
✓ should not remove trusted peers from the cache even when all peers are trusted (642 ms)
14:46:55
✓ should return false from isTrustedPeer when trusted peers are not initialized (3 ms)
14:46:55
✓ should not disconnect trusted peers when max peer count is reached (114 ms)
14:46:55 private peers
14:46:55
✓ should not prune private peers with low scores (104 ms)
14:46:55
✓ should not remove private peers from the cache during pruning (636 ms)
14:46:55
✓ should return false from isPrivatePeer when private peers are not initialized (5 ms)
14:46:55
✓ should initialize private peers from config (12 ms)
14:46:55
✓ should handle a peer being both trusted and private (104 ms)
14:46:55 goodbye metrics
14:46:55
✓ should record metrics when receiving goodbye messages (4 ms)
14:46:55
✓ should record metrics when sending goodbye messages (6 ms)
14:46:55
14:46:55
Test Suites: 1 passed, 1 total
14:46:55
Tests: 30 passed, 30 total
14:46:55
Snapshots: 0 total
14:46:55
Time: 7.161 s
14:46:55
Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts
.
14:46:55
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?