Skip to content

test(ci): pre-board guard lane is red on six unlisted skips in live_service_probe_test once the leak guard passes #21389

Closed

Description

@mrveiss

Problem

With the sys.modules leak guard no longer failing the lane's shards (fix in PR #21388 for #15169), a run of the pre-board guard lane on that branch had all six guard shards and the types job green — 18982 tests executed against a floor of 16255, 0 failed — and the lane's verdict was still red, for one reason:

lane problem: 6 skipped test(s) are not on the reviewed skip allowlist

All six are in one file, autobot_shared/live_service_probe_test.py:

Skip reason reported Tests
"the backend API is not listening on — this test drives a live service" TestRequireLiveEndpoint::test_skips_with_a_reason_naming_the_service_and_endpoint
"live-service tests run only with AUTOBOT_LIVE_TESTS=1 (#19479)" TestRequireLiveEndpoint::test_a_listening_service_is_not_consent[None], [0], [false], []
"the knowledge base needs a real Redis client, but … is the backend conftest's socket-free stand-in — tracked as #14932" TestRedisClientIsStubbed::test_require_real_redis_client_skips_only_under_the_stand_in

These were not seen when the allowlist was built from -rs evidence, because the leak guard was ending those shards red before the skip accounting mattered. The lane is doing its job (an unlisted skip is red); what is missing is the review of these six.

Two things need judging, not just listing:

  1. These tests are about the skip helpers. A test whose subject calls pytest.skip should assert that the helper skips (e.g. with pytest.raises(pytest.skip.Exception)) and then PASS — if instead the helper's skip propagates and marks the test itself skipped, the test asserts nothing and belongs with the silent guards in ci: guard tests that skip on every CI run — the rule they enforce is never checked #21371, not on an allowlist.
  2. Only if a skip is genuinely by design in every CI context does it get an allowlist entry with its class and reason.

Acceptance criteria

Parent: #21359. Related: #21371 (guard tests that skip on every CI run), #15169 (the leak that hid this).

Activity

  1. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

    Landed via the merge train (#21394, merge 923b9e902e) via #21388

  2. mrveiss commented on Nov 12, 2026

    @mrveiss
    OwnerAuthor

    Fixed in #21388, landed via merge train #21394 (merge commit 923b9e902e), checked 2026-11-12 (Riga).

    Guard-lane run on main: https://github.com/mrveiss/AutoBot-AI/actions/runs/43280952189 (head 923b9e902e, completed 2026-11-12 21:07 Riga, conclusion success). Result job lines: ## Pre-board guard lane: green_with_skips; | guards (18989 executed, floor 16255, 0 failed, 53 skipped) | success_with_skips |; Skips by class: covered-by-suite-only 6, equivalent-to-suite 47, unreviewed 0.; overall=green_with_skips; behind_base=0. All six guards shard N/6 jobs and types concluded success.

    AC Status Evidence
    Each of the six tests classified: fixed to execute and assert, or allowlisted met, all six class (a) autobot_shared/live_service_probe_test.py now uses pytest.raises(pytest.skip.Exception) at lines 157 (the 4 test_a_listening_service_is_not_consent cases), 162 (test_skips_with_a_reason_naming_the_service_and_endpoint) and 200 (test_require_real_redis_client_skips_only_under_the_stand_in), so they execute and assert the reason text. grep -c live_service_probe pipeline-scripts/preboard_guard_lane_skips.py = 0: no allowlist entry. The run's unreviewed 0 confirms none of them is a skip.
    Guard-lane run on main ends green or green_with_skips met Run link above: green_with_skips
    Allowlist regression test covers new entries, if any met (vacuous) No entries were added

    All ACs delivered: closing.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions