Parent Log:
http://ci.aztec-labs.com/b6a274e7e4414258
Command: 3987b0c732d12451: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/d3bba2d69dbc070d51bcd50607354193573876ba
Env: REF_NAME=gh-readonly-queue/next/pr-14877-314d7622c6bacc8333ae49fe9583967cab78349b CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Fri Jun 13 12:55:16 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14877_amd64_x4-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
12:55:16 +++ id -u
12:55:16 +++ id -g
12:55: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'\'''
12:55:16 + cid=532d2c8645583bcb33f251965a8727161fc47f650e9163043c9bb0534681942d
12:55:16 + set +x
12:55:17 [12:55:17.874]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:55:17 [12:55:17.878]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:55:17 [12:55:17.885]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:55:17 [12:55:17.885]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:55:17 [12:55:17.892]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:55:17 [12:55:17.893]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:55:17 [12:55:17.899]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:55:17 [12:55:17.900]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:55:17 [12:55:17.921]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:55:17 [12:55:17.922]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:55:17 [12:55:17.931]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:55:17 [12:55:17.931]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:55:17 [12:55:17.937]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:55:17 [12:55:17.938]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:55:18 [12:55:18.544]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:55:18 [12:55:18.545]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:55:18 [12:55:18.552]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:55:18 [12:55:18.552]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:55:18 [12:55:18.553]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:55:18 [12:55:18.553]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:55:18 [12:55:18.568]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:55:18 [12:55:18.568]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:55:18 [12:55:18.583]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:55:18 [12:55:18.583]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:55:18 [12:55:18.600]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:55:18 [12:55:18.601]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:55:18 [12:55:18.621]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:55:18 [12:55:18.621]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:55:18 [12:55:18.634]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:55:18 [12:55:18.634]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:55:18 [12:55:18.643]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:55:18 [12:55:18.644]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:55:18 [12:55:18.655]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:55:18 [12:55:18.655]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:55:18
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
12:55:18 ConnectionSampler
12:55:18 getPeer
12:55:18
✓ returns a random peer from the list (47 ms)
12:55:18
✓ returns undefined if no peers are available (7 ms)
12:55:18
✓ attempts to find peer with no active connections (8 ms)
12:55:18
✓ should not sample a peer that is being excluded (6 ms)
12:55:18 connection management
12:55:18
✓ correctly tracks active connections (23 ms)
12:55:18
✓ handles multiple connections to same peer (8 ms)
12:55:18
✓ handles errors during connection close (6 ms)
12:55:18 cleanup
12:55:18
✓ cleans up stale connections (607 ms)
12:55:18
✓ properly cleans up on stop (8 ms)
12:55:18 samplePeersBatch
12:55:18
✓ should only return samples as many peers as available (15 ms)
12:55:18
✓ prioritizes peers without active connections (14 ms)
12:55:18
✓ falls back to peers with connections when needed (18 ms)
12:55:18
✓ handles case when all peers have active connections (20 ms)
12:55:18
✓ handles case when fewer peers available than requested (12 ms)
12:55:18
✓ handles case when no peers available (9 ms)
12:55:18
✓ returns exactly the number of peers requested when available (11 ms)
12:55:18
12:55:18
Test Suites: 1 passed, 1 total
12:55:18
Tests: 16 passed, 16 total
12:55:18
Snapshots: 0 total
12:55:18
Time: 1.278 s
12:55:18
Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i
.
12:55:18
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?