- TestStalledEarlierTicketIsSkipped: instead of passing within 700 ms of
the start, no attempt passes before the skip time and the first attempt
begun after it passes (a 50 ms allowance for the skip judge's clock);
the attempts' start times are printed. A loaded host's late polls no
longer fail it (1.155 s seen on CI).
- TestUrgentProceedsPastAStalledProbe: the admission runs with an outer
bound of ten hold waits (a block behind the probe would never return)
and must take at least its hold wait, instead of at most hold wait +
300 ms (1.153 s seen on CI).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The harness already copies each failed test's full daemon logs to
SWBLOCK_TEST_LOG_DIR (keepFullLog), but the workflow never set it and
uploaded nothing, so a failure's evidence was lost with the runner's
temp directory. Set the directory and upload it, with every shard's
JSON, log and status, as an artifact on failure (14 days).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TestOneStalledTicketCostsOneSkipNotEveryHandoff bounded each hand-off's
idle gap at a fixed 200 ms, which a loaded runner exceeded (295 ms). A
hand-off that paid the stalled ticket's skip idles at least the skip
window, so that is the bound now; the failure prints every gap.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tick-floored payload sum was an unexported field of ChunkCutStats, so
the layer statistics grew a field the cut body does not mirror (the
mirror test counts every field). The cut now keeps the sum locally and
hands it to samplePrecopy; ChunkCutStats is unchanged from main.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The payload time sums several intervals (staging, the copy, the upload);
three that each ended below the clock's tick read zero although together
they took up to three ticks, so one floor on the sum overstated the rate.
Each interval now adds at least one tick to an unexported floored sum
that the rate divides by; the reported payload time is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
samplePrecopy recorded a rate only when the round's payload time was
nonzero, so a round whose upload ended below the clock's resolution gave
no rate, and three such rounds left the estimate "samples_unknown". The
payload time is now floored at the coarsest clock resolution (1 ms): the
rate of a fast round is a lower bound, never missing or infinite.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main's HEAD-generation source guard allows a generation comparison only in
conditional updates and noteSettled's deduplication. The two report paths
added here compared generations before calling noteSettled; they now call
it and let it drop a report of an unchanged generation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With neither --memory-limit-mib nor GOMEMLIMIT, a cgroup v2 limit that
cannot be derived (a membership outside the cgroup2 mount of the holder's
mount namespace, an unreadable or malformed memory.max) is the no-limit
case: the holder keeps the 256 MiB default and starts, instead of exiting
2. applyMemoryLimit, run once logging is configured, logs one level=WARN
line naming the derivation's error and the two ways to choose a limit, and
status reports the reason in Memory.SoftLimitFallback (empty otherwise).
Only an explicit but invalid limit still refuses.
Docs: the flag's help, the operator guide's memory section, the status
schema and the v1.1 notes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflict: core/frontend/durable/provider_chunk.go imports only (main
dropped math/rand/v2; this branch's EachSegment fallback uses math).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A holder whose cgroup v2 limit cannot be derived (its membership is
outside the cgroup2 mount of its mount namespace, or memory.max is
unreadable), with neither --memory-limit-mib nor GOMEMLIMIT, must start
on the 256 MiB default and record why (fails: exit 2 on the derivation
error). An explicit but invalid flag still refuses.
- Applying that limit must log exactly one WARN naming the reason and the
two ways to choose a limit, and status must report the reason; a derived
limit logs nothing (fails: no WARN, status empty).
- Seams: flags.memoryLimitFallback, applyMemoryLimit (now called after
logging is configured), ProcessMemoryStatus.SoftLimitFallback,
volume.SetSoftLimitFallback / SoftLimitFallback.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HEAD's version followed the manifest size: a v1.1 commit by change over a
HEAD without a recorded size (an upgraded volume's first cut) left it at
version 0, a HEAD a v1.0 binary would read. A v1.1 commit now writes
version 1 whatever it knows of the size (CommitRequest.V11, set by the
layout remote on the v1.1 format), and a version-0 HEAD carrying a v1.1
manifest size is refused like one carrying ext.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>