Parent Log:
http://ci.aztec-labs.com/9d7da2703e486f3c
Command: 404189e96871acec: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/23ff13c6b16a0c1333bf26aa5c213054c92403c3
Env: REF_NAME=gh-readonly-queue/next/pr-15062-a0944d6ab9d5708daa7ff219a932e7b3784c6637 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Tue Jun 17 16:47:08 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15062_amd64_x4-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
16:47:08 +++ id -u
16:47:08 +++ id -g
16:47:08 ++ 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'\'''
16:47:08 + cid=1bc9526e331091fec9f543dc3d49db7dc7f1152a3daa1ce8d63a26d3931d678d
16:47:08 + set +x
16:47:10 [16:47:10.565]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:10 [16:47:10.571]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:10 [16:47:10.583]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:10 [16:47:10.584]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:10 [16:47:10.595]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:10 [16:47:10.596]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:10 [16:47:10.606]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:10 [16:47:10.606]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:10 [16:47:10.616]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:10 [16:47:10.617]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:10 [16:47:10.626]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:10 [16:47:10.627]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:10 [16:47:10.638]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:10 [16:47:10.638]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:10 [16:47:10.647]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:10 [16:47:10.647]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:11 [16:47:11.260]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:11 [16:47:11.261]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:11 [16:47:11.268]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:11 [16:47:11.269]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:11 [16:47:11.270]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:11 [16:47:11.270]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:11 [16:47:11.292]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:11 [16:47:11.293]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:11 [16:47:11.316]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:11 [16:47:11.316]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:11 [16:47:11.334]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:11 [16:47:11.334]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:11 [16:47:11.355]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:11 [16:47:11.356]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:11 [16:47:11.367]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:11 [16:47:11.367]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:11 [16:47:11.377]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:11 [16:47:11.377]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:11 [16:47:11.391]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:47:11 [16:47:11.392]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:47:11
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
16:47:11 ConnectionSampler
16:47:11 getPeer
16:47:11
✓ returns a random peer from the list (76 ms)
16:47:11
✓ returns undefined if no peers are available (11 ms)
16:47:11
✓ attempts to find peer with no active connections (12 ms)
16:47:11
✓ should not sample a peer that is being excluded (10 ms)
16:47:11 connection management
16:47:11
✓ correctly tracks active connections (11 ms)
16:47:11
✓ handles multiple connections to same peer (9 ms)
16:47:11
✓ handles errors during connection close (10 ms)
16:47:11
✓ does not accidentally close a stream for another peer (9 ms)
16:47:11 cleanup
16:47:11
✓ cleans up stale connections (613 ms)
16:47:11
✓ properly cleans up on stop (8 ms)
16:47:11 samplePeersBatch
16:47:11
✓ should only return samples as many peers as available (25 ms)
16:47:11
✓ prioritizes peers without active connections (20 ms)
16:47:11
✓ falls back to peers with connections when needed (18 ms)
16:47:11
✓ handles case when all peers have active connections (20 ms)
16:47:11
✓ handles case when fewer peers available than requested (11 ms)
16:47:11
✓ handles case when no peers available (9 ms)
16:47:11
✓ returns exactly the number of peers requested when available (14 ms)
16:47:11
16:47:11
Test Suites: 1 passed, 1 total
16:47:11
Tests: 17 passed, 17 total
16:47:11
Snapshots: 0 total
16:47:11
Time: 1.712 s
16:47:11
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
16:47:11
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?