Parent Log:
http://ci.aztec-labs.com/a0e0bc0e0aa231dc
Command: 731d98bdb3377842: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/daebab2c4bace59ef25ddb29040a040926f095e6
Env: REF_NAME=gh-readonly-queue/next/pr-14986-b80949775e5c27908a6055ad24592f7d98bdc45a CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 09:10:55 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14986_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:10:56 +++ id -u
09:10:56 +++ id -g
09:10:56 ++ 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:10:56 + cid=008b0639363c90d12846093ee7868dd618545ae185c42ac4b71d81f2135dbf0d
09:10:56 + set +x
09:10:57 [09:10:57.857]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:57 [09:10:57.864]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:57 [09:10:57.877]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:57 [09:10:57.878]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:57 [09:10:57.890]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:57 [09:10:57.892]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:57 [09:10:57.902]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:57 [09:10:57.903]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:57 [09:10:57.926]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:57 [09:10:57.928]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:57 [09:10:57.939]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:57 [09:10:57.939]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:57 [09:10:57.946]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:57 [09:10:57.947]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:57 [09:10:57.954]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:57 [09:10:57.955]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:58 [09:10:58.565]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:58 [09:10:58.566]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:58 [09:10:58.576]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:58 [09:10:58.577]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:58 [09:10:58.578]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:58 [09:10:58.579]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:58 [09:10:58.602]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:58 [09:10:58.604]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:58 [09:10:58.638]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:58 [09:10:58.639]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:58 [09:10:58.659]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:58 [09:10:58.660]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:58 [09:10:58.682]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:58 [09:10:58.682]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:58 [09:10:58.697]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:58 [09:10:58.698]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:58 [09:10:58.716]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:58 [09:10:58.717]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:58 [09:10:58.733]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:58 [09:10:58.733]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:58
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
09:10:58 ConnectionSampler
09:10:58 getPeer
09:10:58
✓ returns a random peer from the list (105 ms)
09:10:58
✓ returns undefined if no peers are available (12 ms)
09:10:58
✓ attempts to find peer with no active connections (14 ms)
09:10:58
✓ should not sample a peer that is being excluded (10 ms)
09:10:58 connection management
09:10:58
✓ correctly tracks active connections (25 ms)
09:10:58
✓ handles multiple connections to same peer (11 ms)
09:10:58
✓ handles errors during connection close (7 ms)
09:10:58
✓ does not accidentally close a stream for another peer (8 ms)
09:10:58 cleanup
09:10:58
✓ cleans up stale connections (611 ms)
09:10:58
✓ properly cleans up on stop (12 ms)
09:10:58 samplePeersBatch
09:10:58
✓ should only return samples as many peers as available (25 ms)
09:10:58
✓ prioritizes peers without active connections (34 ms)
09:10:58
✓ falls back to peers with connections when needed (20 ms)
09:10:58
✓ handles case when all peers have active connections (21 ms)
09:10:58
✓ handles case when fewer peers available than requested (15 ms)
09:10:58
✓ handles case when no peers available (19 ms)
09:10:58
✓ returns exactly the number of peers requested when available (16 ms)
09:10:58
09:10:58
Test Suites: 1 passed, 1 total
09:10:58
Tests: 17 passed, 17 total
09:10:58
Snapshots: 0 total
09:10:58
Time: 1.482 s
09:10:58
Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i
.
09:10:58
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?