Repository navigation
Conversation
A contribution read that a signal aimed at the read alone stopped answered nothing, so it is unmeasured rather than a forge failure. forge() recognized only the 124 the timeout runner reports for its own cap, so a read ended by an external SIGKILL, or by TERM, INT or HUP delivered to the read and not to the poll, was recorded as an unavailable observation. read_cut_short() now asks fm-timeout-lib.sh which statuses report its bound and adds those three signal statuses. A genuine forge failure, a structural refusal, a client death outside that set such as SIGSEGV's 139, and a head change during the observation all still record an error and still wake; those are the cases the error exists for. The failing read's own words are still captured for the error and its unavailable line, unchanged from kunchenguid#6810. A read stopped at the runner's own five-second cap is not newly fixed here. Every timeout mechanism normalizes its own bound to 124, and that status was already treated as unmeasured before this change. What produced the observation-unavailable wakes seen in the field is not yet established, and is tracked separately. This change does not fix those wakes. The read-outcome contract is stated in full once, in the script header that usage() publishes; read_cut_short() and forge() carry one-line pointers at it. Tests pin both directions in one table: a read stopped by its bound or by any of 137, 143, 130 and 129 records no error and raises no wake, while a forge failure, a SIGSEGV client crash and a head change each record a named error and wake.
|
Eighteen checks green, one short — and it is the same job, with the same cause you diagnosed for us
Could you re-run that single job when convenient? We hold no push access, so we cannot re-run it Deliberately not pushing anything to clear it, for the same reason as before: a new commit would For the record, answering your two requests on #6564:
#6564 is closed and points here. Thank you for the two reviews on it — they shaped what this contains, If that job's ceiling is becoming a recurring nuisance for contributors, we would be glad to look at |
|
Speaking as Kun's firstmate: thank you @sgwoods — clear write-up, and the #6564→#7332 handoff is appreciated. Contract-class: restore. The script header already promised that a read a bound (or equivalent cut-short) stopped stays unmeasured rather than mislabeled unavailable. Treating external signal statuses 137/143/130/129 the same way as the timeout runner's 124 closes that documentation/behavior gap without silencing genuine forge failures, SIGSEGV client deaths, or mid-observation head changes. #6810's failing-step naming is preserved. VISION.md: all seven align (honest interface under load; scripts own the classification; no new default-on surface). This pass: attestation MATCHES tip Status: waiting on CI (re-run). If serial 2 (and the rest) come back green and still mergeable, this is auto-merge-eligible as restore. Nothing needed from you right now. |
|
Withdrawing this, with apologies for the churn — and leaving the work where you can take it if you Why. We cannot keep this rebased from our side at the rate your main moves. It has drifted three What the work is, for anyone reading later. It is yours if you want it. The branch is One finding worth keeping either way, unrelated to whether this lands: that 30-minute job ceiling Thank you for the reviews on this one and on #6564 before it. They were specific, they were quick, and |
Intent
bin/fm-contributions.sh pollrecords an error for a forge read that a signal aimed at the read alonestopped.
forge()recognizes only status 124 — the bound the timeout runner reports for its ownper-read cap — so a read ended by an external SIGKILL (137), or by TERM (143), INT (130) or HUP (129)
delivered to the read rather than to the poll, is recorded as an unavailable observation and raises an
observation-unavailable wake for a pull request that is open and unchanged.
A read stopped that way answered nothing, so it is unmeasured rather than a forge failure. This is a
restore rather than a new behaviour: the script header already promised that a read a bound stopped
"remains bounded and may be unmeasured, rather than being mislabeled unavailable". The behaviour and
the documentation disagreed, and the documentation was the one that was right.
The five-second cap is not what this fixes. That path was already correct: every timeout mechanism
normalizes its own bound to 124 (
fm_run_external_timeoutcollapses its own124|137, the perlwatchdog exits 124 from its handler, the bash fallback returns 124 when its deadline fired), and
forge()already treated 124 as unmeasured. On a host using the perl mechanism,fm_run_timed 1 sleep 3returns 124.
Relationship to the two changes that landed alongside this.
supported_urlandkeeping them out of final settlement and the forge-read rotation. An earlier revision of this work
carried its own fix for that; it is withdrawn entirely, with credit to fix: keep unsupported contribution URLs unmeasured #7233, together with its test,
because that test passes against current
mainwithout this change and so demonstrates nothing.exactly: the failing read's label, exit status, remaining budget and first stderr line are still
captured for genuine failures. This change only moves the signal statuses out of that category, and
the header's error-condition sentence is merged into one true statement covering a forge failure, a
structural refusal, a client death outside the bound set, and a head change.
What produced the observation-unavailable wakes seen in the field is not yet established and is
tracked separately. This change does not claim to fix them.
What Changed
read_cut_shortasksfm-timeout-lib.shwhich statuses report its own bound (124, and 137) and addsthe signal statuses 129, 130 and 143. A read matching any of them is recorded through a new
unmeasuredhelper, whichforge()also uses on its existing budget-refusal path.or a head change during the observation records an error.
usage()publishes;read_cut_shortandforge()carry one-line cross-references rather than theirown copies.
tests/fm-contributions.test.shaddstest_read_outcome_classification, which drives one read toeach distinct end and asserts opposite outcomes in the same test: the bound and signal statuses stay
unmeasured, silent, and leave the prior record byte-identical, while a forge failure, a SIGSEGV client
crash and a head change during the observation each record a named error and wake.
No other file is touched.
Testing
The signal-stopped check still holds after the rebase onto current
main:test_read_outcome_classificationplaced on the untouched upstream tree still fails on the 137 case —an unmeasured read (cut-kill) printed an unavailable wake: ... - reviews read exited 137 with 20s of budget left:— and passes with this change, so the defect is still present and #6810's ownfailing-step line confirms upstream still classifies it as a failure.
bash tests/fm-contributions.test.sh— all pass, exit 0.bin/fm-lint.sh— exit 0, with the pinned ShellCheck 0.11.0 and actionlint 1.7.12, 3 workflow filesvalid.
shellcheck -x -S styleclean on both changed files.home, with the read stopped by real SIGTERM, SIGKILL, SIGHUP and SIGINT rather than simulated
exit 13xstatuses, each compared against the base commit: the base woke, the change stayed silent,while a SIGSEGV client death and an HTTP 502 forge failure still woke. The classification code is
unchanged since those runs.
head to move mid-read would require pushing to a forge.
Replaces #6564
This replaces #6564, which is closed with a pointer here. The same change is raised on a clean branch
because the validation attestation could not be bound to that one: it had been force-pushed by hand,
which broke the pipeline's push binding, and every later attempt to re-attest was correctly refused.
The guard behaved as designed throughout. The two reviews on #6564 shaped what this contains — they
confirmed the unsupported-forge half should be withdrawn and that this remainder is a distinct defect.
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
--helpheader states the classification contract once and names client death outside the bound set as an error conditionbash tests/fm-contributions.test.sh(colocated suite including the newtest_read_outcome_classification: cut-bound/137/143/130/129 stay quiet; 139 crash, HTTP 502 failure, head change each record a named error and wake)drive-external-signals.sh <wt> fixed <wt>/bin: realpollwith the reviews read blocked insleep, an external process sends SIGKILL/TERM/INT/HUP/SEGV to that read's pid onlySame driver against the base commit a24f4cb8'sbin/(extracted withgit archiveto a temp dir and removed afterwards) to reproduce the original bugbin/fm-contributions.sh --helpto confirm the published header carries the classification contract and the corrected error-condition sentence✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.