Parent Log:
http://ci.aztec-labs.com/632b8ea015640e73
Command: 68e9475192d7aeac: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/301dce04331dcfb583b7508b91491de618d4acf4
Env: REF_NAME=gh-readonly-queue/next/pr-15208-9b8ea5acda76687342ddb62595e293281661f029 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 23 10:24:31 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15208_amd64_x3-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
10:24:31 +++ id -u
10:24:31 +++ id -g
10:24:31 ++ 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'\'''
10:24:32 + cid=094016470e89ef92a0c339c45c1755d9d0678d3cde290aa912645aa2c128ec31
10:24:32 + set +x
10:24:33 [10:24:33.692]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:33 [10:24:33.697]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:33 [10:24:33.705]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:33 [10:24:33.706]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:33 [10:24:33.717]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:33 [10:24:33.720]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:33 [10:24:33.728]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:33 [10:24:33.729]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:33 [10:24:33.739]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:33 [10:24:33.740]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:33 [10:24:33.749]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:33 [10:24:33.749]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:33 [10:24:33.760]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:33 [10:24:33.760]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:33 [10:24:33.775]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:33 [10:24:33.776]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:34 [10:24:34.387]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:34 [10:24:34.388]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:34 [10:24:34.396]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:34 [10:24:34.396]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:34 [10:24:34.397]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:34 [10:24:34.397]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:34 [10:24:34.413]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:34 [10:24:34.414]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:34 [10:24:34.430]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:34 [10:24:34.431]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:34 [10:24:34.446]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:34 [10:24:34.447]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:34 [10:24:34.477]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:34 [10:24:34.478]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:34 [10:24:34.494]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:34 [10:24:34.495]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:34 [10:24:34.509]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:34 [10:24:34.510]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:34 [10:24:34.519]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:24:34 [10:24:34.519]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:24:34
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
10:24:34 ConnectionSampler
10:24:34 getPeer
10:24:34
✓ returns a random peer from the list (65 ms)
10:24:34
✓ returns undefined if no peers are available (8 ms)
10:24:34
✓ attempts to find peer with no active connections (14 ms)
10:24:34
✓ should not sample a peer that is being excluded (9 ms)
10:24:34 connection management
10:24:34
✓ correctly tracks active connections (11 ms)
10:24:34
✓ handles multiple connections to same peer (8 ms)
10:24:34
✓ handles errors during connection close (11 ms)
10:24:34
✓ does not accidentally close a stream for another peer (15 ms)
10:24:34 cleanup
10:24:34
✓ cleans up stale connections (610 ms)
10:24:34
✓ properly cleans up on stop (8 ms)
10:24:34 samplePeersBatch
10:24:34
✓ should only return samples as many peers as available (16 ms)
10:24:34
✓ prioritizes peers without active connections (17 ms)
10:24:34
✓ falls back to peers with connections when needed (15 ms)
10:24:34
✓ handles case when all peers have active connections (26 ms)
10:24:34
✓ handles case when fewer peers available than requested (16 ms)
10:24:34
✓ handles case when no peers available (15 ms)
10:24:34
✓ returns exactly the number of peers requested when available (9 ms)
10:24:34
10:24:34
Test Suites: 1 passed, 1 total
10:24:34
Tests: 17 passed, 17 total
10:24:34
Snapshots: 0 total
10:24:34
Time: 1.521 s
10:24:34
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
10:24:34
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?