Parent Log:
http://ci.aztec-labs.com/29098e34bc98632e
Command: fb52012d377692f9: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/1e338a3fb2e2077f1feaee8b86c42644ff8a5352
Env: REF_NAME=gh-readonly-queue/next/pr-15075-fa4d5ef48c8de52059b5658bbd42e4514386f7db CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 16:42:07 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15075_amd64_x2-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
16:42:07 +++ id -u
16:42:07 +++ id -g
16:42: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'\'''
16:42:08 + cid=b0bca6abb57ec33d5799a016748525c73f33adebdf35f5bc72517472e2c7bc33
16:42:08 + set +x
16:42:09 [16:42:09.881]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:09 [16:42:09.888]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:09 [16:42:09.901]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:09 [16:42:09.901]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:09 [16:42:09.913]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:09 [16:42:09.914]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:09 [16:42:09.923]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:09 [16:42:09.923]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:09 [16:42:09.932]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:09 [16:42:09.932]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:09 [16:42:09.942]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:09 [16:42:09.942]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:09 [16:42:09.950]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:09 [16:42:09.951]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:09 [16:42:09.959]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:09 [16:42:09.959]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:10 [16:42:10.567]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:10 [16:42:10.568]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:10 [16:42:10.577]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:10 [16:42:10.578]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:10 [16:42:10.578]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:10 [16:42:10.579]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:10 [16:42:10.594]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:10 [16:42:10.594]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:10 [16:42:10.616]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:10 [16:42:10.617]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:10 [16:42:10.637]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:10 [16:42:10.637]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:10 [16:42:10.656]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:10 [16:42:10.657]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:10 [16:42:10.674]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:10 [16:42:10.674]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:10 [16:42:10.692]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:10 [16:42:10.693]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:10 [16:42:10.709]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:10 [16:42:10.710]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:10
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
16:42:10 ConnectionSampler
16:42:10 getPeer
16:42:10
✓ returns a random peer from the list (62 ms)
16:42:10
✓ returns undefined if no peers are available (11 ms)
16:42:10
✓ attempts to find peer with no active connections (12 ms)
16:42:10
✓ should not sample a peer that is being excluded (8 ms)
16:42:10 connection management
16:42:10
✓ correctly tracks active connections (9 ms)
16:42:10
✓ handles multiple connections to same peer (10 ms)
16:42:10
✓ handles errors during connection close (7 ms)
16:42:10
✓ does not accidentally close a stream for another peer (8 ms)
16:42:10 cleanup
16:42:10
✓ cleans up stale connections (609 ms)
16:42:10
✓ properly cleans up on stop (10 ms)
16:42:10 samplePeersBatch
16:42:10
✓ should only return samples as many peers as available (16 ms)
16:42:10
✓ prioritizes peers without active connections (21 ms)
16:42:10
✓ falls back to peers with connections when needed (19 ms)
16:42:10
✓ handles case when all peers have active connections (19 ms)
16:42:10
✓ handles case when fewer peers available than requested (18 ms)
16:42:10
✓ handles case when no peers available (18 ms)
16:42:10
✓ returns exactly the number of peers requested when available (16 ms)
16:42:10
16:42:10
Test Suites: 1 passed, 1 total
16:42:10
Tests: 17 passed, 17 total
16:42:10
Snapshots: 0 total
16:42:10
Time: 1.443 s
16:42:10
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
16:42:10
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?