Repository navigation
test(os): bound the miner fastpath receipt by the trial's journal cursor (#4386) - #4552
Draft
pithead-developer[bot] wants to merge 2 commits into
Draft
pithead-developer[bot] wants to merge 2 commits into
pithead-developer[bot] wants to merge 2 commits into
Conversation
The #3375 rig row judged the fastpath restart by grepping the recovery unit's journal since a marker written after the backup call returned, so a restart recorded between the proxy recreation and that marker stayed invisible, and a red verdict carried no evidence of which case it was. The receipt now searches from a journal cursor captured before the backup request (marker window kept as fallback) and, when the restart is missing, prints the window used and the recovery unit's own restart lines so a timing miss can be told from a real defect. Co-Authored-By: Claude Code <noreply@anthropic.com>
journalctl prints its cursor as "-- cursor: <cursor>", so the capture pattern from the first commit never matched and every real trial would have silently kept the marker window. The selftest now drives the backup-ready capture through that exact shape and pins the cursor the receipt later searches from. Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's the problem
The rig row
connected rig cannot mask local miner backup recovery (#3375)failed aspithead-t3375: verdict=fastpath-restart-missing cleanup=verified recovery_failure=noon rig job 4519@8dee1a4dc86140627575d43441590f2ed4eb530d while passing on 4517@85b9ba8edafb9641d417d2f866b2b4c81e94fc51 with no code change under test — the row's own receipt was the flake.miner_fastpath_receiptgreppedpithead-miner-recovery.service's journal from--since @<backup-at>, butbackup-atis written only after the dashboard backup call returns: a fastpath line the watchdog logged between the proxy recreation (which happens inside the backup) and that marker sat outside the window the receipt searched, so a restart that really happened could read as missing — and the verdict line carried nothing that distinguished a timing miss from a real defect.How I fixed it
tests/os/appliance-miner-recovery-leg.sh: thebackup-readydispatch now also captures a journal cursor (journalctl -n 0 --show-cursor) before the backup request, andminer_fastpath_receiptsearches from that cursor with--after-cursor=— a race-free window covering the whole trial — keeping the old marker window as fallback when no cursor was captured.restarting xmriglines from the last 30 minutes, so the failure text alone tells a timing miss from a real defect.tests/os/selftest-miner-recovery.sh: the cursor is captured by running the realbackup-readydispatch against ajournalctl --show-cursorstub emitting journalctl's actual cursor-line shape, and a receipt section pins four behaviours — restart observed through the captured cursor, a restart recorded only before the cursor never credited to the trial, the marker fallback still honored, and the missing-restart diagnostics.Here is the proof
Pending: the rig-phase tier4-kvm run of this head; its
bench-ci evidenceblock will be pasted here unedited when it lands. Nothing on this diff blocks it:Build image (dashboard)is red on everydevelop-v2.1.0-based head from the debian 13.7libzstd1CVE (#4537) — a fresh CI rerun on this head reproduced the identical finding at 2026-12-02T07:34Z even though #4537 is closed, because the fix (merged on develop) still sits in the open forward-merge #4603 that must land ondevelop-v2.1.0first. When that merge is in, this branch takes base in, CI runs green, and the rig-phase submission follows.fastpath_restart=missing window=...plus the recovery unit's restart lines, pinned intests/os/selftest-miner-recovery.sh.Part of #4386
🤖 Generated with Claude Code