Parent Log:
http://ci.aztec-labs.com/13536a093234e194
Command: f2016651899c5161: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/4ac32ee8d0eca8ee29068688f73629311fe6a4ed
Env: REF_NAME=gh-readonly-queue/next/pr-15209-fc2e1be700f4d9d89e81de0b0735a96d9e2688fc CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 23 11:28:38 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15209_amd64_x4-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
11:28:38 +++ id -u
11:28:38 +++ id -g
11:28:38 ++ 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'\'''
11:28:38 + cid=9e5a23c4dd0e05561d0dcb4b456b0282f447740db04931ea2476220d69000cdb
11:28:38 + set +x
11:28:40 [11:28:40.040]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.046]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40 [11:28:40.059]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.060]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40 [11:28:40.069]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.071]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40 [11:28:40.078]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.079]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40 [11:28:40.088]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.091]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40 [11:28:40.098]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.099]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40 [11:28:40.106]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.106]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40 [11:28:40.115]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.116]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40 [11:28:40.724]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.725]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40 [11:28:40.733]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.733]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40 [11:28:40.734]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.734]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40 [11:28:40.759]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.760]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40 [11:28:40.778]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.779]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40 [11:28:40.792]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.792]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40 [11:28:40.810]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.811]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40 [11:28:40.828]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.829]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40 [11:28:40.844]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.845]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40 [11:28:40.863]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
11:28:40 [11:28:40.864]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
11:28:40
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
11:28:40 ConnectionSampler
11:28:40 getPeer
11:28:40
✓ returns a random peer from the list (56 ms)
11:28:40
✓ returns undefined if no peers are available (11 ms)
11:28:40
✓ attempts to find peer with no active connections (10 ms)
11:28:40
✓ should not sample a peer that is being excluded (8 ms)
11:28:40 connection management
11:28:40
✓ correctly tracks active connections (11 ms)
11:28:40
✓ handles multiple connections to same peer (7 ms)
11:28:40
✓ handles errors during connection close (8 ms)
11:28:40
✓ does not accidentally close a stream for another peer (9 ms)
11:28:40 cleanup
11:28:40
✓ cleans up stale connections (608 ms)
11:28:40
✓ properly cleans up on stop (8 ms)
11:28:40 samplePeersBatch
11:28:40
✓ should only return samples as many peers as available (26 ms)
11:28:40
✓ prioritizes peers without active connections (18 ms)
11:28:40
✓ falls back to peers with connections when needed (14 ms)
11:28:40
✓ handles case when all peers have active connections (18 ms)
11:28:40
✓ handles case when fewer peers available than requested (17 ms)
11:28:40
✓ handles case when no peers available (16 ms)
11:28:40
✓ returns exactly the number of peers requested when available (19 ms)
11:28:40
11:28:40
Test Suites: 1 passed, 1 total
11:28:40
Tests: 17 passed, 17 total
11:28:40
Snapshots: 0 total
11:28:40
Time: 1.505 s
11:28:40
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
11:28:40
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?