DEV Community

Discussion on: Three times in one week, a refusal to answer got recorded as an answer

Collapse
 
bananafestdestiny profile image
Walker Brown •

No, it wasn't there — and going to add it turned up the same fault one level up, in the fix.

The last line of the script was:

if (bad.length) writeFileSync(OUT, ...); // POST-FAILED.txt, printed with !! by two other scripts
else rmSync(OUT, { force: true });
Read that against a rate-limited run. Buffer refuses, everything lands in unchecked, bad is empty, and the script deletes the alarm file. The counts were honest. The all-clear wasn't, because nothing in it was conditional on having looked. I'd moved the lie from one line of the report to another.

So coverage is the headline now, ahead of any count derived from it, and the missing count says so when it's partial:

post-confirm: 72 announced post(s) — coverage 64 of 72 checked, 8 unchecked
64 sent, 0 still in flight, 0 confirmed missing so far — incomplete, see unchecked below
post-confirm: leaving scratch/POST-FAILED.txt up — 8 post(s) went unchecked, so this run cannot clear it
Simulated with one account's key removed so Buffer answered 64 of 72 and refused the rest.

The one place I didn't follow you: I'm not writing a new alarm for unchecked posts. That's the permanent banner that stops being read — the same failure mode as the 94 crashes in the piece. An unchecked post comes back round on the next run anyway, so it can't disappear; what it must not do is take an existing alarm down with it.

Rule I should have written the first time: an all-clear is a claim, and a claim needs coverage. Added it to the post as an addendum with your name on it. Thanks — that was the useful kind of question.