Parent Log:
http://ci.aztec-labs.com/e75f6976c94a80cc
Command: 4f771e618b80a60c: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/991b313d676f7cf820bb62a33e57cf5a4c8cf9cf
Env: REF_NAME=gh-readonly-queue/next/pr-15075-af42fafbeb7d6a4440329d9e9e5b1df459fa2e2e CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 15:56:11 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15075_amd64_x4-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
15:56:11 +++ id -u
15:56:11 +++ id -g
15:56:11 ++ 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:56:12 + cid=6b3f31e3834748cbc194bf8ced099609f903b519b63e310354c1a400b185adc4
15:56:12 + set +x
15:56:13 [15:56:13.655]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:13 [15:56:13.660]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:13 [15:56:13.683]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:13 [15:56:13.685]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:13 [15:56:13.698]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:13 [15:56:13.701]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:13 [15:56:13.713]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:13 [15:56:13.714]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:13 [15:56:13.721]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:13 [15:56:13.722]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:13 [15:56:13.733]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:13 [15:56:13.733]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:13 [15:56:13.741]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:13 [15:56:13.742]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:13 [15:56:13.750]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:13 [15:56:13.750]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:14 [15:56:14.361]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:14 [15:56:14.362]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:14 [15:56:14.389]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:14 [15:56:14.389]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:14 [15:56:14.390]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:14 [15:56:14.391]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:14 [15:56:14.410]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:14 [15:56:14.410]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:14 [15:56:14.425]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:14 [15:56:14.426]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:14 [15:56:14.444]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:14 [15:56:14.445]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:14 [15:56:14.463]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:14 [15:56:14.463]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:14 [15:56:14.494]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:14 [15:56:14.494]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:14 [15:56:14.512]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:14 [15:56:14.512]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:14 [15:56:14.527]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:56:14 [15:56:14.527]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:56:14
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
15:56:14 ConnectionSampler
15:56:14 getPeer
15:56:14
✓ returns a random peer from the list (83 ms)
15:56:14
✓ returns undefined if no peers are available (23 ms)
15:56:14
✓ attempts to find peer with no active connections (15 ms)
15:56:14
✓ should not sample a peer that is being excluded (13 ms)
15:56:14 connection management
15:56:14
✓ correctly tracks active connections (8 ms)
15:56:14
✓ handles multiple connections to same peer (11 ms)
15:56:14
✓ handles errors during connection close (8 ms)
15:56:14
✓ does not accidentally close a stream for another peer (8 ms)
15:56:14 cleanup
15:56:14
✓ cleans up stale connections (611 ms)
15:56:14
✓ properly cleans up on stop (28 ms)
15:56:14 samplePeersBatch
15:56:14
✓ should only return samples as many peers as available (19 ms)
15:56:14
✓ prioritizes peers without active connections (16 ms)
15:56:14
✓ falls back to peers with connections when needed (18 ms)
15:56:14
✓ handles case when all peers have active connections (18 ms)
15:56:14
✓ handles case when fewer peers available than requested (26 ms)
15:56:14
✓ handles case when no peers available (17 ms)
15:56:14
✓ returns exactly the number of peers requested when available (15 ms)
15:56:14
15:56:14
Test Suites: 1 passed, 1 total
15:56:14
Tests: 17 passed, 17 total
15:56:14
Snapshots: 0 total
15:56:14
Time: 1.52 s
15:56:14
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
15:56:14
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?