Parent Log:
http://ci.aztec-labs.com/05b76684a53e6d24
Command: 0d541f5a731ac42b: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/74eeec5d95106217d3b3f3068853022cef7fa307
Env: REF_NAME=gh-readonly-queue/next/pr-15189-8cbdad5ba8c6b2b13d060ecb764f4818ca0d5e4d CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Wed Jun 25 10:26:01 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15189_amd64_x2-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
10:26:01 +++ id -u
10:26:01 +++ id -g
10:26:01 ++ 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:26:01 + cid=fd35ef71b47d675d537f25d820dce643cd812bec154946934f5c36ee0fbf0768
10:26:01 + set +x
10:26:03 [10:26:03.084]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.091]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03 [10:26:03.103]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.103]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03 [10:26:03.114]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.115]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03 [10:26:03.126]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.126]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03 [10:26:03.142]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.144]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03 [10:26:03.153]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.154]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03 [10:26:03.163]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.164]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03 [10:26:03.176]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.177]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03 [10:26:03.783]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.784]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03 [10:26:03.791]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.791]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03 [10:26:03.792]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.792]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03 [10:26:03.811]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.811]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03 [10:26:03.829]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.829]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03 [10:26:03.851]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.854]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03 [10:26:03.871]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.872]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03 [10:26:03.887]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.888]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03 [10:26:03.900]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.900]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03 [10:26:03.916]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:26:03 [10:26:03.916]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:26:03
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
10:26:03 ConnectionSampler
10:26:03 getPeer
10:26:03
✓ returns a random peer from the list (67 ms)
10:26:03
✓ returns undefined if no peers are available (11 ms)
10:26:03
✓ attempts to find peer with no active connections (12 ms)
10:26:03
✓ should not sample a peer that is being excluded (10 ms)
10:26:03 connection management
10:26:03
✓ correctly tracks active connections (16 ms)
10:26:03
✓ handles multiple connections to same peer (9 ms)
10:26:03
✓ handles errors during connection close (10 ms)
10:26:03
✓ does not accidentally close a stream for another peer (11 ms)
10:26:03 cleanup
10:26:03
✓ cleans up stale connections (606 ms)
10:26:03
✓ properly cleans up on stop (8 ms)
10:26:03 samplePeersBatch
10:26:03
✓ should only return samples as many peers as available (19 ms)
10:26:03
✓ prioritizes peers without active connections (17 ms)
10:26:03
✓ falls back to peers with connections when needed (24 ms)
10:26:03
✓ handles case when all peers have active connections (17 ms)
10:26:03
✓ handles case when fewer peers available than requested (15 ms)
10:26:03
✓ handles case when no peers available (13 ms)
10:26:03
✓ returns exactly the number of peers requested when available (14 ms)
10:26:03
10:26:03
Test Suites: 1 passed, 1 total
10:26:03
Tests: 17 passed, 17 total
10:26:03
Snapshots: 0 total
10:26:03
Time: 1.543 s
10:26:03
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
10:26:03
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?