Parent Log:
http://ci.aztec-labs.com/ff92fcd218fe55a0
Command: 7ad4152ecf607d72: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/15c121440ebf929fded7bd0c31960fb154a3fa7a
Env: REF_NAME=gh-readonly-queue/next/pr-14554-befc8c4c9ab253911288e1ef4bdd56c5ae8eeb9b CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Wed Jun 11 22:58:39 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14554_amd64_x3-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
22:58:39 +++ id -u
22:58:39 +++ id -g
22:58:39 ++ 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'\'''
22:58:40 + cid=7fca5cebd58c04ef5c751bafb7c6d7b9315d569d7054d3dce723836e821668dc
22:58:40 + set +x
22:58:41 [22:58:41.724]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:58:41 [22:58:41.732]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:58:41 [22:58:41.745]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:58:41 [22:58:41.745]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:58:41 [22:58:41.757]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:58:41 [22:58:41.758]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:58:41 [22:58:41.773]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:58:41 [22:58:41.773]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:58:41 [22:58:41.789]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:58:41 [22:58:41.790]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:58:41 [22:58:41.802]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:58:41 [22:58:41.802]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:58:41 [22:58:41.814]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:58:41 [22:58:41.815]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:58:42 [22:58:42.426]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:58:42 [22:58:42.426]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:58:42 [22:58:42.435]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:58:42 [22:58:42.435]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:58:42 [22:58:42.437]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:58:42 [22:58:42.437]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:58:42 [22:58:42.456]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:58:42 [22:58:42.456]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:58:42 [22:58:42.479]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:58:42 [22:58:42.479]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:58:42 [22:58:42.492]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:58:42 [22:58:42.492]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:58:42 [22:58:42.507]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:58:42 [22:58:42.507]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:58:42 [22:58:42.524]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:58:42 [22:58:42.525]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:58:42 [22:58:42.538]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:58:42 [22:58:42.538]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:58:42 [22:58:42.551]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:58:42 [22:58:42.551]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:58:42
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
22:58:42 ConnectionSampler
22:58:42 getPeer
22:58:42
✓ returns a random peer from the list (112 ms)
22:58:42
✓ returns undefined if no peers are available (12 ms)
22:58:42
✓ attempts to find peer with no active connections (12 ms)
22:58:42
✓ should not sample a peer that is being excluded (15 ms)
22:58:42 connection management
22:58:42
✓ correctly tracks active connections (16 ms)
22:58:42
✓ handles multiple connections to same peer (12 ms)
22:58:42
✓ handles errors during connection close (12 ms)
22:58:42 cleanup
22:58:42
✓ cleans up stale connections (611 ms)
22:58:42
✓ properly cleans up on stop (10 ms)
22:58:42 samplePeersBatch
22:58:42
✓ should only return samples as many peers as available (19 ms)
22:58:42
✓ prioritizes peers without active connections (23 ms)
22:58:42
✓ falls back to peers with connections when needed (12 ms)
22:58:42
✓ handles case when all peers have active connections (15 ms)
22:58:42
✓ handles case when fewer peers available than requested (18 ms)
22:58:42
✓ handles case when no peers available (13 ms)
22:58:42
✓ returns exactly the number of peers requested when available (12 ms)
22:58:42
22:58:42
Test Suites: 1 passed, 1 total
22:58:42
Tests: 16 passed, 16 total
22:58:42
Snapshots: 0 total
22:58:42
Time: 1.496 s
22:58:42
Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i
.
22:58:42
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?