Parent Log:
http://ci.aztec-labs.com/6ebee05bfc578c50
Command: 5b134306478d06bb: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/e1613ca4b54a0ae509638dc4114780dd3cb0bc9b
Env: REF_NAME=gh-readonly-queue/next/pr-15239-282da3bd25d49b92970e6fc85f110092e8566299 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Tue Jun 24 15:17:22 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15239_amd64_x2-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
15:17:22 +++ id -u
15:17:22 +++ id -g
15:17:22 ++ 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'\'''
15:17:23 + cid=d717a97a85d308cb59ff01518bea6e4d37fa5900a4fb1b2363a7f510cfbb7f37
15:17:23 + set +x
15:17:24 [15:17:24.724]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:24 [15:17:24.730]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:24 [15:17:24.741]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:24 [15:17:24.742]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:24 [15:17:24.753]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:24 [15:17:24.754]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:24 [15:17:24.764]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:24 [15:17:24.765]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:24 [15:17:24.775]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:24 [15:17:24.777]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:24 [15:17:24.786]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:24 [15:17:24.787]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:24 [15:17:24.796]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:24 [15:17:24.797]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:24 [15:17:24.810]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:24 [15:17:24.811]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:25 [15:17:25.422]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:25 [15:17:25.423]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:25 [15:17:25.430]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:25 [15:17:25.431]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:25 [15:17:25.431]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:25 [15:17:25.431]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:25 [15:17:25.443]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:25 [15:17:25.444]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:25 [15:17:25.465]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:25 [15:17:25.466]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:25 [15:17:25.485]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:25 [15:17:25.486]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:25 [15:17:25.499]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:25 [15:17:25.499]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:25 [15:17:25.513]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:25 [15:17:25.514]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:25 [15:17:25.530]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:25 [15:17:25.530]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:25 [15:17:25.548]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:17:25 [15:17:25.548]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:17:25
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
15:17:25 ConnectionSampler
15:17:25 getPeer
15:17:25
✓ returns a random peer from the list (81 ms)
15:17:25
✓ returns undefined if no peers are available (11 ms)
15:17:25
✓ attempts to find peer with no active connections (12 ms)
15:17:25
✓ should not sample a peer that is being excluded (10 ms)
15:17:25 connection management
15:17:25
✓ correctly tracks active connections (12 ms)
15:17:25
✓ handles multiple connections to same peer (9 ms)
15:17:25
✓ handles errors during connection close (9 ms)
15:17:25
✓ does not accidentally close a stream for another peer (13 ms)
15:17:25 cleanup
15:17:25
✓ cleans up stale connections (611 ms)
15:17:25
✓ properly cleans up on stop (8 ms)
15:17:25 samplePeersBatch
15:17:25
✓ should only return samples as many peers as available (12 ms)
15:17:25
✓ prioritizes peers without active connections (21 ms)
15:17:25
✓ falls back to peers with connections when needed (19 ms)
15:17:25
✓ handles case when all peers have active connections (14 ms)
15:17:25
✓ handles case when fewer peers available than requested (14 ms)
15:17:25
✓ handles case when no peers available (16 ms)
15:17:25
✓ returns exactly the number of peers requested when available (18 ms)
15:17:25
15:17:25
Test Suites: 1 passed, 1 total
15:17:25
Tests: 17 passed, 17 total
15:17:25
Snapshots: 0 total
15:17:25
Time: 1.564 s
15:17:25
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
15:17:25
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?