Parent Log:
http://ci.aztec-labs.com/92c2dda0ace2278e
Command: a5511b51e55ea9c0: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/6ee95286f8bcc5bb6dca43222459ac5bf43a8a75
Env: REF_NAME=gh-readonly-queue/next/pr-15156-9cbd161a1dfa928167c1f969200b95df55ed4c6b CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Fri Jun 20 09:43:32 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15156_amd64_x4-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
09:43:32 +++ id -u
09:43:32 +++ id -g
09:43:32 ++ 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'\'''
09:43:32 + cid=3b56c791c80c86e548960f38fa4d45625a29fcab9b184998098ebc5a09108017
09:43:32 + set +x
09:43:34 [09:43:34.402]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:34 [09:43:34.407]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:34 [09:43:34.420]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:34 [09:43:34.421]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:34 [09:43:34.434]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:34 [09:43:34.435]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:34 [09:43:34.442]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:34 [09:43:34.443]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:34 [09:43:34.452]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:34 [09:43:34.453]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:34 [09:43:34.460]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:34 [09:43:34.461]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:34 [09:43:34.469]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:34 [09:43:34.470]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:34 [09:43:34.478]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:34 [09:43:34.479]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:35 [09:43:35.087]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:35 [09:43:35.088]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:35 [09:43:35.095]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:35 [09:43:35.096]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:35 [09:43:35.097]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:35 [09:43:35.097]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:35 [09:43:35.113]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:35 [09:43:35.113]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:35 [09:43:35.128]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:35 [09:43:35.128]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:35 [09:43:35.146]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:35 [09:43:35.146]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:35 [09:43:35.159]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:35 [09:43:35.159]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:35 [09:43:35.169]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:35 [09:43:35.170]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:35 [09:43:35.184]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:35 [09:43:35.185]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:35 [09:43:35.197]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:35 [09:43:35.197]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:35
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
09:43:35 ConnectionSampler
09:43:35 getPeer
09:43:35
✓ returns a random peer from the list (74 ms)
09:43:35
✓ returns undefined if no peers are available (12 ms)
09:43:35
✓ attempts to find peer with no active connections (13 ms)
09:43:35
✓ should not sample a peer that is being excluded (7 ms)
09:43:35 connection management
09:43:35
✓ correctly tracks active connections (9 ms)
09:43:35
✓ handles multiple connections to same peer (7 ms)
09:43:35
✓ handles errors during connection close (8 ms)
09:43:35
✓ does not accidentally close a stream for another peer (8 ms)
09:43:35 cleanup
09:43:35
✓ cleans up stale connections (608 ms)
09:43:35
✓ properly cleans up on stop (8 ms)
09:43:35 samplePeersBatch
09:43:35
✓ should only return samples as many peers as available (16 ms)
09:43:35
✓ prioritizes peers without active connections (15 ms)
09:43:35
✓ falls back to peers with connections when needed (17 ms)
09:43:35
✓ handles case when all peers have active connections (13 ms)
09:43:35
✓ handles case when fewer peers available than requested (10 ms)
09:43:35
✓ handles case when no peers available (15 ms)
09:43:35
✓ returns exactly the number of peers requested when available (13 ms)
09:43:35
09:43:35
Test Suites: 1 passed, 1 total
09:43:35
Tests: 17 passed, 17 total
09:43:35
Snapshots: 0 total
09:43:35
Time: 1.59 s
09:43:35
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
09:43:35
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?