Parent Log:
http://ci.aztec-labs.com/6afe0e3c63790b84
Command: 4174e5df391694d3: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/8d254a16364bbc8136cad6732cc978ea1a895cae
Env: REF_NAME=gh-readonly-queue/next/pr-15073-7763eef5eb7f045b9184a0a4591b394296eb3aa8 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 15:15:16 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15073_amd64_x2-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
15:15:16 +++ id -u
15:15:16 +++ id -g
15:15:16 ++ 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'\'''
15:15:16 + cid=a25d038c9f80d71d99a59a13226316a76552a0cb28286c9e17892b8ac98bd6f9
15:15:16 + set +x
15:15:18 [15:15:18.376]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:18 [15:15:18.382]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:18 [15:15:18.393]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:18 [15:15:18.394]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:18 [15:15:18.402]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:18 [15:15:18.403]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:18 [15:15:18.413]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:18 [15:15:18.414]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:18 [15:15:18.422]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:18 [15:15:18.423]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:18 [15:15:18.432]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:18 [15:15:18.432]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:18 [15:15:18.437]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:18 [15:15:18.438]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:18 [15:15:18.443]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:18 [15:15:18.443]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:19 [15:15:19.049]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:19 [15:15:19.049]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:19 [15:15:19.055]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:19 [15:15:19.056]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:19 [15:15:19.056]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:19 [15:15:19.057]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:19 [15:15:19.070]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:19 [15:15:19.070]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:19 [15:15:19.085]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:19 [15:15:19.085]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:19 [15:15:19.099]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:19 [15:15:19.100]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:19 [15:15:19.111]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:19 [15:15:19.112]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:19 [15:15:19.125]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:19 [15:15:19.125]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:19 [15:15:19.142]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:19 [15:15:19.144]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:19 [15:15:19.162]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:15:19 [15:15:19.162]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:15:19
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
15:15:19 ConnectionSampler
15:15:19 getPeer
15:15:19
✓ returns a random peer from the list (68 ms)
15:15:19
✓ returns undefined if no peers are available (11 ms)
15:15:19
✓ attempts to find peer with no active connections (9 ms)
15:15:19
✓ should not sample a peer that is being excluded (9 ms)
15:15:19 connection management
15:15:19
✓ correctly tracks active connections (9 ms)
15:15:19
✓ handles multiple connections to same peer (8 ms)
15:15:19
✓ handles errors during connection close (5 ms)
15:15:19
✓ does not accidentally close a stream for another peer (5 ms)
15:15:19 cleanup
15:15:19
✓ cleans up stale connections (606 ms)
15:15:19
✓ properly cleans up on stop (7 ms)
15:15:19 samplePeersBatch
15:15:19
✓ should only return samples as many peers as available (14 ms)
15:15:19
✓ prioritizes peers without active connections (16 ms)
15:15:19
✓ falls back to peers with connections when needed (12 ms)
15:15:19
✓ handles case when all peers have active connections (12 ms)
15:15:19
✓ handles case when fewer peers available than requested (13 ms)
15:15:19
✓ handles case when no peers available (18 ms)
15:15:19
✓ returns exactly the number of peers requested when available (18 ms)
15:15:19
15:15:19
Test Suites: 1 passed, 1 total
15:15:19
Tests: 17 passed, 17 total
15:15:19
Snapshots: 0 total
15:15:19
Time: 1.485 s
15:15:19
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
15:15:19
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?