Merge Backlog::IssueShow::CommandFailed into Backlog::TrackerCommandFailed #1038
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
rule-proposal
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#1038
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Two exception classes mean one failure, "the tracker command failed".
IssueShowrescuesTrackerCommandFailedand re-raisesIssueShow::CommandFailedwith the same message, so the CLI must rescue each class by name.Observed
Evidence (plugins/os-backlog): lib/backlog/issue_show/command_failed.rb:5; lib/backlog/tracker_command_failed.rb:4; lib/backlog/issue_show.rb:27-28, 47-48 (rescue and re-raise), 34, 43, 54 (raise); lib/backlog/cli_command_wiring.rb:40 rescues
IssueShow::CommandFailed, six other rescues there useTrackerCommandFailed; tests/issue_show_forgejo_test.rb:17. Rulings R4, follow-up 1.Reproduce
n/a: structural duplication found in a crc-refactor tuning run; no runtime command reproduces it.
Acceptance criteria
TrackerCommandFailedand the two re-raise blocks are gone; cli_command_wiring.rb:40 rescuesTrackerCommandFailed; the test asserts the merged class; grep forIssueShow::CommandFailedis empty; os-backlog tests and lint pass.Skeptic: VERDICT: CREATE — the duplication is real and ruling R4 deferred the merge as a follow-up.
Origin