Parent Log:
http://ci.aztec-labs.com/67b970199dfcde97
Command: 7a41fc0e1576329f:ISOLATE=1:NAME=p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts yarn-project/scripts/run_test.sh p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
Commit:
https://github.com/AztecProtocol/aztec-packages/commit/142e6cd5fbf7371f649078f9d6d08828585c664d
Env: REF_NAME=gh-readonly-queue/next/pr-14610-016def8adbfe93f34b41a41f439b146b5318c895 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Tue Jun 24 12:58:02 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14610_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
12:58:03 +++ id -u
12:58:03 +++ id -g
12:58:03 ++ docker run -d --name p2p_src_services_reqresp_connection-sampler_connection_sampler.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/reqresp/connection-sampler/connection_sampler.test.ts'\'''
12:58:03 + cid=e811698dea9230fd137aae8bc0ee6eaa439eef2a1ce5787fa754c66d09e694bd
12:58:03 + set +x
12:58:05 [12:58:05.029]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.035]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05 [12:58:05.044]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.045]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05 [12:58:05.056]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.057]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05 [12:58:05.064]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.064]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05 [12:58:05.071]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.072]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05 [12:58:05.080]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.080]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05 [12:58:05.088]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.089]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05 [12:58:05.101]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.104]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05 [12:58:05.713]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.713]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05 [12:58:05.721]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.722]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05 [12:58:05.723]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.723]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05 [12:58:05.741]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.741]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05 [12:58:05.756]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.756]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05 [12:58:05.769]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.769]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05 [12:58:05.781]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.781]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05 [12:58:05.799]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.799]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05 [12:58:05.813]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.813]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05 [12:58:05.832]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:58:05 [12:58:05.833]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:58:05
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
12:58:05 ConnectionSampler
12:58:05 getPeer
12:58:05
✓ returns a random peer from the list (83 ms)
12:58:05
✓ returns undefined if no peers are available (9 ms)
12:58:05
✓ attempts to find peer with no active connections (11 ms)
12:58:05
✓ should not sample a peer that is being excluded (7 ms)
12:58:05 connection management
12:58:05
✓ correctly tracks active connections (8 ms)
12:58:05
✓ handles multiple connections to same peer (8 ms)
12:58:05
✓ handles errors during connection close (8 ms)
12:58:05
✓ does not accidentally close a stream for another peer (14 ms)
12:58:05 cleanup
12:58:05
✓ cleans up stale connections (609 ms)
12:58:05
✓ properly cleans up on stop (9 ms)
12:58:05 samplePeersBatch
12:58:05
✓ should only return samples as many peers as available (17 ms)
12:58:05
✓ prioritizes peers without active connections (14 ms)
12:58:05
✓ falls back to peers with connections when needed (13 ms)
12:58:05
✓ handles case when all peers have active connections (12 ms)
12:58:05
✓ handles case when fewer peers available than requested (18 ms)
12:58:05
✓ handles case when no peers available (14 ms)
12:58:05
✓ returns exactly the number of peers requested when available (19 ms)
12:58:05
12:58:05
Test Suites: 1 passed, 1 total
12:58:05
Tests: 17 passed, 17 total
12:58:05
Snapshots: 0 total
12:58:05
Time: 1.591 s
12:58:05
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
12:58:05
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?