Skip to content

test(planning): clear main's can't-fail scan findings before it gates #9194

Closed

Description

@kyle-sexton

Refs: #7581
Refs: #7555

Summary

bash plugins/testing/skills/audit/scripts/cant-fail-scan.sh --check exits 1 on main with 11 gating findings, so #9184's gate would go red today. 10 are false positives: tests in plugins/planning/shared/tests/test_people_proposals.py (about lines 126-240) call the self.refused_ops helper, which asserts. 1 is real: test_the_owner_can_reopen_an_ended_session in plugins/planning/shared/tests/test_session.py (about lines 3110-3114) makes three calls and asserts nothing. Owner decision Q672 (2026-10-22): clear these first, in this issue.

Fix

  • Add refused_ops to the Python adapter's assertion calls through the extend key in docs/conventions/testing.yaml (the scan reads that layer, cant-fail-scan.sh:145-150). If a bare method name does not match self.refused_ops(, find the form that does; never annotate the tests as exempt, since the helper does assert.
  • Give test_the_owner_can_reopen_an_ended_session a real assertion on the reopened session's state.

Verification

  • bash plugins/testing/skills/audit/scripts/cant-fail-scan.sh --check exits 0 on the PR head.
  • cant-fail-scan.sh --file plugins/planning/shared/tests/test_people_proposals.py exits 0.
  • The changed planning test passes, and fails if its new assertion is inverted.

Related

#9184 (blocked by this), #7597, #7581

Activity

  1. added
    needs-triage
    on Oct 22, 2026
  2. github-actions commented on Oct 22, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; a maintainer confirms or changes it.

    Understood: the can't-fail scan (cant-fail-scan.sh --check) currently exits 1 on main with 11 findings. Ten are false positives because the refused_ops helper isn't recognised as an assertion. One is a real test, test_the_owner_can_reopen_an_ended_session, that asserts nothing. The proposed fix is to register refused_ops through the extend key in docs/conventions/testing.yaml, and to add a real assertion to that one test. This unblocks #9184. The issue is clear and has verification steps, so nothing is missing. I found no likely duplicates among the open issues.

    Automated triage. A maintainer reviews it.

  3. added and removed
    needs-triage
    on Oct 22, 2026
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

    No labels
    No labels

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions