Parent Log:
http://ci.aztec-labs.com/6013413449bf1ea6
Command: 1f25be2e8c7902e7: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/17ea18ade041a1bb437806e047c30b29da124094
Env: REF_NAME=gh-readonly-queue/next/pr-15007-4c695be4bff40a4a2ca2118c7e14c83a104e93aa CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Wed Jun 18 17:26:21 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15007_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
17:26:21 +++ id -u
17:26:21 +++ id -g
17:26:21 ++ 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'\'''
17:26:22 + cid=6e60eaf6d2812c4b3a20736fc45b6e438214bc26ece17427aabbc113acdd1195
17:26:22 + set +x
17:26:23 [17:26:23.763]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:23 [17:26:23.769]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:23 [17:26:23.782]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:23 [17:26:23.783]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:23 [17:26:23.793]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:23 [17:26:23.795]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:23 [17:26:23.803]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:23 [17:26:23.804]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:23 [17:26:23.814]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:23 [17:26:23.815]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:23 [17:26:23.825]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:23 [17:26:23.826]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:23 [17:26:23.836]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:23 [17:26:23.837]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:23 [17:26:23.849]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:23 [17:26:23.849]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:24 [17:26:24.455]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:24 [17:26:24.456]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:24 [17:26:24.468]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:24 [17:26:24.469]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:24 [17:26:24.469]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:24 [17:26:24.470]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:24 [17:26:24.485]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:24 [17:26:24.485]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:24 [17:26:24.499]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:24 [17:26:24.500]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:24 [17:26:24.515]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:24 [17:26:24.515]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:24 [17:26:24.528]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:24 [17:26:24.528]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:24 [17:26:24.541]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:24 [17:26:24.541]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:24 [17:26:24.551]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:24 [17:26:24.552]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:24 [17:26:24.573]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:26:24 [17:26:24.573]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:26:24
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
17:26:24 ConnectionSampler
17:26:24 getPeer
17:26:24
✓ returns a random peer from the list (63 ms)
17:26:24
✓ returns undefined if no peers are available (12 ms)
17:26:24
✓ attempts to find peer with no active connections (11 ms)
17:26:24
✓ should not sample a peer that is being excluded (9 ms)
17:26:24 connection management
17:26:24
✓ correctly tracks active connections (11 ms)
17:26:24
✓ handles multiple connections to same peer (10 ms)
17:26:24
✓ handles errors during connection close (9 ms)
17:26:24
✓ does not accidentally close a stream for another peer (12 ms)
17:26:24 cleanup
17:26:24
✓ cleans up stale connections (607 ms)
17:26:24
✓ properly cleans up on stop (13 ms)
17:26:24 samplePeersBatch
17:26:24
✓ should only return samples as many peers as available (15 ms)
17:26:24
✓ prioritizes peers without active connections (14 ms)
17:26:24
✓ falls back to peers with connections when needed (15 ms)
17:26:24
✓ handles case when all peers have active connections (13 ms)
17:26:24
✓ handles case when fewer peers available than requested (13 ms)
17:26:24
✓ handles case when no peers available (10 ms)
17:26:24
✓ returns exactly the number of peers requested when available (22 ms)
17:26:24
17:26:24
Test Suites: 1 passed, 1 total
17:26:24
Tests: 17 passed, 17 total
17:26:24
Snapshots: 0 total
17:26:24
Time: 1.54 s
17:26:24
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
17:26:24
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?