Parent Log:
http://ci.aztec-labs.com/96e3fbaf87d764c6
Command: bdb887914394d73a: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/47c749527b1c3cce3edd9defedc46e89ea00c69e
Env: REF_NAME=gh-readonly-queue/next/pr-15009-00cd67e98e76d3202a0219baf301d59ef4211872 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Fri Jun 13 15:54:16 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15009_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
15:54:16 +++ id -u
15:54:16 +++ id -g
15:54: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:54:16 + cid=f1d6d3e9f2962d9a33a1f5fc8493abffc0a003d9ddf3962fe916bbc11d46c1f0
15:54:16 + set +x
15:54:18 [15:54:18.065]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:54:18 [15:54:18.073]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:54:18 [15:54:18.086]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:54:18 [15:54:18.086]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:54:18 [15:54:18.097]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:54:18 [15:54:18.099]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:54:18 [15:54:18.112]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:54:18 [15:54:18.113]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:54:18 [15:54:18.126]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:54:18 [15:54:18.127]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:54:18 [15:54:18.136]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:54:18 [15:54:18.137]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:54:18 [15:54:18.179]
ERROR:
p2p:reqresp:connection-sampler Failed to close connection to peer with stream id 1: Error: Failed to close
15:54:18 at Object.<anonymous> (/home/aztec-dev/aztec-packages/yarn-project/p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts:136:66)
15:54:18 at /home/aztec-dev/aztec-packages/yarn-project/node_modules/jest-mock/build/index.js:397:39
15:54:18 at Object.<anonymous> (/home/aztec-dev/aztec-packages/yarn-project/node_modules/jest-mock/build/index.js:404:13)
15:54:18 at Object.mockConstructor [as close] (/home/aztec-dev/aztec-packages/yarn-project/node_modules/jest-mock/build/index.js:148:19)
15:54:18 at ConnectionSampler.close (/home/aztec-dev/aztec-packages/yarn-project/p2p/src/services/reqresp/connection-sampler/connection_sampler.ts:258:21)
15:54:18 at Object.close (/home/aztec-dev/aztec-packages/yarn-project/p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts:142:21)
15:54:18 [15:54:18.181]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:54:18 [15:54:18.181]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:54:18 [15:54:18.793]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:54:18 [15:54:18.793]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:54:18 [15:54:18.803]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:54:18 [15:54:18.804]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:54:18 [15:54:18.805]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:54:18 [15:54:18.806]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:54:18 [15:54:18.823]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:54:18 [15:54:18.823]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:54:18 [15:54:18.839]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:54:18 [15:54:18.841]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:54:18 [15:54:18.860]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:54:18 [15:54:18.861]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:54:18 [15:54:18.884]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:54:18 [15:54:18.885]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:54:18 [15:54:18.901]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:54:18 [15:54:18.901]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:54:18 [15:54:18.916]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:54:18 [15:54:18.916]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:54:18 [15:54:18.929]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:54:18 [15:54:18.930]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:54:18
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
15:54:18 ConnectionSampler
15:54:18 getPeer
15:54:18
✓ returns a random peer from the list (137 ms)
15:54:18
✓ returns undefined if no peers are available (10 ms)
15:54:18
✓ attempts to find peer with no active connections (13 ms)
15:54:18
✓ should not sample a peer that is being excluded (12 ms)
15:54:18 connection management
15:54:18
✓ correctly tracks active connections (14 ms)
15:54:18
✓ handles multiple connections to same peer (9 ms)
15:54:18
✓ handles errors during connection close (44 ms)
15:54:18 cleanup
15:54:18
✓ cleans up stale connections (612 ms)
15:54:18
✓ properly cleans up on stop (12 ms)
15:54:18 samplePeersBatch
15:54:18
✓ should only return samples as many peers as available (17 ms)
15:54:18
✓ prioritizes peers without active connections (16 ms)
15:54:18
✓ falls back to peers with connections when needed (20 ms)
15:54:18
✓ handles case when all peers have active connections (23 ms)
15:54:18
✓ handles case when fewer peers available than requested (16 ms)
15:54:18
✓ handles case when no peers available (15 ms)
15:54:18
✓ returns exactly the number of peers requested when available (13 ms)
15:54:18
15:54:18
Test Suites: 1 passed, 1 total
15:54:18
Tests: 16 passed, 16 total
15:54:18
Snapshots: 0 total
15:54:18
Time: 1.535 s
15:54:18
Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i
.
15:54:18
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?