Parent Log:
http://ci.aztec-labs.com/64815db951c4de2c
Command: 6a9c991c4402d14c: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=0
Date: Fri Jun 13 16:00:04 UTC 2025
System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-15009_arm64_a1-fast
Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
16:00:04 +++ id -u
16:00:04 +++ id -g
16:00:04 ++ docker run -d --name p2p_src_services_reqresp_connection-sampler_connection_sampler.test.ts --net=none --cpuset-cpus=0-63 --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:00:04 + cid=69019e5a97a2d064768965dc5de483e366875fd78a8540e18e7775e48a59b3db
16:00:04 + set +x
16:00:05 [16:00:05.447]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:00:05 [16:00:05.451]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:00:05 [16:00:05.459]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:00:05 [16:00:05.459]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:00:05 [16:00:05.466]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:00:05 [16:00:05.467]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:00:05 [16:00:05.473]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:00:05 [16:00:05.474]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:00:05 [16:00:05.480]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:00:05 [16:00:05.481]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:00:05 [16:00:05.487]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:00:05 [16:00:05.487]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:00:05 [16:00:05.505]
ERROR:
p2p:reqresp:connection-sampler Failed to close connection to peer with stream id 1: Error: Failed to close
16:00:05 at Object.<anonymous> (/home/aztec-dev/aztec-packages/yarn-project/p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts:136:66)
16:00:05 at /home/aztec-dev/aztec-packages/yarn-project/node_modules/jest-mock/build/index.js:397:39
16:00:05 at Object.<anonymous> (/home/aztec-dev/aztec-packages/yarn-project/node_modules/jest-mock/build/index.js:404:13)
16:00:05 at Object.mockConstructor [as close] (/home/aztec-dev/aztec-packages/yarn-project/node_modules/jest-mock/build/index.js:148:19)
16:00:05 at ConnectionSampler.close (/home/aztec-dev/aztec-packages/yarn-project/p2p/src/services/reqresp/connection-sampler/connection_sampler.ts:258:21)
16:00:05 at Object.close (/home/aztec-dev/aztec-packages/yarn-project/p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts:142:21)
16:00:05 [16:00:05.506]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:00:05 [16:00:05.506]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:00:06 [16:00:06.112]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:00:06 [16:00:06.112]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:00:06 [16:00:06.117]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:00:06 [16:00:06.118]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:00:06 [16:00:06.118]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:00:06 [16:00:06.118]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:00:06 [16:00:06.129]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:00:06 [16:00:06.130]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:00:06 [16:00:06.141]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:00:06 [16:00:06.141]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:00:06 [16:00:06.151]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:00:06 [16:00:06.152]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:00:06 [16:00:06.163]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:00:06 [16:00:06.163]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:00:06 [16:00:06.173]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:00:06 [16:00:06.174]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:00:06 [16:00:06.183]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:00:06 [16:00:06.183]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:00:06 [16:00:06.193]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:00:06 [16:00:06.193]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:00:06
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
16:00:06 ConnectionSampler
16:00:06 getPeer
16:00:06
✓ returns a random peer from the list (46 ms)
16:00:06
✓ returns undefined if no peers are available (7 ms)
16:00:06
✓ attempts to find peer with no active connections (8 ms)
16:00:06
✓ should not sample a peer that is being excluded (6 ms)
16:00:06 connection management
16:00:06
✓ correctly tracks active connections (8 ms)
16:00:06
✓ handles multiple connections to same peer (5 ms)
16:00:06
✓ handles errors during connection close (18 ms)
16:00:06 cleanup
16:00:06
✓ cleans up stale connections (605 ms)
16:00:06
✓ properly cleans up on stop (6 ms)
16:00:06 samplePeersBatch
16:00:06
✓ should only return samples as many peers as available (11 ms)
16:00:06
✓ prioritizes peers without active connections (11 ms)
16:00:06
✓ falls back to peers with connections when needed (11 ms)
16:00:06
✓ handles case when all peers have active connections (12 ms)
16:00:06
✓ handles case when fewer peers available than requested (10 ms)
16:00:06
✓ handles case when no peers available (10 ms)
16:00:06
✓ returns exactly the number of peers requested when available (9 ms)
16:00:06
16:00:06
Test Suites: 1 passed, 1 total
16:00:06
Tests: 16 passed, 16 total
16:00:06
Snapshots: 0 total
16:00:06
Time: 1.213 s
16:00:06
Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i
.
16:00:06
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?