Parent Log:
http://ci.aztec-labs.com/70098e3969a404f8
Command: 4d0fb449c606d482: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/263498dd65e8700218979d7a94dbfd25b2a8a8a8
Env: REF_NAME=gh-readonly-queue/next/pr-14921-4b0e4dc09fa55f0bc808fa0c7c3e95e8fa997069 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Tue Jun 17 20:35:36 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14921_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
20:35:36 +++ id -u
20:35:36 +++ id -g
20:35:36 ++ 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'\'''
20:35:36 + cid=fb12d86372e29aa90d9e59366b7b9f50d47f095c5f042194ec3eda9053f4d82e
20:35:36 + set +x
20:35:38 [20:35:38.617]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:38 [20:35:38.623]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:38 [20:35:38.634]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:38 [20:35:38.635]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:38 [20:35:38.645]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:38 [20:35:38.647]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:38 [20:35:38.655]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:38 [20:35:38.656]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:38 [20:35:38.665]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:38 [20:35:38.666]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:38 [20:35:38.674]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:38 [20:35:38.675]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:38 [20:35:38.682]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:38 [20:35:38.683]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:38 [20:35:38.691]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:38 [20:35:38.692]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:39 [20:35:39.300]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:39 [20:35:39.301]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:39 [20:35:39.313]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:39 [20:35:39.314]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:39 [20:35:39.316]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:39 [20:35:39.316]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:39 [20:35:39.334]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:39 [20:35:39.335]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:39 [20:35:39.350]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:39 [20:35:39.351]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:39 [20:35:39.365]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:39 [20:35:39.365]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:39 [20:35:39.381]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:39 [20:35:39.382]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:39 [20:35:39.393]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:39 [20:35:39.393]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:39 [20:35:39.402]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:39 [20:35:39.403]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:39 [20:35:39.423]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:35:39 [20:35:39.423]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:35:39
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
20:35:39 ConnectionSampler
20:35:39 getPeer
20:35:39
✓ returns a random peer from the list (58 ms)
20:35:39
✓ returns undefined if no peers are available (10 ms)
20:35:39
✓ attempts to find peer with no active connections (11 ms)
20:35:39
✓ should not sample a peer that is being excluded (8 ms)
20:35:39 connection management
20:35:39
✓ correctly tracks active connections (9 ms)
20:35:39
✓ handles multiple connections to same peer (8 ms)
20:35:39
✓ handles errors during connection close (7 ms)
20:35:39
✓ does not accidentally close a stream for another peer (8 ms)
20:35:39 cleanup
20:35:39
✓ cleans up stale connections (608 ms)
20:35:39
✓ properly cleans up on stop (15 ms)
20:35:39 samplePeersBatch
20:35:39
✓ should only return samples as many peers as available (18 ms)
20:35:39
✓ prioritizes peers without active connections (16 ms)
20:35:39
✓ falls back to peers with connections when needed (13 ms)
20:35:39
✓ handles case when all peers have active connections (17 ms)
20:35:39
✓ handles case when fewer peers available than requested (11 ms)
20:35:39
✓ handles case when no peers available (9 ms)
20:35:39
✓ returns exactly the number of peers requested when available (21 ms)
20:35:39
20:35:39
Test Suites: 1 passed, 1 total
20:35:39
Tests: 17 passed, 17 total
20:35:39
Snapshots: 0 total
20:35:39
Time: 1.622 s
20:35:39
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
20:35:39
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?