Repository navigation
fix(testing): clear the can't-fail scan's gating findings on main - #9257
Conversation
The planning session tests' refused and refused_ops helpers assert the refusal code, so the repo's testing layer adds them to py-pytest's assertion calls. The ended-session reopen test now asserts the session is live again and the chat after it is stored. Closes #9194 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…hange Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed No security issues found in PR #9257 at head 10e072f. The diff touches three files:
The diff contains no instruction-surface deletions, no |
|
claude-review reviewed No findings on 10e072f. I checked the three changed files against #9194's criteria and the code they depend on:
I did not run The closing issue (#9194) was readable. Its criteria are met: the |
…parser reads it Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #9194
Summary
cant-fail-scan.sh --checkexited 1 on main with 11 gating findings, so the CI gate planned in #9184 would start red. Ten were false positives and one was a real test with no assertion (owner decision Q672: clear these first).Fix
docs/conventions/testing.yamlextends thepy-pytestadapter's assertion calls withself.refused(...)andself.refused_ops(...). Both planning helpers assert the refusal code (plugins/planning/shared/tests/test_session.py:173-187). The test files are claimed bypy-pytest, notpy-unittest, because their classes subclassSessionCaserather thanTestCasedirectly. The issue named onlyrefused_ops;refusedcovers the eleventh false positive,test_an_unknown_proposal_is_not_found. No test is annotated exempt.test_the_owner_can_reopen_an_ended_sessionnow asserts that the session is live after the reopen and that the chat posted after it is stored.nonechangelog fragment for planning, since only a test changed.Verification
bash plugins/testing/skills/audit/scripts/cant-fail-scan.sh --check: exit 0, "PASS: no gating findings; 1294 test file(s) fully read."cant-fail-scan.sh --file plugins/planning/shared/tests/test_people_proposals.py: exit 0.python3 -m unittest test_session.TestSessionControls.test_the_owner_can_reopen_an_ended_session: OK; with the phase assertion inverted toended: FAILED (failures=1); restored.python3 -m unittest test_session.TestSessionControls test_people_proposals: OK.scripts/check-changelog-fragments.sh --check-required origin/main: passes in the pre-push hook.Related
#9184 (its scan step waits on this), #7581
🤖 Generated with Claude Code