Parent Log:
http://ci.aztec-labs.com/0813959a3b08c9c9
Command: f682b45a820409ef: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/75d792847d8434a0c504e7adf5c102a913065272
Env: REF_NAME=gh-readonly-queue/next/pr-15015-cf8be0f9e81e248048560619de041e90d9d6990a CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Fri Jun 13 08:35:07 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15015_amd64_x3-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
08:35:07 +++ id -u
08:35:07 +++ id -g
08:35:07 ++ 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'\'''
08:35:08 + cid=bb90bd71400380fabd90de84e44fac112e2be7ceeb8db011e6023996f96bcd77
08:35:08 + set +x
08:35:09 [08:35:09.679]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
08:35:09 [08:35:09.686]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
08:35:09 [08:35:09.705]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
08:35:09 [08:35:09.706]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
08:35:09 [08:35:09.717]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
08:35:09 [08:35:09.718]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
08:35:09 [08:35:09.727]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
08:35:09 [08:35:09.728]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
08:35:09 [08:35:09.737]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
08:35:09 [08:35:09.738]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
08:35:09 [08:35:09.748]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
08:35:09 [08:35:09.749]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
08:35:09 [08:35:09.757]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
08:35:09 [08:35:09.757]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
08:35:10 [08:35:10.366]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
08:35:10 [08:35:10.367]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
08:35:10 [08:35:10.375]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
08:35:10 [08:35:10.376]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
08:35:10 [08:35:10.377]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
08:35:10 [08:35:10.377]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
08:35:10 [08:35:10.396]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
08:35:10 [08:35:10.397]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
08:35:10 [08:35:10.418]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
08:35:10 [08:35:10.419]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
08:35:10 [08:35:10.431]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
08:35:10 [08:35:10.431]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
08:35:10 [08:35:10.450]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
08:35:10 [08:35:10.451]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
08:35:10 [08:35:10.468]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
08:35:10 [08:35:10.468]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
08:35:10 [08:35:10.484]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
08:35:10 [08:35:10.486]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
08:35:10 [08:35:10.503]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
08:35:10 [08:35:10.504]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
08:35:10
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
08:35:10 ConnectionSampler
08:35:10 getPeer
08:35:10
✓ returns a random peer from the list (102 ms)
08:35:10
✓ returns undefined if no peers are available (13 ms)
08:35:10
✓ attempts to find peer with no active connections (12 ms)
08:35:10
✓ should not sample a peer that is being excluded (9 ms)
08:35:10 connection management
08:35:10
✓ correctly tracks active connections (10 ms)
08:35:10
✓ handles multiple connections to same peer (10 ms)
08:35:10
✓ handles errors during connection close (7 ms)
08:35:10 cleanup
08:35:10
✓ cleans up stale connections (609 ms)
08:35:10
✓ properly cleans up on stop (9 ms)
08:35:10 samplePeersBatch
08:35:10
✓ should only return samples as many peers as available (19 ms)
08:35:10
✓ prioritizes peers without active connections (21 ms)
08:35:10
✓ falls back to peers with connections when needed (12 ms)
08:35:10
✓ handles case when all peers have active connections (19 ms)
08:35:10
✓ handles case when fewer peers available than requested (18 ms)
08:35:10
✓ handles case when no peers available (17 ms)
08:35:10
✓ returns exactly the number of peers requested when available (17 ms)
08:35:10
08:35:10
Test Suites: 1 passed, 1 total
08:35:10
Tests: 16 passed, 16 total
08:35:10
Snapshots: 0 total
08:35:10
Time: 1.513 s
08:35:10
Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i
.
08:35:10
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?