Parent Log:
http://ci.aztec-labs.com/8fef48d0e0812cd7
Command: 024e96465ffd3e9a: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/a0a8617413ca6f4fba2ad190ce73dab59bd75a45
Env: REF_NAME=gh-readonly-queue/next/pr-15101-056e5230c330d6ad19900135ecf2a4787181496a CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Tue Jun 17 14:07:27 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15101_amd64_x3-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
14:07:27 +++ id -u
14:07:27 +++ id -g
14:07:27 ++ 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'\'''
14:07:27 + cid=cc435039a940d075dea0c9addd58c449303862b1f2bd44ad7f2cfe411b1eb26d
14:07:27 + set +x
14:07:29 [14:07:29.266]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:29 [14:07:29.271]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:29 [14:07:29.281]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:29 [14:07:29.282]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:29 [14:07:29.288]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:29 [14:07:29.289]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:29 [14:07:29.295]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:29 [14:07:29.295]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:29 [14:07:29.301]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:29 [14:07:29.302]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:29 [14:07:29.308]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:29 [14:07:29.308]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:29 [14:07:29.315]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:29 [14:07:29.316]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:29 [14:07:29.324]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:29 [14:07:29.324]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:29 [14:07:29.932]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:29 [14:07:29.932]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:29 [14:07:29.942]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:29 [14:07:29.943]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:29 [14:07:29.944]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:29 [14:07:29.945]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:29 [14:07:29.962]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:29 [14:07:29.962]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:29 [14:07:29.979]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:29 [14:07:29.980]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:29 [14:07:29.994]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:29 [14:07:29.994]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:30 [14:07:30.013]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:30 [14:07:30.013]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:30 [14:07:30.027]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:30 [14:07:30.028]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:30 [14:07:30.044]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:30 [14:07:30.044]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:30 [14:07:30.057]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:07:30 [14:07:30.058]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:07:30
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
14:07:30 ConnectionSampler
14:07:30 getPeer
14:07:30
✓ returns a random peer from the list (75 ms)
14:07:30
✓ returns undefined if no peers are available (8 ms)
14:07:30
✓ attempts to find peer with no active connections (8 ms)
14:07:30
✓ should not sample a peer that is being excluded (6 ms)
14:07:30 connection management
14:07:30
✓ correctly tracks active connections (7 ms)
14:07:30
✓ handles multiple connections to same peer (6 ms)
14:07:30
✓ handles errors during connection close (7 ms)
14:07:30
✓ does not accidentally close a stream for another peer (8 ms)
14:07:30 cleanup
14:07:30
✓ cleans up stale connections (608 ms)
14:07:30
✓ properly cleans up on stop (11 ms)
14:07:30 samplePeersBatch
14:07:30
✓ should only return samples as many peers as available (17 ms)
14:07:30
✓ prioritizes peers without active connections (17 ms)
14:07:30
✓ falls back to peers with connections when needed (15 ms)
14:07:30
✓ handles case when all peers have active connections (18 ms)
14:07:30
✓ handles case when fewer peers available than requested (14 ms)
14:07:30
✓ handles case when no peers available (17 ms)
14:07:30
✓ returns exactly the number of peers requested when available (13 ms)
14:07:30
14:07:30
Test Suites: 1 passed, 1 total
14:07:30
Tests: 17 passed, 17 total
14:07:30
Snapshots: 0 total
14:07:30
Time: 1.563 s
14:07:30
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
14:07:30
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?