Parent Log:
http://ci.aztec-labs.com/d1d12efbb2463ba0
Command: d2b17a71056754a7: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/b70544b6d50e3ecb6598361f1990bd51745c7b55
Env: REF_NAME=gh-readonly-queue/next/pr-15046-96a426245731b3f48fcb6dd5e2a683c858706602 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 22:39:17 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15046_amd64_x4-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
22:39:17 +++ id -u
22:39:17 +++ id -g
22:39:17 ++ 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'\'''
22:39:17 + cid=79b6addd704504b7e3e4f71f60ea40a41d8ba97026804af23ecc6d921fb1e560
22:39:17 + set +x
22:39:19 [22:39:19.320]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:19 [22:39:19.325]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:19 [22:39:19.332]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:19 [22:39:19.333]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:19 [22:39:19.342]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:19 [22:39:19.343]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:19 [22:39:19.351]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:19 [22:39:19.352]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:19 [22:39:19.361]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:19 [22:39:19.362]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:19 [22:39:19.372]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:19 [22:39:19.372]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:19 [22:39:19.379]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:19 [22:39:19.380]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:19 [22:39:19.387]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:19 [22:39:19.387]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:19 [22:39:19.993]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:19 [22:39:19.994]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:20 [22:39:20.009]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:20 [22:39:20.010]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:20 [22:39:20.010]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:20 [22:39:20.010]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:20 [22:39:20.030]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:20 [22:39:20.032]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:20 [22:39:20.044]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:20 [22:39:20.045]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:20 [22:39:20.058]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:20 [22:39:20.058]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:20 [22:39:20.072]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:20 [22:39:20.073]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:20 [22:39:20.085]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:20 [22:39:20.085]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:20 [22:39:20.101]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:20 [22:39:20.101]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:20 [22:39:20.116]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
22:39:20 [22:39:20.117]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
22:39:20
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
22:39:20 ConnectionSampler
22:39:20 getPeer
22:39:20
✓ returns a random peer from the list (77 ms)
22:39:20
✓ returns undefined if no peers are available (6 ms)
22:39:20
✓ attempts to find peer with no active connections (10 ms)
22:39:20
✓ should not sample a peer that is being excluded (9 ms)
22:39:20 connection management
22:39:20
✓ correctly tracks active connections (10 ms)
22:39:20
✓ handles multiple connections to same peer (10 ms)
22:39:20
✓ handles errors during connection close (7 ms)
22:39:20
✓ does not accidentally close a stream for another peer (7 ms)
22:39:20 cleanup
22:39:20
✓ cleans up stale connections (606 ms)
22:39:20
✓ properly cleans up on stop (18 ms)
22:39:20 samplePeersBatch
22:39:20
✓ should only return samples as many peers as available (18 ms)
22:39:20
✓ prioritizes peers without active connections (13 ms)
22:39:20
✓ falls back to peers with connections when needed (14 ms)
22:39:20
✓ handles case when all peers have active connections (14 ms)
22:39:20
✓ handles case when fewer peers available than requested (13 ms)
22:39:20
✓ handles case when no peers available (16 ms)
22:39:20
✓ returns exactly the number of peers requested when available (15 ms)
22:39:20
22:39:20
Test Suites: 1 passed, 1 total
22:39:20
Tests: 17 passed, 17 total
22:39:20
Snapshots: 0 total
22:39:20
Time: 1.459 s
22:39:20
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
22:39:20
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?