~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

Two runs of the gates fail under the runner's load: a port taken between the harness choosing it and the server listening, and a span not exported before the spans check gives up

Open
Open chadtmiller.com opened this issue 0 comments

Both in one run of gates on a pull (3n25dt62arysq at 97a6ffb), 2 of 22 runs, with store-bench-small running on the runner beside it. The same commit's --limits run passes alone, on another machine.

A port already in use

FAIL     5s  node compare.mjs --steps 400 --seed 4 -- ../target/release/pds serve
the server exited before it was ready ({"code":1,"signal":null})
pds: listening on 127.0.0.1 port 39845: Address already in use (os error 98)

The harness finds a free port and gives it to the server, and between the two another of the 22 runs' processes took it. A run that fails so could be started again on another port, since nothing of the server was checked; or the server could be given port 0 and asked what it listens on.

A span the receiver never had

FAIL   172s  node compare.mjs --limits -- ../target/release/pds serve
step 0 (seed 1): the server's spans differs: spec/OPERATIONS.md
request: GET /xrpc/com.atproto.server.describeServer, traceparent 00-121d178189a79ea14e7c5cd979e468cf-3e8c189919596b10-01, 200
reference: "one SERVER span in the request's trace"
server: "none, of the 25721 spans the receiver has from 415 exports"
(node) TimeoutNegativeWarning: -55 is a negative number.

harness/checks/operations.mjs's spans check waited to its deadline (the timeout it then computed was negative) for a sampled request's span, and the receiver had 25721 others. Either the export was still behind when the wait ended, or the span was dropped from the server's queue, which spec/OPERATIONS.md lets it do when the queue is full: the check would then have to count what the server says it dropped (pds_spans_dropped_total, if that is its name) before it holds every sampled request to a span.