TestRequestArchiveKeptUnderItsSize went red on macOS CI at 50f7a8e01
(job 133136246258: "50 LISTs for 200 calls"). Any upload made while a
prune pass ran set `again`, and the pass after it mostly listed a bucket
the first had just listed, under the size: on one CPU 44 to 68 LISTs
for 200 calls, where a LIST per tenth of the size is about 39.
Now a call uploaded during a pass is held by name, and after the pass
only the ones its listing didn't have are added to the count; another
pass runs only when that brings it past the size.
Run on mote at this tree:
- go test ./internal/davsync -run TestRequestArchiveKeptUnderItsSize
-count=10 -cpu 1,4: 20 of 20 ok (32-34 LISTs on one CPU, 39 on four).
On the old code the same run was red 5 of 8 at -cpu 1 (44-52 LISTs).
- go test ./internal/davsync -count=1: ok.
- go test ./internal/gateway -run 'Archive|Bucket' -count=3: ok;
-race over gateway and davsync's Bucket|Archive tests -count=3: ok.
- go vet ./internal/gateway: ok.
Not run: the full suite.