You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(cli): swallowed failures may not grow: blind excepts, except-pass, except-continue and unread check=False are held at their ceilings #1347
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/cliCore CLI framework, Typer subcommands, options, and tablestype/testType test: a new or changed test
Agents that cannot make an item work tend to make the failure quiet instead of reporting it. In v0.2.28, #1288 added except Exception: pass and kubectl ... check=False around Argo CD patches that could not work. Nothing in devops ci notices that kind of code:
Not selected in ruff:BLE001 (blind except Exception), S110 (try/except/pass) and S112 (try/except/continue) [code: pyproject.toml, [tool.ruff.lint] select].
#423 enables BLE001 and triages every site. That is a large item and is not scheduled. This item stops the growth now, the way test_c901_suppressions_stay_under_the_ceiling does for complexity.
Acceptance criteria
A ratchet invariant counts, per file under src/:
BLE001, S110 and S112 sites, using ruff's own rules (ruff check --select ... --output-format json), not a hand-written parser;
calls passing check=False whose result is never read: no .returncode, .stdout or .stderr use, and the result is not returned. This one uses an AST check.
The ceilings are today's counts. A file over its ceiling fails with file:line and the rule. A file under its ceiling fails with the command that lowers it, so every fix also locks the gain in.
Tests cover a new blind except, a new except: pass, an unread check=False and a lowered ceiling.
changelog.d/<n>.md records the change; CHANGELOG.md and docs/ROADMAP.md are not edited.
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
Priority: P2-Medium. It stops code-quality regression from growing but does not fix a user-facing defect or security issue.
Value: Medium. It protects long-term maintainability by preventing silent failure-swallowing patterns from accumulating, but does not directly change user-facing behaviour.
Effort: Medium. Requires ruff JSON-output parsing, an AST check for unread check=False calls, per-file ceiling tracking, and tests that exercise the ratchet itself.
Linked: #1309 (same ceiling-table mechanism), #423 (lowers this item's BLE001 ceilings) and #849 (the sibling suppression ratchet). Found by the 2026-10-08 backlog review.
Admitted to v0.2.33: after v0.2.33 started, only a critical fix can join it. A person can place it in a planned release, and that placement stands. (devops roadmap reprioritize)
Acceptance Criteria of docs/agent/tasks/task-1347-swallowed-failures-ratchet.md:
A ratchet invariant counts, per file under src/:
BLE001, S110 and S112 sites, using ruff's own rules (ruff check --select ... --output-format json), not a hand-written parser;
calls passing check=False whose result is never read: no .returncode, .stdout or .stderr use, and the result is not returned. This one uses an AST check.
The ceilings are today's counts. A file over its ceiling fails with file:line and the rule. A file under its ceiling fails with the command that lowers it, so every fix also locks the gain in.
Tests cover a new blind except, a new except: pass, an unread check=False and a lowered ceiling.
changelog.d/<n>.md records the change; CHANGELOG.md and docs/ROADMAP.md are not edited.
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/cliCore CLI framework, Typer subcommands, options, and tablestype/testType test: a new or changed test
Activity
dan-petty-bot commentedon Oct 8, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
It stops code-quality regression from growing but does not fix a user-facing defect or security issue.It protects long-term maintainability by preventing silent failure-swallowing patterns from accumulating, but does not directly change user-facing behaviour.Requires ruff JSON-output parsing, an AST check for unread check=False calls, per-file ceiling tracking, and tests that exercise the ratchet itself.dan-petty commentedon Oct 8, 2026
Linked: #1309 (same ceiling-table mechanism), #423 (lowers this item's BLE001 ceilings) and #849 (the sibling suppression ratchet). Found by the 2026-10-08 backlog review.
dan-petty-bot commentedon Oct 9, 2026
Admitted to v0.2.33: after v0.2.33 started, only a critical fix can join it. A person can place it in a planned release, and that placement stands. (devops roadmap reprioritize)
test(cli): swallowed failures may not grow (#1347) (#1521)
dan-petty-bot commentedon Oct 9, 2026
What changed
#1521, merged into
release/v0.2.33as 5388ec5.5 file(s) changed.
How it was verified
Check runs at e68484a:
Acceptance Criteria of
docs/agent/tasks/task-1347-swallowed-failures-ratchet.md:src/:BLE001,S110andS112sites, using ruff's own rules (ruff check --select ... --output-format json), not a hand-written parser;check=Falsewhose result is never read: no.returncode,.stdoutor.stderruse, and the result is not returned. This one uses an AST check.except: pass, an unreadcheck=Falseand a lowered ceiling.changelog.d/<n>.mdrecords the change;CHANGELOG.mdanddocs/ROADMAP.mdare not edited.uv run devops cipasses.feat(release): v0.2.33 (#1537)