Parent Log:
http://ci.aztec-labs.com/9b1548acd97b5e1c
Command: d2fcfaaceedeb658: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/bd28eda782eb6f2e1e5c2101a27104b4ad8796b3
Env: REF_NAME=gh-readonly-queue/next/pr-15315-634f8607a18c02c1d6e9ab5f302821fa8fc0e833 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Thu Jun 26 16:34:17 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15315_amd64_x3-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
16:34:17 +++ id -u
16:34:17 +++ id -g
16:34: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'\'''
16:34:17 + cid=aace0e05ea0722591ed396d4e2ba377f89bc2743cd6fc9ebc6387c360190192a
16:34:17 + set +x
16:34:19 [16:34:19.697]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:19 [16:34:19.702]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:19 [16:34:19.710]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:19 [16:34:19.711]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:19 [16:34:19.718]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:19 [16:34:19.719]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:19 [16:34:19.725]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:19 [16:34:19.725]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:19 [16:34:19.734]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:19 [16:34:19.735]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:19 [16:34:19.740]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:19 [16:34:19.741]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:19 [16:34:19.747]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:19 [16:34:19.748]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:19 [16:34:19.756]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:19 [16:34:19.763]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:20 [16:34:20.371]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:20 [16:34:20.372]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:20 [16:34:20.378]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:20 [16:34:20.379]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:20 [16:34:20.379]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:20 [16:34:20.379]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:20 [16:34:20.389]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:20 [16:34:20.389]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:20 [16:34:20.400]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:20 [16:34:20.401]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:20 [16:34:20.415]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:20 [16:34:20.416]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:20 [16:34:20.425]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:20 [16:34:20.426]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:20 [16:34:20.440]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:20 [16:34:20.440]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:20 [16:34:20.454]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:20 [16:34:20.455]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:20 [16:34:20.467]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:34:20 [16:34:20.468]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:34:20
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
16:34:20 ConnectionSampler
16:34:20 getPeer
16:34:20
✓ returns a random peer from the list (75 ms)
16:34:20
✓ returns undefined if no peers are available (7 ms)
16:34:20
✓ attempts to find peer with no active connections (8 ms)
16:34:20
✓ should not sample a peer that is being excluded (6 ms)
16:34:20 connection management
16:34:20
✓ correctly tracks active connections (10 ms)
16:34:20
✓ handles multiple connections to same peer (5 ms)
16:34:20
✓ handles errors during connection close (7 ms)
16:34:20
✓ does not accidentally close a stream for another peer (16 ms)
16:34:20 cleanup
16:34:20
✓ cleans up stale connections (609 ms)
16:34:20
✓ properly cleans up on stop (5 ms)
16:34:20 samplePeersBatch
16:34:20
✓ should only return samples as many peers as available (10 ms)
16:34:20
✓ prioritizes peers without active connections (11 ms)
16:34:20
✓ falls back to peers with connections when needed (15 ms)
16:34:20
✓ handles case when all peers have active connections (10 ms)
16:34:20
✓ handles case when fewer peers available than requested (14 ms)
16:34:20
✓ handles case when no peers available (14 ms)
16:34:20
✓ returns exactly the number of peers requested when available (15 ms)
16:34:20
16:34:20
Test Suites: 1 passed, 1 total
16:34:20
Tests: 17 passed, 17 total
16:34:20
Snapshots: 0 total
16:34:20
Time: 1.543 s
16:34:20
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
16:34:20
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?