Parent Log:
http://ci.aztec-labs.com/b0e48762cff3fa7d
Command: a5511b51e55ea9c0: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/0dc6f60f84deaa57a8570f9942eb75317f5aeea5
Env: REF_NAME=gh-readonly-queue/next/pr-15162-6ee95286f8bcc5bb6dca43222459ac5bf43a8a75 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Fri Jun 20 09:42:57 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15162_amd64_x2-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
09:42:57 +++ id -u
09:42:57 +++ id -g
09:42:57 ++ 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'\'''
09:42:58 + cid=c91acccbd209ac9e898de577f7d1f6263c955d0270933c9fd3b9fe4e6f98c043
09:42:58 + set +x
09:42:59 [09:42:59.752]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:42:59 [09:42:59.757]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:42:59 [09:42:59.767]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:42:59 [09:42:59.767]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:42:59 [09:42:59.781]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:42:59 [09:42:59.782]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:42:59 [09:42:59.793]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:42:59 [09:42:59.794]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:42:59 [09:42:59.802]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:42:59 [09:42:59.804]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:42:59 [09:42:59.809]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:42:59 [09:42:59.810]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:42:59 [09:42:59.816]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:42:59 [09:42:59.816]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:42:59 [09:42:59.823]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:42:59 [09:42:59.824]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:00 [09:43:00.434]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:00 [09:43:00.435]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:00 [09:43:00.441]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:00 [09:43:00.442]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:00 [09:43:00.443]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:00 [09:43:00.444]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:00 [09:43:00.460]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:00 [09:43:00.460]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:00 [09:43:00.476]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:00 [09:43:00.476]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:00 [09:43:00.489]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:00 [09:43:00.490]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:00 [09:43:00.505]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:00 [09:43:00.506]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:00 [09:43:00.518]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:00 [09:43:00.519]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:00 [09:43:00.535]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:00 [09:43:00.536]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:00 [09:43:00.547]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:43:00 [09:43:00.547]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:43:00
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
09:43:00 ConnectionSampler
09:43:00 getPeer
09:43:00
✓ returns a random peer from the list (52 ms)
09:43:00
✓ returns undefined if no peers are available (9 ms)
09:43:00
✓ attempts to find peer with no active connections (14 ms)
09:43:00
✓ should not sample a peer that is being excluded (10 ms)
09:43:00 connection management
09:43:00
✓ correctly tracks active connections (9 ms)
09:43:00
✓ handles multiple connections to same peer (5 ms)
09:43:00
✓ handles errors during connection close (7 ms)
09:43:00
✓ does not accidentally close a stream for another peer (7 ms)
09:43:00 cleanup
09:43:00
✓ cleans up stale connections (608 ms)
09:43:00
✓ properly cleans up on stop (9 ms)
09:43:00 samplePeersBatch
09:43:00
✓ should only return samples as many peers as available (17 ms)
09:43:00
✓ prioritizes peers without active connections (16 ms)
09:43:00
✓ falls back to peers with connections when needed (13 ms)
09:43:00
✓ handles case when all peers have active connections (14 ms)
09:43:00
✓ handles case when fewer peers available than requested (12 ms)
09:43:00
✓ handles case when no peers available (17 ms)
09:43:00
✓ returns exactly the number of peers requested when available (11 ms)
09:43:00
09:43:00
Test Suites: 1 passed, 1 total
09:43:00
Tests: 17 passed, 17 total
09:43:00
Snapshots: 0 total
09:43:00
Time: 1.476 s
09:43:00
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
09:43:00
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?