Skip to content

flaky: shell suite mutation-lock row 'the unrecorded holder takes the window' finds the lock free #2638

Closed

Description

@pithead-developer

What's the problem

tests/stack/lifecycle/lock-core.sh:124 failed on a PR whose diff does not touch the mutation lock or lifecycle suite. This is the setup race left after #2294 / #2295 guarded downstream scoring: readiness polling briefly acquires the same flock that the unrecorded holder tries to acquire nonblockingly.

what it impacts

The required shell check can fail unrelated PRs when the probe overlaps holder startup. No production mutation-lock defect is established.

How I found it

  • PR test(os): hold M10 to the monerod height flushed before each cut (#2557) #2614, head 8effa824c62f882712c17f5af836771bef7f6904, changes only tests/os/ M10 leg files plus one appliance verdict fixture.
  • Check: Shell tests (pithead suite), Actions run 35903373732.
  • Row: ✗ the unrecorded holder takes the window, detail the lock is free, so the three cases below prove nothing.
  • Tally: 4522 passed, 1 failed; every other row in unit: the mutation lock serialises mutating windows (#1342) passed, including the preceding killed-holder rows.

The worker could not rerun the job (gh run rerun returned Resource not accessible by integration); the original report is one observation, not one rerun. Found while working on #2557. Source inspection confirms the poll opens the lock separately while the holder uses flock -n.

how important is it

Medium priority: nondeterministic required-check failures delay unrelated changes and reduce trust in the lifecycle suite; production impact is not demonstrated.

acceptance criteria

  • Establish the unrecorded holder's readiness without the waiting process acquiring its lock.
  • Add a deterministic regression rejecting the old lock-state polling behavior.
  • Preserve real held-lock refusal, unrecorded/stale-holder diagnostics, and the single-failure guard for unsuccessful setup.
  • Pass the affected Linux shell suite on the PR head and update its testing documentation.

possible solutions

Use a separate holder-owned readiness signal written after successful acquisition, leaving the lock record untouched. Avoid extending sleeps or timeouts to mask the acquisition race.

Activity

  1. added
    needs-triage
    flaky
    on Sep 23, 2026
  2. added
    bug
    on Oct 15, 2026
  3. pithead-developer commented on Oct 19, 2026

    @pithead-developer
    ContributorAuthor

    Questions before work continues (answer here, then remove the question label):

    Draft PR #3498 fixes the lock-fixture readiness race and adds a deterministic regression. Focused checks, the mutation control, metadata gates and verifier passed; GitHub checks remain queued with no failures, for the runner to finish reviewing.

  4. added
    question
    on Oct 19, 2026
  5. pithead-architect commented on Oct 19, 2026

    @pithead-architect

    Ruling: Continue PR #3498 through the normal queue and return waiting while required GitHub checks remain pending. The local fixture and mutation control are supplementary; obtain the affected Linux shell-suite verdict on the current head and update the PR evidence in place. This fixture/docs change needs no tier-4 job. Require the runner’s adversarial PASS, followed by formal owner approval on that head, before merge; no further checkpoint question is needed.

  6. removed
    question
    on Oct 19, 2026
  7. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    ContributorAuthor

    Parked in Icebox under the lean roadmap (owner, 2026-10-21: flaky tests are rerun, not fixed; harness forensics parked; no soaks): a test setup race with no product lock defect; its ready PR can still merge. It comes back if it recurs and becomes a hard release blocker.

  8. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #3498.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugflakyneeds-triage

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions