Parent Log:
http://ci.aztec-labs.com/6060ff546087cc03
Command: 73379369dc8552ae: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/7a1b59a9ea7f085cd243d25401ffbea660430ebd
Env: REF_NAME=gh-readonly-queue/next/pr-15163-4608046e462faf9ff3fbee265ba34dbecb5d0b31 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 23 13:50:14 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15163_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
13:50:14 +++ id -u
13:50:14 +++ id -g
13:50:14 ++ 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'\'''
13:50:15 + cid=34a4bf6c7d78f6cfd2588f7b6572f84158e23460b48ac85f8f6ab46033dd102d
13:50:15 + set +x
13:50:16 [13:50:16.919]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:16 [13:50:16.925]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:16 [13:50:16.935]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:16 [13:50:16.936]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:16 [13:50:16.948]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:16 [13:50:16.950]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:16 [13:50:16.964]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:16 [13:50:16.965]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:16 [13:50:16.980]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:16 [13:50:16.982]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:16 [13:50:16.991]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:16 [13:50:16.992]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:17 [13:50:17.000]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:17 [13:50:17.001]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:17 [13:50:17.014]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:17 [13:50:17.014]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:17 [13:50:17.624]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:17 [13:50:17.625]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:17 [13:50:17.630]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:17 [13:50:17.631]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:17 [13:50:17.631]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:17 [13:50:17.631]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:17 [13:50:17.642]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:17 [13:50:17.642]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:17 [13:50:17.658]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:17 [13:50:17.659]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:17 [13:50:17.675]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:17 [13:50:17.675]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:17 [13:50:17.691]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:17 [13:50:17.692]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:17 [13:50:17.706]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:17 [13:50:17.706]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:17 [13:50:17.715]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:17 [13:50:17.715]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:17 [13:50:17.733]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:50:17 [13:50:17.734]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:50:17
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
13:50:17 ConnectionSampler
13:50:17 getPeer
13:50:17
✓ returns a random peer from the list (69 ms)
13:50:17
✓ returns undefined if no peers are available (10 ms)
13:50:17
✓ attempts to find peer with no active connections (14 ms)
13:50:17
✓ should not sample a peer that is being excluded (15 ms)
13:50:17 connection management
13:50:17
✓ correctly tracks active connections (15 ms)
13:50:17
✓ handles multiple connections to same peer (8 ms)
13:50:17
✓ handles errors during connection close (8 ms)
13:50:17
✓ does not accidentally close a stream for another peer (13 ms)
13:50:17 cleanup
13:50:17
✓ cleans up stale connections (610 ms)
13:50:17
✓ properly cleans up on stop (5 ms)
13:50:17 samplePeersBatch
13:50:17
✓ should only return samples as many peers as available (11 ms)
13:50:17
✓ prioritizes peers without active connections (16 ms)
13:50:17
✓ falls back to peers with connections when needed (17 ms)
13:50:17
✓ handles case when all peers have active connections (16 ms)
13:50:17
✓ handles case when fewer peers available than requested (14 ms)
13:50:17
✓ handles case when no peers available (9 ms)
13:50:17
✓ returns exactly the number of peers requested when available (19 ms)
13:50:17
13:50:17
Test Suites: 1 passed, 1 total
13:50:17
Tests: 17 passed, 17 total
13:50:17
Snapshots: 0 total
13:50:17
Time: 1.705 s
13:50:17
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
13:50:17
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?