Parent Log:
http://ci.aztec-labs.com/6840d784c8757000
Command: 1a84647d900d18a3: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/484694b997ac4ff62ed6d008cc3f12e0c60720ff
Env: REF_NAME=gh-readonly-queue/next/pr-15077-3c1b9d57eadcc8fb03a7ed42610cf0a1ae4a32eb CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Wed Jun 18 07:42:59 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15077_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
07:42:59 +++ id -u
07:42:59 +++ id -g
07:42:59 ++ 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'\'''
07:42:59 + cid=e66027c4c0349e097fc1d757bd7eeb214b67627c76c3765f1cd6594b5622b78b
07:42:59 + set +x
07:43:01 [07:43:01.304]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:01 [07:43:01.309]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:01 [07:43:01.324]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:01 [07:43:01.326]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:01 [07:43:01.347]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:01 [07:43:01.348]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:01 [07:43:01.360]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:01 [07:43:01.363]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:01 [07:43:01.388]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:01 [07:43:01.389]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:01 [07:43:01.398]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:01 [07:43:01.399]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:01 [07:43:01.405]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:01 [07:43:01.405]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:01 [07:43:01.412]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:01 [07:43:01.412]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:02 [07:43:02.021]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:02 [07:43:02.022]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:02 [07:43:02.028]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:02 [07:43:02.028]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:02 [07:43:02.029]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:02 [07:43:02.029]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:02 [07:43:02.044]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:02 [07:43:02.044]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:02 [07:43:02.065]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:02 [07:43:02.066]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:02 [07:43:02.087]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:02 [07:43:02.087]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:02 [07:43:02.104]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:02 [07:43:02.104]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:02 [07:43:02.120]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:02 [07:43:02.120]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:02 [07:43:02.133]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:02 [07:43:02.134]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:02 [07:43:02.145]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
07:43:02 [07:43:02.146]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
07:43:02
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
07:43:02 ConnectionSampler
07:43:02 getPeer
07:43:02
✓ returns a random peer from the list (51 ms)
07:43:02
✓ returns undefined if no peers are available (16 ms)
07:43:02
✓ attempts to find peer with no active connections (20 ms)
07:43:02
✓ should not sample a peer that is being excluded (16 ms)
07:43:02 connection management
07:43:02
✓ correctly tracks active connections (21 ms)
07:43:02
✓ handles multiple connections to same peer (9 ms)
07:43:02
✓ handles errors during connection close (6 ms)
07:43:02
✓ does not accidentally close a stream for another peer (7 ms)
07:43:02 cleanup
07:43:02
✓ cleans up stale connections (609 ms)
07:43:02
✓ properly cleans up on stop (7 ms)
07:43:02 samplePeersBatch
07:43:02
✓ should only return samples as many peers as available (14 ms)
07:43:02
✓ prioritizes peers without active connections (22 ms)
07:43:02
✓ falls back to peers with connections when needed (19 ms)
07:43:02
✓ handles case when all peers have active connections (17 ms)
07:43:02
✓ handles case when fewer peers available than requested (16 ms)
07:43:02
✓ handles case when no peers available (13 ms)
07:43:02
✓ returns exactly the number of peers requested when available (12 ms)
07:43:02
07:43:02
Test Suites: 1 passed, 1 total
07:43:02
Tests: 17 passed, 17 total
07:43:02
Snapshots: 0 total
07:43:02
Time: 1.554 s
07:43:02
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
07:43:02
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?