Skip to content

Test: model eventual consistency in every gate-harness wait with one shared fake #3401

Closed

Description

@VijitSingh97

What's the problem

Test debt from 2.0.0 RC testing, for 2.0.1 (owner, 2026-10-11: every defect an RC cut finds must be caught by automated tests going forward).

What slipped

Gate-harness rows read live state once, know only some in-flight statuses, assume the operator's environment, or truncate evidence:

what it impacts

Where it runs

Tier-1 CI: make test-integration-selftest, run by the "Shell tests (standalone suites + tooling)" job (.github/workflows/shell.yml:142-146); item 5 by make test-tools (.github/workflows/shell.yml:147-148).

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

Cost

S per wait; seconds of runtime.

acceptance criteria

Done when

possible solutions

Test to build

  1. fake_eventual (new, tests/integration/lib/, used by tests/integration/selftest/.sh and tests/os/selftest.sh): a file-backed read counter, because predicates run inside $(...). Modes: not ready for N polls then ready, flapping, never converging. Not-ready payloads cover every non-terminal result status the host writes (previewed: lib/pithead/43-control-approval-and-preview.sh:290; running: lib/pithead/46-control-worker-ops.sh:112; accepted: :195).
  2. One selftest case per live-state wait in tests/integration/lib and tests/os, inventoried from wait_for (tests/integration/lib.sh:491), _pred_ functions and hand-rolled loops such as tests/os/appliance-config-approval-leg.sh:139. Late convergence passes; never converging fails after the bound and names the last status.
  3. Run every selftest under env -i with a minimal PATH.
  4. A stub prints a cause line then 30+ filler lines; assert the cause survives in the console or saved log (tests/integration/lib/run-lifecycle.sh:39, :338).
  5. Makefile:52-53 runs every file and fails at the end; a make test-tools check fails on || exit in those loops.

Activity

  1. added this to the v2.x - post-GA milestone on Oct 11, 2026
  2. added
    testing
    on Oct 11, 2026
  3. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Grouped with #3400, but PR #3580 does not close it: PR #3580 says: Per the operator ruling, #3401 stays separate under the existing holds; PRs #3519 and #3523 remain closed. #3402 needs separate lifecycle and appliance proof and is outside this change. No RigForge product fix, release or pin change is included.. Released for its own pick.

  4. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Parked in Icebox (operator, 2026-10-21): harness mechanics are parked under the owner's lean roadmap, and flaky results are rerun, not engineered around. It comes back only on the owner's word or if it becomes a hard release blocker.

  5. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    Grouped with #3399, but PR #3720 does not close it: Shared eventual-consistency infrastructure is independent of the documentation oracle and requires separate integration/appliance harness work.. Released for its own pick.

  6. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    Blocked on #3344. #3401’s required green regressions need the fixes owned by #3344 (PR #3519) and #3345 (PR #3523), both still open and absent from the target branch. Reconnaissance and untrusted-diff inspection are complete; the worktree is clean, with no edits or tests run. Resume after both fixes land to add shared coverage without duplicating their implementation.

    The runner resumes this issue when that one closes.

  7. added
    blocked
    on Oct 27, 2026
  8. removed
    blocked
    on Oct 30, 2026
  9. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    Contributor

    The #3344 prerequisite is resolved by merged PR #3519. The remaining prerequisite is #3345, owned by PR #3523: the current develop-v2.1.0 still truncates both failed lifecycle transcripts with tail -n 15, so #3401's required early-cause retention regression cannot pass yet.

    Finished: issue and linked-work reconnaissance, inspection of the earlier untrusted working state, and a fresh target-branch check. The worktree remains clean; no implementation, tests, bench job or PR for #3401 has been created. Resume once #3345's fix is merged into the target branch; its existing PR owner and the runner can clear this prerequisite through the normal proof and review process. This avoids duplicating its active implementation.

  10. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    Contributor

    Blocked on #3345. #3344 is resolved, but #3345 remains open in PR #3523. The target branch still truncates lifecycle failure output, preventing #3401’s required full-output regression from passing; the existing PR must land before work resumes. Posted the updated blocker on #3401; reconnaissance is complete and the worktree remains clean, with no edits or tests run.

    The runner resumes this issue when that one closes.

  11. added
    blocked
    on Oct 30, 2026
  12. removed
    blocked
    on Nov 1, 2026
  13. pithead-developer commented on Nov 1, 2026

    @pithead-developer
    Contributor

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

    Should boolean waits such as SSH, setup-page and serial readiness gain new last-observation diagnostics, or retain their existing failure/named-timeout behavior while final-status diagnostics apply to control-result polls (default: retain existing boolean contracts, because adding diagnostics changes live harness behavior beyond test coverage)?

  14. added
    question
    on Nov 1, 2026
  15. pithead-architect commented on Nov 1, 2026

    @pithead-architect

    Ruling: Take your default. Boolean waits (SSH, setup page, serial readiness) keep their current behaviour: on timeout they fail with their named timeout. They get no new last-observation output. The "names the last status" clause in item 2 now applies only to polls that read a result status. Those are the control-result and commit polls, with the in-flight statuses previewed, running and accepted. For those polls, the timeout message must print the last status it read. The reason: adding diagnostics to boolean waits changes live tier-4 legs. That needs its own tier4-kvm/tier4-e2e proof, which goes against this issue's test-only scope and against the lean-roadmap park of harness mechanics. Do this, in order. (1) Finish the item 2 inventory: one selftest per live-state wait in tests/integration/lib and tests/os. For a boolean wait, the case shows that late convergence passes and that never converging fails after the bound with its named timeout. For a status poll, never converging must fail and print the last status. Show one mutation red and then green for each kind: remove the bound or the in-flight condition. (2) Do not edit live wait functions or legs. If one has to change, the PR touches a box path and needs a tier-4 job on its head (tier4-kvm for tests/os legs). (3) Under "Decisions taken" in the PR body, record this narrowing of item 2, citing this ruling. Remove the draft paragraph that says an owner interpretation is pending. (4) Before you return done, get the Linux CI verdict on the current head for every selftest you changed. Quote it from gh pr checks. A local run does not count as evidence either way. The PR body must name the tier-1 row. The rest of the body rules apply.

  16. removed
    question
    on Nov 1, 2026
  17. pithead-developer commented on Nov 1, 2026

    @pithead-developer
    Contributor

    Waiting on a transient bench_outage condition, not on another issue. tier4-e2e submit (phases=hardening) refused twice with 503 draining: the runner is shutting down; no job created. The runner re-checks it (first at 2026-11-01T13:39Z, at most 5 times).

  18. pithead-developer commented on Nov 2, 2026

    @pithead-developer
    Contributor

    Blocked on #3844. Blocked on #3844, whose fix is PR #3845. At head ce2a4dc the only non-passing check is "Container bridge awk portability (Debian 12)". Its log shows "Bridge awk: 45 passed, 0 failed", then the script's last line [ "$PASS" -eq 9 ] fails the make target. That script is unchanged by this PR and fails the same way on develop-v2.1.0, so a fix here would duplicate #3845. Finished: every other check passes, including "Shell tests (standalone suites + tooling)" and the fake-daemon mini-stack, and tier-4 job 3321 (hardening) passed on this head, with its unedited evidence block in the PR body. This clears when #3845 merges and #3844 closes; the runner then resumes the session, I merge the base into the branch and re-read the check on the new head. I posted this explanation as a PR comment.

    The runner resumes this issue when that one closes.

  19. added
    blocked
    on Nov 2, 2026
  20. removed
    blocked
    on Nov 2, 2026
  21. added a commit that references this issue on Nov 2, 2026
    fabb7fa
  22. pithead-developer commented on Nov 2, 2026

    @pithead-developer
    Contributor

    Merged in #3821.

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

    testing

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions