Parent Log:
http://ci.aztec-labs.com/1589287bc6ae70f9
Command: ebfed4061172f77e: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/07aee119a58dd438ddfb5bd53e124e7269e6c651
Env: REF_NAME=gh-readonly-queue/next/pr-15083-9b801754ba98479ee645488c29d2fda1eecbfd85 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 21:05:25 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15083_amd64_x4-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
21:05:25 +++ id -u
21:05:25 +++ id -g
21:05:25 ++ 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'\'''
21:05:26 + cid=6e0da6b490e08ff0cbcb5424951be6f807dbe93a5a46fd0193bf5035a40cc7d4
21:05:26 + set +x
21:05:27 [21:05:27.943]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:27 [21:05:27.950]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:27 [21:05:27.966]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:27 [21:05:27.967]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:27 [21:05:27.988]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:27 [21:05:27.992]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:28 [21:05:28.004]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:28 [21:05:28.005]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:28 [21:05:28.015]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:28 [21:05:28.016]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:28 [21:05:28.029]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:28 [21:05:28.030]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:28 [21:05:28.040]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:28 [21:05:28.041]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:28 [21:05:28.052]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:28 [21:05:28.053]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:28 [21:05:28.668]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:28 [21:05:28.669]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:28 [21:05:28.676]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:28 [21:05:28.677]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:28 [21:05:28.678]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:28 [21:05:28.678]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:28 [21:05:28.691]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:28 [21:05:28.691]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:28 [21:05:28.706]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:28 [21:05:28.707]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:28 [21:05:28.724]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:28 [21:05:28.725]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:28 [21:05:28.735]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:28 [21:05:28.736]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:28 [21:05:28.747]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:28 [21:05:28.748]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:28 [21:05:28.766]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:28 [21:05:28.766]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:28 [21:05:28.783]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:05:28 [21:05:28.784]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:05:28
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
21:05:28 ConnectionSampler
21:05:28 getPeer
21:05:28
✓ returns a random peer from the list (78 ms)
21:05:28
✓ returns undefined if no peers are available (15 ms)
21:05:28
✓ attempts to find peer with no active connections (25 ms)
21:05:28
✓ should not sample a peer that is being excluded (11 ms)
21:05:28 connection management
21:05:28
✓ correctly tracks active connections (11 ms)
21:05:28
✓ handles multiple connections to same peer (14 ms)
21:05:28
✓ handles errors during connection close (10 ms)
21:05:28
✓ does not accidentally close a stream for another peer (12 ms)
21:05:28 cleanup
21:05:28
✓ cleans up stale connections (615 ms)
21:05:28
✓ properly cleans up on stop (8 ms)
21:05:28 samplePeersBatch
21:05:28
✓ should only return samples as many peers as available (13 ms)
21:05:28
✓ prioritizes peers without active connections (15 ms)
21:05:28
✓ falls back to peers with connections when needed (17 ms)
21:05:28
✓ handles case when all peers have active connections (11 ms)
21:05:28
✓ handles case when fewer peers available than requested (12 ms)
21:05:28
✓ handles case when no peers available (19 ms)
21:05:28
✓ returns exactly the number of peers requested when available (17 ms)
21:05:28
21:05:28
Test Suites: 1 passed, 1 total
21:05:28
Tests: 17 passed, 17 total
21:05:28
Snapshots: 0 total
21:05:28
Time: 1.592 s
21:05:28
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
21:05:28
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?