Parent Log:
http://ci.aztec-labs.com/bae2f5d0b9ce7860
Command: 061ac9e48ee668e8: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/cf10794ebb7367fb6a26d1d402fd83c2aef3d888
Env: REF_NAME=gh-readonly-queue/next/pr-15193-372980b2f09de871ee7152879dcda8bdfe254b9d CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Fri Jun 20 20:09:30 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15193_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
20:09:30 +++ id -u
20:09:30 +++ id -g
20:09:30 ++ 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'\'''
20:09:31 + cid=8d64517b000b72754525b7e02b88172acd8456187ad8c9fda8b5dc73e4ac1de0
20:09:31 + set +x
20:09:32 [20:09:32.710]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:32 [20:09:32.716]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:32 [20:09:32.727]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:32 [20:09:32.728]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:32 [20:09:32.738]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:32 [20:09:32.739]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:32 [20:09:32.748]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:32 [20:09:32.748]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:32 [20:09:32.756]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:32 [20:09:32.757]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:32 [20:09:32.764]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:32 [20:09:32.764]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:32 [20:09:32.769]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:32 [20:09:32.769]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:32 [20:09:32.779]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:32 [20:09:32.779]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:33 [20:09:33.387]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:33 [20:09:33.387]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:33 [20:09:33.395]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:33 [20:09:33.396]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:33 [20:09:33.397]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:33 [20:09:33.397]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:33 [20:09:33.415]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:33 [20:09:33.416]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:33 [20:09:33.432]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:33 [20:09:33.432]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:33 [20:09:33.455]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:33 [20:09:33.455]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:33 [20:09:33.467]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:33 [20:09:33.468]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:33 [20:09:33.483]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:33 [20:09:33.484]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:33 [20:09:33.495]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:33 [20:09:33.496]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:33 [20:09:33.511]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:09:33 [20:09:33.511]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:09:33
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
20:09:33 ConnectionSampler
20:09:33 getPeer
20:09:33
✓ returns a random peer from the list (64 ms)
20:09:33
✓ returns undefined if no peers are available (10 ms)
20:09:33
✓ attempts to find peer with no active connections (11 ms)
20:09:33
✓ should not sample a peer that is being excluded (9 ms)
20:09:33 connection management
20:09:33
✓ correctly tracks active connections (9 ms)
20:09:33
✓ handles multiple connections to same peer (5 ms)
20:09:33
✓ handles errors during connection close (5 ms)
20:09:33
✓ does not accidentally close a stream for another peer (10 ms)
20:09:33 cleanup
20:09:33
✓ cleans up stale connections (608 ms)
20:09:33
✓ properly cleans up on stop (8 ms)
20:09:33 samplePeersBatch
20:09:33
✓ should only return samples as many peers as available (18 ms)
20:09:33
✓ prioritizes peers without active connections (15 ms)
20:09:33
✓ falls back to peers with connections when needed (22 ms)
20:09:33
✓ handles case when all peers have active connections (13 ms)
20:09:33
✓ handles case when fewer peers available than requested (15 ms)
20:09:33
✓ handles case when no peers available (12 ms)
20:09:33
✓ returns exactly the number of peers requested when available (16 ms)
20:09:33
20:09:33
Test Suites: 1 passed, 1 total
20:09:33
Tests: 17 passed, 17 total
20:09:33
Snapshots: 0 total
20:09:33
Time: 1.558 s
20:09:33
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
20:09:33
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?