Repository navigation
Description
Problem Description
#7337 makes four rows leave out an item that is no issue of the repository now (alternatives, the Status passes of implement, the stage planner and prepare, plan drift), and a delivery transferred or deleted drops the record at once. When that delivery does not arrive, these rows still fail one round for such an item, because a set_marks, a comment read or a report of a Job raises for it:
| Row | Call (under src/devops_cli/) |
Note |
|---|---|---|
| implement | roadmap/implement/implement_submit.py:241, :543, :579, :588; roadmap/implement/implement.py:303 |
:241 raises a builtin LookupError and repeats while the Job exists |
| stage | roadmap/return_item.py:62, then _record_failures in roadmap/stage/stage.py; roadmap/stage/stage_submit.py:322 |
return_item raises a bare DevOpsCLIError |
| watch | roadmap/watch_row.py:636, :909 |
|
| open | roadmap/steps/open.py:299, :309 |
|
| refine | roadmap/refine/refine.py:3355 |
|
| retitle | roadmap/retitle.py:379, :381 |
|
| fix-plan | roadmap/steps/fix_plan.py:1335 |
|
| intake | roadmap/intake/intake.py:917 |
GraphQL read; it drops no record, so it can repeat |
| metrics | github/metrics.py:589, :593 |
no failure; one round has no item ages |
Two more points from the review of #7337:
- The plan drift handler (
roadmap/stage/plan_drift.py) catchesGitHubNotFoundError, which is wider than "the issue left". No row closes a plan pull request whose issue left the repository, so it gets one warning in each round. - No test covers a 301 of the read of the repository name in
GitHubClient.
The line numbers are from the head 3b69e57ea of #7352.
Expected vs Actual Behavior
- Expected: each row leaves such an item out with one log line, gives it no failure class and no failure mark, and goes on with its other items.
- Actual: the rows above fail one round for each such item (the store then drops the record), and the two marked calls can repeat.
Proposed Fix
Handle GitHubNotAnIssueError for the item in each row, with one test for each row. Give the two calls that raise a builtin or a bare error class the class of the store. Narrow the plan drift handler, and decide which row closes an orphan plan pull request.
Acceptance Criteria
- One test for each row of the table: a round with one such item and one other item ends with success, and the other item is done.
-
implement_submit.pyandreturn_item.pyraise no builtin and no bare error class for such an item. - The intake read drops the record of such a number.
- A plan pull request whose issue left the repository is closed, or named one time for a person.
Environment Diagnostics
devops-cli 0.223.3 with #7352.
Dependencies
Alternatives check of 2026-11-27: none.
Tool: none found.
Reason: Searches for a library that handles issues that left a repository (typed not-an-issue errors, skipping records, redirects) returned nothing relevant; the need is internal error handling in this project's own roadmap rows, so no external tool covers it.
Lacks:
- No library raises the project's typed not-an-issue error per row
- No library skips one bad item and continues the round
- No library decides which row closes an orphan plan pull request
- No library makes the client follow a 301 on the repository name read
Proposed design
Problem statement
A row of the roadmap fails one round when an item left the repository and its transferred or deleted delivery did not arrive. The rows implement, stage, watch, open, refine, retitle, fix-plan, intake and metrics must leave such an item out with one log line and continue with their other items. Two calls raise a builtin class or a bare error class. The plan drift handler catches a class that is too wide and closes no orphan plan pull request. No test covers a 301 of the read of the repository name.
Acceptance criteria
Requirement: Implement row skips an item that left
The implement row SHALL leave out an item that left the repository with one log line, no failure class and no failure mark, and SHALL continue with its other items.
Scenario: Implement round with one item that left
- WHEN The implement row runs with the fake store
tests/support/fakes/roadmap_store.py, which raisesGitHubNotAnIssueErrorfor one item and returns one other item. - THEN The round succeeds, writes one log line for the item that left, writes no failure class and no failure mark, and completes the other item.
Requirement: Stage row skips an item that left
The stage row SHALL leave out an item that left the repository with one log line, no failure class and no failure mark, and SHALL continue with its other items.
Scenario: Stage round with one item that left
- WHEN The stage row runs with the fake store
tests/support/fakes/roadmap_store.py, which raisesGitHubNotAnIssueErrorfor one item and returns one other item. - THEN The round succeeds, writes one log line for the item that left, writes no failure class and no failure mark, and completes the other item.
Requirement: Watch row skips an item that left
The watch row SHALL leave out an item that left the repository with one log line, no failure class and no failure mark, and SHALL continue with its other items.
Scenario: Watch round with one item that left
- WHEN The watch row runs with the fake store
tests/support/fakes/roadmap_store.py, which raisesGitHubNotAnIssueErrorfor one item and returns one other item. - THEN The round succeeds, writes one log line for the item that left, writes no failure class and no failure mark, and completes the other item.
Requirement: Open row skips an item that left
The open row SHALL leave out an item that left the repository with one log line, no failure class and no failure mark, and SHALL continue with its other items.
Scenario: Open round with one item that left
- WHEN The open row runs with the fake store
tests/support/fakes/roadmap_store.py, which raisesGitHubNotAnIssueErrorfor one item and returns one other item. - THEN The round succeeds, writes one log line for the item that left, writes no failure class and no failure mark, and completes the other item.
Requirement: Refine row skips an item that left
The refine row SHALL leave out an item that left the repository with one log line, no failure class and no failure mark, and SHALL continue with its other items.
Scenario: Refine round with one item that left
- WHEN The refine row runs with the fake store
tests/support/fakes/roadmap_store.py, which raisesGitHubNotAnIssueErrorfor one item and returns one other item. - THEN The round succeeds, writes one log line for the item that left, writes no failure class and no failure mark, and completes the other item.
Requirement: Retitle row skips an item that left
The retitle row SHALL leave out an item that left the repository with one log line, no failure class and no failure mark, and SHALL continue with its other items.
Scenario: Retitle round with one item that left
- WHEN The retitle row runs with the fake store
tests/support/fakes/roadmap_store.py, which raisesGitHubNotAnIssueErrorfor one item and returns one other item. - THEN The round succeeds, writes one log line for the item that left, writes no failure class and no failure mark, and completes the other item.
Requirement: Fix-plan row skips an item that left
The fix-plan row SHALL leave out an item that left the repository with one log line, no failure class and no failure mark, and SHALL continue with its other items.
Scenario: Fix-plan round with one item that left
- WHEN The fix-plan row runs with the fake store
tests/support/fakes/roadmap_store.py, which raisesGitHubNotAnIssueErrorfor one item and returns one other item. - THEN The round succeeds, writes one log line for the item that left, writes no failure class and no failure mark, and completes the other item.
Requirement: Intake read drops a record that is no issue
The intake read SHALL drop the record of a number that is no issue, SHALL write one log line, and SHALL continue with its other records.
Scenario: Intake read with one number that is no issue
- WHEN The intake read at
src/devops_cli/roadmap/intake/intake.py:917getsGitHubNotAnIssueErrorfor one number and returns one other record. - THEN The read drops the record of that number, writes one log line, and returns the other record.
Requirement: Metrics omits the age of an item that left
The metrics row SHALL omit the age of an item that left the repository without a failure and SHALL continue with its other items.
Scenario: Metrics round with one item that left
- WHEN The metrics row reads the item ages and the store raises
GitHubNotAnIssueErrorfor one item. - THEN The row succeeds, writes one log line, reports no age for that item, and reports the ages of the other items.
Requirement: Error class for an item that left
The submit call of implement_submit.py and the return call of return_item.py MUST raise GitHubNotAnIssueError for an item that left, not LookupError and not a bare DevOpsCLIError.
Scenario: An item that left reaches the submit and return calls
- WHEN The store reports an item as no issue to
implement_submit.pyand toreturn_item.py. - THEN Each call raises
GitHubNotAnIssueError, and no call raisesLookupErroror a bareDevOpsCLIError.
Requirement: Plan drift catches only an item that left
The plan drift handler SHALL catch GitHubNotAnIssueError and SHALL NOT treat another GitHubNotFoundError as an item that left.
Scenario: Plan drift sees a missing object that is not an issue
- WHEN Plan drift receives
GitHubNotFoundErrorfor a missing object that is not an issue. - THEN The handler closes no pull request, writes no log line that the issue left, and the
GitHubNotFoundErrorpropagates.
Requirement: Stage row closes an orphan plan pull request
The stage row SHALL close a plan pull request whose issue left the repository and SHALL write one log line.
Scenario: Plan drift finds a plan pull request whose issue left
- WHEN Plan drift receives
GitHubNotAnIssueErrorfor a plan pull request whose issue left. - THEN The stage row closes that pull request and writes one log line.
Requirement: Repository name read follows a 301
A test MUST cover a 301 answer of the read of the repository name, and GitHubClient MUST return the name at the redirect target.
Scenario: Repository name read gets a 301
- WHEN
GitHubClientreads the repository name and the fake session answers 301 to a new location. - THEN The client follows the redirect, returns the repository name at the new location, and the test passes.
Existing Tool Considered
The alternatives check of 2026-11-27 in the issue body gives the verdict none and names no tool. The block of that check lists what no library does for this need. The change uses the existing GitHubNotAnIssueError class and the existing rows of the roadmap, so it builds no new tool. The written cost of the code is about 25k tokens and 3 hours to write, keep and fix the catch of each row and its test.
Key questions
- Which error class marks an item that left the repository?:
GitHubNotAnIssueErrormarks an item that left the repository. It extendsGitHubNotFoundError, the store raises it for a number that is no issue, and each row catches it for that item. [sources: src/devops_cli/exceptions/git.py:140, src/devops_cli/exceptions/git.py:125, openspec/specs/roadmap-store-issue-read/spec.md, docs/CLUSTER.md] - Should each roadmap row catch
GitHubNotAnIssueErrorand continue with its other items?: Yes. Each row catchesGitHubNotAnIssueErrorfor the item, writes one log line, gives no failure class or mark, and continues with its other items. (best practice) [sources: docs/CLUSTER.md, src/devops_cli/exceptions/git.py:140, openspec/specs/roadmap-store-issue-read/spec.md]- Chosen: Catch the item in each row. Each row owns its item loop and can leave out only the item that left.
- Rejected: Fail the round. The row must continue with its other items.
- Rejected: Catch all
GitHubNotFoundError. It is wider than an item that left and hides another missing object.
- Should
implement_submit.pyandreturn_item.pyraiseGitHubNotAnIssueErrorfor an item that left?: Yes. Both calls raiseGitHubNotAnIssueErrorinstead of a builtinLookupErroror a bareDevOpsCLIError. (best practice) [sources: src/devops_cli/roadmap/implement/implement_submit.py:241, src/devops_cli/roadmap/return_item.py:62, src/devops_cli/exceptions/git.py:140]- Chosen: Raise
GitHubNotAnIssueError. It is the typed store class that names an item that left and lets the row handle it. - Rejected: Keep the builtin
LookupError. It is not a typed store error and repeats while the Job exists. - Rejected: Raise a bare
DevOpsCLIError. It gives the row no class that says the item left.
- Chosen: Raise
- Should the plan drift handler catch only
GitHubNotAnIssueError?: Yes. The handler catchesGitHubNotAnIssueErrorand lets anotherGitHubNotFoundErrorstop the round. (best practice) [sources: src/devops_cli/roadmap/stage/plan_drift.py, src/devops_cli/exceptions/git.py:125, src/devops_cli/exceptions/git.py:140]- Chosen: Catch
GitHubNotAnIssueError. It names an item that left the repository. - Rejected: Catch
GitHubNotFoundError. It is wider than an item that left and hides another missing object.
- Chosen: Catch
- Which row closes a plan pull request whose issue left the repository?: The stage row closes it in the plan drift handler. The stage row owns the plan pull request and runs plan drift. (best practice) [sources: src/devops_cli/roadmap/stage/plan_drift.py, src/devops_cli/roadmap/stage/stage_submit.py, docs/CLUSTER.md]
- Chosen: Stage row. It creates and updates the plan pull request and runs plan drift.
- Rejected: Watch row. It watches pull requests but does not own the plan pull request lifecycle.
- Rejected: Implement row. It starts after the plan merges and has no plan pull request.
- Should the intake read drop the record of a number that is no issue?: Yes. The intake read catches
GitHubNotAnIssueError, drops that record, writes one log line, and continues with its other records. (best practice) [sources: src/devops_cli/roadmap/intake/intake.py:917, docs/CLUSTER.md]- Chosen: Drop the record. The record is no item and cannot be processed.
- Rejected: Retry the record. The record stays absent and repeats the failure.
- Should the metrics row omit the age of an item that left without a failure?: Yes. The metrics row omits the age, writes one log line, and reports the ages of the other items. (best practice) [sources: src/devops_cli/github/metrics.py:589, src/devops_cli/github/metrics.py:593, docs/CLUSTER.md]
- Chosen: Omit the age. The item has no age to report, and the row must continue.
- Rejected: Raise an error. The row has no failure and must report the other ages.
- What does
GitHubClientdo when the read of the repository name gets a 301?: It follows the redirect and returns the repository name at the new location. A test covers this answer. (best practice) [sources: src/devops_cli/github/client.py:554, tests/github/test_github_session.py, docs/adr/0006-github-session-requests-go-through-gidgethub.md]- Chosen: Follow the redirect and test it. HTTP 301 is a redirect for a GET, and GitHub uses it when a repository moves.
- Rejected: Treat the 301 as an error. A moved repository still has a readable name.
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 26, 2026
Rows fail one round and two calls can repeat, causing service job failures for items that left the repository.devops-cli-service commentedon Nov 27, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
devops-cli-service commentedon Nov 27, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
devops-cli-service commentedon Nov 27, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (3)
Searches run:
Sources:
devops-cli-service commentedon Nov 28, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.
test(roadmap): satisfy private-import and ignore invariants (#7363)
refactor(roadmap): deduplicate gone.require_issue guard and expand it…
devops-cli-service commentedon Nov 28, 2026
Released in v0.233.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.233.0
devops-cli-service commentedon Nov 28, 2026
Live since 2026-11-28 17:56 UTC