Skip to content

Test: guard the release gate so no test is unregistered and no required leg skips green #3405

Open

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

Guards exist but do not protect the release.

  • A test can exist and never run. CI caught PR fix(os): keep committed slot after config-reset firstboot #3387's new tests/stack file ("absent from every block") only because stack_blocks_audit covers tests/stack outside standalone/ (tests/stack/lib/suite-blocks.sh:7, :16). Today tests/stack/standalone/test_tor_recovery_info.sh and tests/netwatch/netwatch-selftest.sh run only under make test (Makefile:27, :39). No workflow runs make test, though docs/dev/releasing.md:385 says every PR does.
  • A required leg can skip green: without the remote-node inputs the stack phase and the rig share leg are "missing" skips (tests/os/phases/stack.sh:250, tests/os/phases/rig.sh:386-387), and tests/os/run.sh still exits 0 when any other row passed (tests/os/run.sh:301-305).
  • A fix can ship without red proof at the found SHA: that is a PR-body habit, not a check.

what it impacts

Where it runs

1: tier-1, "Shell tests (standalone suites + tooling)" (.github/workflows/shell.yml:102-103; inventory step :136-141). 2: the RC gate sets the flag on every tier4-kvm job; the selftest runs in tier-1. 3: a tier-1 pull-request job.

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-M. Seconds of runtime.

acceptance criteria

Done when

  • (1) is red on develop 17b80f9 naming at least those two files, and on a PR that sources a test instead of registering it.
  • (2) is red for a rig phase run without remote-node inputs (exit 0 today), green with them.
  • (3) is red on bodies with missing or same-SHA ids.
  • New files are registered, not sourced.

possible solutions

Test to build

  1. Registration audit, extending tests/inventory.sh: derive runner-reachable files from Makefile globs, workflow steps, tests/stack/run.sh blocks and wired --self-test callers; fail on any test or selftest file outside that set. Reviewed allowlist, a reason per entry; stale entries fail. Selftest with a seeded unregistered file per runner kind.
  2. Opt-in flag for tests/os/run.sh (and tests/integration/lib/run-safety.sh:194): exit non-zero on any "missing" skip (tests/integration/lib/skip-accounting.sh:33-40); by-design and covered still pass. Extend tests/os/selftest-skip-accounting.sh.
  3. Pull-request check for PRs closing an RC-found issue (new rc-found label): the body quotes a red job or run id at the found SHA and a green id; CI verifies the format and that the red SHA resolves and is a strict ancestor of the head. Selftest on bodies.

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 27, 2026

    @pithead-developer
    Contributor

    Blocked on #2619. Existing draft #3616 already owns #3405. Required e2e paths remain unexecuted because the Tor pregate failed; the standing operator ruling requires #2619 / PR #2622 to land before renewed proof. Preserved the implementation, posted the blocker on the PR, and ran no new tests.

    The runner resumes this issue when that one closes.

  4. added
    blocked
    on Oct 27, 2026
  5. removed
    blocked
    on Oct 27, 2026
  6. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    Filed privately (pithead-3405.md); it needs an answer there, then remove the question label.

  7. added
    question
    and removed
    question
    on Oct 27, 2026
  8. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    Blocked on #3403. Per the operator ruling, #3403 exclusively owns PR #3616 and carries #3405. Recorded the dependency on the PR; preserved the branch and started no jobs. The owning session completes validation and review, after which #3405 closes with #3403 or returns for remaining work.

    The runner resumes this issue when that one closes.

  9. added
    blocked
    on Oct 27, 2026
  10. pithead-architect commented on Nov 27, 2026

    @pithead-architect

    Release regroom (owner request, 2026-11-27): moved from v2.0.6 to v2.0.7. Test-automation chain moved to even out 2.0.6 against 2.0.7; its blockers stay earlier or equal.

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

    blockedtesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions