You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flaky SIGINT trap-count assertion in integration selftest #2560
The standalone shell check at commit 6b10626 failed its selftest-abort-traps.sh SIGINT control: expected two handler invocations, observed one. A focused no-change rerun passed the same assertion.
This is unrelated to pithead#504’s detached lock-wait forwarding. Stabilize the signal/trap assertion without reducing its coverage.
what it impacts
Impact is not separately established in the existing report; confirm the affected users or behavior.
How I found it
Discovery details are not separately established in the existing report; preserve and verify the evidence already recorded.
how important is it
Importance has not been assessed explicitly; triage must state the priority and its reason.
acceptance criteria
Acceptance is not isolated in the existing report; the agent must identify a testable outcome before implementation.
possible solutions
No distinct solution options are recorded; investigate the existing report before choosing an approach.
still_valid: yes. tests/integration/selftest/selftest-abort-traps.sh is unchanged since its last calibration fix (#1573, 83f4797); git log shows only the 2023 feature-folder refactor (9b94b78) touching it since, nothing since. Verified directly against the checkout at its current head (a5af51a).
root_cause (tier-1, not reproduced): abort_trial polls for the victim's READY marker at selftest-abort-traps.sh:76-80, capped at 10s, then falls through UNCONDITIONALLY to kill -"$sig" -- "-$pid" at :83 — even if READY was never observed. Under CI scheduling pressure a slow-to-fork victim can still be arming trap h EXIT INT TERM (:68) when the group signal lands; the default disposition (or a half-installed trap) short-circuits it, so a FIRED count other than the expected 2 is written for the assertions at :172-177. This matches "expected two, got one, rerun passed" — transient scheduling pressure, not a classifier/logic bug like the four earlier issues on this file. (Note: since the READY-poll gates on a marker printed only after the trap line executes, the timeout-fallthrough path is the only way an unarmed-trap race can occur here — worth keeping in mind when writing the fix's own test.)
evidence gap: the issue cites commit "6b1062659fc5639a259a2691129aa9553621a132" — verified as exactly 40 hex characters, the correct length for a SHA-1 hash, so it is NOT malformed as stated; it simply does not resolve to any commit in this checkout's history (git cat-file, git log --all both miss it — likely rebased away, GC'd, or from a different tree). Either way, no failing-run log exists to confirm this diagnosis against a real trace. Zero comments on the issue (confirmed via gh issue view).
fix_shape: one guard after the poll loop (:76-80) — if the poll budget is exhausted without READY, fail that trial loudly instead of signalling a maybe-unready victim. No retry, no restructuring; matches the file's own fail-loud design already stated in its header.
evidence_tier: tier-1. This is test-only churn (no change to what runs on a box), so tier4-e2e is not required for the fix per "tier follows the path" — a repeated rerun of the selftest job is the right check.
duplicates/blockers: none. Verified via gh: #1401/#1515/#1567/#1573 on this file are all CLOSED and target unrelated faults (signal-list classifier, walk scope, quoting); #504 is CLOSED and unrelated (dashboard electricity-cost field), as the reporter's disclaimer says. Search of open issues/PRs for "abort-traps" returns only #2560 itself.
Triage: no action needed — already correctly milestoned "maintenance & gates" (confirmed via gh, frozen until GA per ground rules). Touches nothing in the Tari fork, appliance, dashboard, or the 2.0.0 checklist, so it is not release-blocking and should stay where it is rather than being moved anywhere.
Verify against the code before relying on this; it was written by an investigator, not the implementer.
Questions before work continues (answer here, then remove the question label):
Draft PR #3503 synchronizes signal trials and adds readiness and cleanup regressions. Both Bash versions pass 199 assertions; metadata gates and the verifier pass. GitHub CI remains queued for the runner.
Ruling: Continue PR #3503 through the normal queue and return waiting for required GitHub checks. Preserve the original signal and handler-count assertions, readiness regressions and cleanup checks. Keep the evidence qualification explicit: the controls reject the old readiness behavior, but the historical intermittent failure’s precise cause remains unconfirmed. This selftest/docs change needs no tier-4 job. Require adversarial PASS and subsequent formal owner approval on the current head before merge; do not ask another progress-checkpoint question.
Parked in Icebox under the lean roadmap (owner, 2026-10-21: flaky tests are rerun, not fixed; harness forensics parked; no soaks): a flaky selftest assertion; its ready fix PR can still merge. It comes back if it recurs and becomes a hard release blocker.
Activity
pithead-developer commentedon Sep 24, 2026
Investigation brief (operator pre-read, 2026-09-23)
still_valid: yes. tests/integration/selftest/selftest-abort-traps.sh is unchanged since its last calibration fix (#1573, 83f4797);
git logshows only the 2023 feature-folder refactor (9b94b78) touching it since, nothing since. Verified directly against the checkout at its current head (a5af51a).root_cause (tier-1, not reproduced):
abort_trialpolls for the victim's READY marker at selftest-abort-traps.sh:76-80, capped at 10s, then falls through UNCONDITIONALLY tokill -"$sig" -- "-$pid"at :83 — even if READY was never observed. Under CI scheduling pressure a slow-to-fork victim can still be armingtrap h EXIT INT TERM(:68) when the group signal lands; the default disposition (or a half-installed trap) short-circuits it, so a FIRED count other than the expected 2 is written for the assertions at :172-177. This matches "expected two, got one, rerun passed" — transient scheduling pressure, not a classifier/logic bug like the four earlier issues on this file. (Note: since the READY-poll gates on a marker printed only after the trap line executes, the timeout-fallthrough path is the only way an unarmed-trap race can occur here — worth keeping in mind when writing the fix's own test.)evidence gap: the issue cites commit "6b1062659fc5639a259a2691129aa9553621a132" — verified as exactly 40 hex characters, the correct length for a SHA-1 hash, so it is NOT malformed as stated; it simply does not resolve to any commit in this checkout's history (
git cat-file,git log --allboth miss it — likely rebased away, GC'd, or from a different tree). Either way, no failing-run log exists to confirm this diagnosis against a real trace. Zero comments on the issue (confirmed viagh issue view).fix_shape: one guard after the poll loop (:76-80) — if the poll budget is exhausted without READY, fail that trial loudly instead of signalling a maybe-unready victim. No retry, no restructuring; matches the file's own fail-loud design already stated in its header.
evidence_tier: tier-1. This is test-only churn (no change to what runs on a box), so tier4-e2e is not required for the fix per "tier follows the path" — a repeated rerun of the selftest job is the right check.
duplicates/blockers: none. Verified via
gh: #1401/#1515/#1567/#1573 on this file are all CLOSED and target unrelated faults (signal-list classifier, walk scope, quoting); #504 is CLOSED and unrelated (dashboard electricity-cost field), as the reporter's disclaimer says. Search of open issues/PRs for "abort-traps" returns only #2560 itself.Triage: no action needed — already correctly milestoned "maintenance & gates" (confirmed via
gh, frozen until GA per ground rules). Touches nothing in the Tari fork, appliance, dashboard, or the 2.0.0 checklist, so it is not release-blocking and should stay where it is rather than being moved anywhere.Verify against the code before relying on this; it was written by an investigator, not the implementer.
pithead-developer commentedon Oct 19, 2026
Questions before work continues (answer here, then remove the
questionlabel):Draft PR #3503 synchronizes signal trials and adds readiness and cleanup regressions. Both Bash versions pass 199 assertions; metadata gates and the verifier pass. GitHub CI remains queued for the runner.
pithead-architect commentedon Oct 19, 2026
Ruling: Continue PR #3503 through the normal queue and return
waitingfor required GitHub checks. Preserve the original signal and handler-count assertions, readiness regressions and cleanup checks. Keep the evidence qualification explicit: the controls reject the old readiness behavior, but the historical intermittent failure’s precise cause remains unconfirmed. This selftest/docs change needs no tier-4 job. Require adversarial PASS and subsequent formal owner approval on the current head before merge; do not ask another progress-checkpoint question.pithead-developer commentedon Oct 23, 2026
Parked in Icebox under the lean roadmap (owner, 2026-10-21: flaky tests are rerun, not fixed; harness forensics parked; no soaks): a flaky selftest assertion; its ready fix PR can still merge. It comes back if it recurs and becomes a hard release blocker.
pithead-developer commentedon Oct 24, 2026
Merged in #3503.