Parent Log:
http://ci.aztec-labs.com/b325d16c0a95c660
Command: 4f771e618b80a60c: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/991b313d676f7cf820bb62a33e57cf5a4c8cf9cf
Env: REF_NAME=gh-readonly-queue/next/pr-15075-af42fafbeb7d6a4440329d9e9e5b1df459fa2e2e CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 16:02:03 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15075_amd64_x2-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
16:02:03 +++ id -u
16:02:04 +++ id -g
16:02:04 ++ 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:02:04 + cid=cbe27e1b07189b529b386a5032ca7428243d3afdb055de3ab24eac9e47433c1d
16:02:04 + set +x
16:02:06 [16:02:06.040]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.045]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06 [16:02:06.052]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.053]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06 [16:02:06.060]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.061]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06 [16:02:06.067]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.068]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06 [16:02:06.075]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.076]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06 [16:02:06.086]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.087]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06 [16:02:06.094]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.094]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06 [16:02:06.099]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.099]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06 [16:02:06.706]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.707]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06 [16:02:06.715]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.715]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06 [16:02:06.716]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.716]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06 [16:02:06.729]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.729]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06 [16:02:06.758]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.759]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06 [16:02:06.780]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.780]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06 [16:02:06.798]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.799]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06 [16:02:06.811]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.811]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06 [16:02:06.821]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.825]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06 [16:02:06.836]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:02:06 [16:02:06.837]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:02:06
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
16:02:06 ConnectionSampler
16:02:06 getPeer
16:02:06
✓ returns a random peer from the list (48 ms)
16:02:06
✓ returns undefined if no peers are available (6 ms)
16:02:06
✓ attempts to find peer with no active connections (8 ms)
16:02:06
✓ should not sample a peer that is being excluded (6 ms)
16:02:06 connection management
16:02:06
✓ correctly tracks active connections (8 ms)
16:02:06
✓ handles multiple connections to same peer (10 ms)
16:02:06
✓ handles errors during connection close (6 ms)
16:02:06
✓ does not accidentally close a stream for another peer (5 ms)
16:02:06 cleanup
16:02:06
✓ cleans up stale connections (607 ms)
16:02:06
✓ properly cleans up on stop (9 ms)
16:02:06 samplePeersBatch
16:02:06
✓ should only return samples as many peers as available (13 ms)
16:02:06
✓ prioritizes peers without active connections (29 ms)
16:02:06
✓ falls back to peers with connections when needed (22 ms)
16:02:06
✓ handles case when all peers have active connections (18 ms)
16:02:06
✓ handles case when fewer peers available than requested (12 ms)
16:02:06
✓ handles case when no peers available (13 ms)
16:02:06
✓ returns exactly the number of peers requested when available (12 ms)
16:02:06
16:02:06
Test Suites: 1 passed, 1 total
16:02:06
Tests: 17 passed, 17 total
16:02:06
Snapshots: 0 total
16:02:06
Time: 1.441 s
16:02:06
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
16:02:06
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?