Parent Log:
http://ci.aztec-labs.com/182784f95254e63d
Command: fb52012d377692f9: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/1e338a3fb2e2077f1feaee8b86c42644ff8a5352
Env: REF_NAME=gh-readonly-queue/next/pr-15075-fa4d5ef48c8de52059b5658bbd42e4514386f7db CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 16:42:11 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15075_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
16:42:11 +++ id -u
16:42:11 +++ id -g
16:42:11 ++ 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'\'''
16:42:11 + cid=17415ce9a49c132558904472ad2fc70e56e97a26a97bb06fec84885fc470fba4
16:42:11 + set +x
16:42:13 [16:42:13.251]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:13 [16:42:13.256]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:13 [16:42:13.264]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:13 [16:42:13.265]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:13 [16:42:13.276]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:13 [16:42:13.277]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:13 [16:42:13.284]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:13 [16:42:13.287]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:13 [16:42:13.297]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:13 [16:42:13.299]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:13 [16:42:13.308]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:13 [16:42:13.309]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:13 [16:42:13.313]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:13 [16:42:13.313]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:13 [16:42:13.319]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:13 [16:42:13.319]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:13 [16:42:13.925]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:13 [16:42:13.926]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:13 [16:42:13.934]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:13 [16:42:13.935]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:13 [16:42:13.935]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:13 [16:42:13.936]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:13 [16:42:13.949]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:13 [16:42:13.949]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:13 [16:42:13.961]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:13 [16:42:13.961]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:13 [16:42:13.989]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:13 [16:42:13.989]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:14 [16:42:14.003]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:14 [16:42:14.004]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:14 [16:42:14.014]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:14 [16:42:14.015]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:14 [16:42:14.023]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:14 [16:42:14.024]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:14 [16:42:14.035]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:14 [16:42:14.036]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:14
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
16:42:14 ConnectionSampler
16:42:14 getPeer
16:42:14
✓ returns a random peer from the list (49 ms)
16:42:14
✓ returns undefined if no peers are available (8 ms)
16:42:14
✓ attempts to find peer with no active connections (12 ms)
16:42:14
✓ should not sample a peer that is being excluded (10 ms)
16:42:14 connection management
16:42:14
✓ correctly tracks active connections (11 ms)
16:42:14
✓ handles multiple connections to same peer (9 ms)
16:42:14
✓ handles errors during connection close (5 ms)
16:42:14
✓ does not accidentally close a stream for another peer (6 ms)
16:42:14 cleanup
16:42:14
✓ cleans up stale connections (606 ms)
16:42:14
✓ properly cleans up on stop (9 ms)
16:42:14 samplePeersBatch
16:42:14
✓ should only return samples as many peers as available (14 ms)
16:42:14
✓ prioritizes peers without active connections (11 ms)
16:42:14
✓ falls back to peers with connections when needed (27 ms)
16:42:14
✓ handles case when all peers have active connections (14 ms)
16:42:14
✓ handles case when fewer peers available than requested (10 ms)
16:42:14
✓ handles case when no peers available (11 ms)
16:42:14
✓ returns exactly the number of peers requested when available (9 ms)
16:42:14
16:42:14
Test Suites: 1 passed, 1 total
16:42:14
Tests: 17 passed, 17 total
16:42:14
Snapshots: 0 total
16:42:14
Time: 1.435 s
16:42:14
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
16:42:14
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?