Parent Log:
http://ci.aztec-labs.com/e288acb99b2d3432
Command: d22bc4a94b0d21bc: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/c06f30929f18b85bcea93c0926a8d640a3819f00
Env: REF_NAME=gh-readonly-queue/master/pr-15074-2707ec99de02004f3e30e7af0810e0d741ab9794 CURRENT_VERSION=0.87.8 CI_FULL=0
Date: Mon Jun 16 16:26:03 UTC 2025
System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-15074_arm64_a1-fast
Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_master
16:26:03 +++ id -u
16:26:03 +++ id -g
16:26:03 ++ docker run -d --name p2p_src_services_reqresp_connection-sampler_connection_sampler.test.ts --net=none --cpuset-cpus=0-63 --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:26:03 + cid=d10935d52e0aad463a5f41686e25b5796bbb541aa58b1a5fda2fbe7145117e95
16:26:03 + set +x
16:26:05 [16:26:05.033]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:26:05 [16:26:05.037]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:26:05 [16:26:05.045]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:26:05 [16:26:05.045]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:26:05 [16:26:05.052]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:26:05 [16:26:05.053]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:26:05 [16:26:05.058]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:26:05 [16:26:05.059]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:26:05 [16:26:05.065]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:26:05 [16:26:05.066]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:26:05 [16:26:05.071]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:26:05 [16:26:05.072]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:26:05 [16:26:05.077]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:26:05 [16:26:05.077]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:26:05 [16:26:05.681]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:26:05 [16:26:05.682]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:26:05 [16:26:05.687]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:26:05 [16:26:05.688]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:26:05 [16:26:05.688]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:26:05 [16:26:05.688]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:26:05 [16:26:05.699]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:26:05 [16:26:05.699]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:26:05 [16:26:05.710]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:26:05 [16:26:05.710]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:26:05 [16:26:05.720]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:26:05 [16:26:05.720]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:26:05 [16:26:05.731]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:26:05 [16:26:05.731]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:26:05 [16:26:05.741]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:26:05 [16:26:05.741]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:26:05 [16:26:05.750]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:26:05 [16:26:05.751]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:26:05 [16:26:05.760]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:26:05 [16:26:05.760]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:26:05
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
16:26:05 ConnectionSampler
16:26:05 getPeer
16:26:05
✓ returns a random peer from the list (45 ms)
16:26:05
✓ returns undefined if no peers are available (6 ms)
16:26:05
✓ attempts to find peer with no active connections (7 ms)
16:26:05
✓ should not sample a peer that is being excluded (6 ms)
16:26:05 connection management
16:26:05
✓ correctly tracks active connections (8 ms)
16:26:05
✓ handles multiple connections to same peer (5 ms)
16:26:05
✓ handles errors during connection close (5 ms)
16:26:05 cleanup
16:26:05
✓ cleans up stale connections (604 ms)
16:26:05
✓ properly cleans up on stop (7 ms)
16:26:05 samplePeersBatch
16:26:05
✓ should only return samples as many peers as available (10 ms)
16:26:05
✓ prioritizes peers without active connections (10 ms)
16:26:05
✓ falls back to peers with connections when needed (11 ms)
16:26:05
✓ handles case when all peers have active connections (11 ms)
16:26:05
✓ handles case when fewer peers available than requested (10 ms)
16:26:05
✓ handles case when no peers available (9 ms)
16:26:05
✓ returns exactly the number of peers requested when available (9 ms)
16:26:05
16:26:05
Test Suites: 1 passed, 1 total
16:26:05
Tests: 16 passed, 16 total
16:26:05
Snapshots: 0 total
16:26:05
Time: 1.172 s
16:26:05
Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i
.
16:26:05
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?