Repository navigation
Description
Update 2026-11-26 (infra move): item 1 moves to dan-petty/homelab.
- Step 17 removes the
seaweedfsrule here, and.github/renovate.jsonof homelab has no such rule. Item 1 is a follow-up issue. - This issue keeps items 2 and 3.
Follow-up: dan-petty/homelab#316.
Problem
PR #7195 (for #7189) merged with three review points open. main still has them at 681c6c3.
- (Moved to dan-petty/homelab, follow-up issue)
.github/renovate.json, ruleseaweedfs: the note says to pinspec.imagebefore the merge, but the rule no longer sets"automerge": false. After the Dependency Dashboard approval, automerge can merge before a person does that step. No step that the review found makes Renovate wait for it.k8s/README.mdsays that Renovate merges after these steps. .github/workflows/release.yml, step "Request review on the release pull request": theproutput of release-please has nouserand norequested_reviewersfield (src/pull-request.tsof release-please). Soauthoris always empty andhas_revieweris alwaysfalse, and the step requests the review on each update of the release pull request.src/devops_cli/roadmap/steps/open.py,_handle_new_pull:request_pull_reviewershas no error handling. If GitHub refuses the reviewer (for example, an organization as repository owner), the step stops after it creates the pull request. Labels and marks are then not written. This is a latent case.
Expected
- The SeaweedFS update cannot merge without the
spec.imagepin, or the note andk8s/README.mdno longer ask for a step before the merge. - The release workflow reads the reviewers from a source that holds them, or has no guard that never skips.
- A refused review request does not stop the labels and the marks of a new pull request (test first).
Alternatives check of 2026-11-25: none.
Tool: none found.
Reason: Searches surfaced only the tools already in play, Renovate and release-please; no open tool covers the three internal fixes: a Renovate rule guard, a reviewer source for the release workflow, and error handling in the project's own pull-request step.
Lacks:
- No guard that holds automerge until the image tag is pinned
- No author or requested reviewers in release-please pull request outputs
- No error handling when GitHub refuses a review request
- The reviewer source and the labels/marks step are project code
Proposed design
Problem statement
PR #7195 (for #7189) merged with three review points open. Item 1, the .github/renovate.json rule seaweedfs, is not in this repository and moves to dan-petty/homelab#316, so this issue keeps item 2 and item 3. Item 2: the step Request review on the release pull request of .github/workflows/release.yml reads .user.login and .requested_reviewers from the release-please pr output, which holds neither, so author is always empty, has_reviewer is always false, and the step requests the review on each update of the release pull request. Item 3: _handle_new_pull in src/devops_cli/roadmap/steps/open.py lets a refused request_pull_reviewers call stop the step, so the labels and the marks of the new pull request are not written. The change fixes both items.
Acceptance criteria
Requirement: The release workflow passes actionlint and zizmor
The changed release workflow SHALL pass the actionlint and zizmor checks.
Scenario: Validator run on the changed workflow
- WHEN
uv run devops ci --check --only actionlint,zizmorruns on the changed.github/workflows/release.yml - THEN the command exits 0 and reports no finding on the workflow
Requirement: The review guard reads the pull request from the GitHub API
The step Request review on the release pull request SHALL read the author and the requested reviewers from the GitHub REST pull request object, not from the release-please pr output.
Scenario: Live run of the release workflow
- WHEN a push to
mainafter the merge updates the release pull request, and the live checkgh run view <run-id> --logreads the run of.github/workflows/release.yml - THEN the step reads
gh api repos/$REPOSITORY/pulls/$numberand skips the review request whendan-pettyis already inrequested_reviewers, and requests it only whendan-pettyis absent
Requirement: A refused review request does not stop the labels and the marks
The _handle_new_pull step SHALL write the labels and the marks of a new pull request even when GitHub refuses a review request.
Scenario: GitHub refuses the review request
- WHEN a test in
tests/roadmap/steps/test_roadmap_step_open.pyreplacesrequest_pull_reviewerswith a function that raisesGitHubOperationError - THEN the test asserts that the label write and the
stage.prmark of the new pull request happen and that the step returnscreated
Existing Tool Considered
The GitHub CLI (gh), the open, maintained tool the workflow already uses, covers the workflow half of the need: gh api repos/$REPOSITORY/pulls/$number returns the pull request object whose .user.login and .requested_reviewers the guard reads, and gh pr edit <number> --add-reviewer <login> sends the request. The step already calls gh api for the review request (.github/workflows/release.yml:94) and gh pr merge (.github/workflows/release.yml:76), and gh pr view --json is already used in .github/workflows/pr-title.yml:116. The alternatives check of 2026-11-25 (block in the issue body) found no tool that covers the item as a whole, and gh covers no part of item 3: the change adds a try/except GitHubOperationError around the project's own request_pull_reviewers call in _handle_new_pull, about 5 lines that mirror the labels write at src/devops_cli/roadmap/steps/open.py:433, so the build-and-keep cost is a few hundred tokens and minutes of work.
Key questions
- Which field of the release-please
proutput holds the requested reviewers?: None. Theproutput is the release-please pull request object (number,title,body,headBranchName,baseBranchName,labels,draft), not a GitHub API pull request, so it holds nouserand norequested_reviewers. The step'sjq -r '.user.login // empty'therefore gives an emptyauthorand its[.requested_reviewers[]?.login] | index($r) != nullgiveshas_reviewer=falseon every run (.github/workflows/release.yml:90), so the guard never skips. [sources: .github/workflows/release.yml:90] - Does item 1 stay in this issue?: No.
.github/renovate.jsonof this repository holds noseaweedfsrule, so the guard item has no code here; the issue body records the move todan-petty/homelab#316. This issue keeps item 2 and item 3. [sources: .github/renovate.json] - Which source holds the requested reviewers of a release pull request?: The GitHub REST pull request object. One read,
gh api "repos/$REPOSITORY/pulls/$number", holds both.user.login(the author) and.requested_reviewers[].login(the requested reviewers), so the step keeps one read shape and the same two fields thatCreatedPullparses from a pull request payload (src/devops_cli/github/client.py:242). The release App token already holdspermission-pull-requests: writeand the step already usesgh api(.github/workflows/release.yml:94). (best practice) [sources: src/devops_cli/github/client.py:242, .github/workflows/release.yml:94]- Chosen: Read the pull request with
gh api(one REST read). The pull request object holds.user.loginand.requested_reviewers, the two fields the guard needs, and the project parses the same two fields from a pull request payload inCreatedPull(src/devops_cli/github/client.py:242); the step already usesgh api. - Rejected: Read the dedicated
GET .../pulls/{number}/requested_reviewersendpoint plus a second read for the author. Two reads for what one pull request object holds; the dedicated endpoint answersusersandteams. - Rejected: Read
gh pr view <number> --json author,reviewRequests. It works, but the step already reads and writes throughgh apiand jq, and the project's own parse of a pull request payload uses.user.loginand.requested_reviewers. - Rejected: Read the release-please
proutput. The output holds nouserand norequested_reviewers, so the guard never skips. - Rejected: Remove the guard and request the review on each update. The step would request the review on every update, which is the defect the review found.
- Chosen: Read the pull request with
- What should
_handle_new_pulldo whenrequest_pull_reviewersfails?: CatchGitHubOperationError(every refusal, scope error and unauthenticated error subclasses it:src/devops_cli/exceptions/git.py:171,src/devops_cli/exceptions/git.py:213), log a warning, and continue to the labels and the marks. This mirrors the labels write two lines below, which already catches(GitHubOperationError, GitHubUnauthenticatedError)and logs (src/devops_cli/roadmap/steps/open.py:433). (best practice) [sources: src/devops_cli/roadmap/steps/open.py:433, src/devops_cli/exceptions/git.py:171]- Chosen: Catch the error, log it, continue. A refused review request is not a reason to skip the labels and the marks; the labels write already uses this pattern (
src/devops_cli/roadmap/steps/open.py:433). - Rejected: Let the error stop the step. The labels and the marks are then not written, which is the defect.
- Chosen: Catch the error, log it, continue. A refused review request is not a reason to skip the labels and the marks; the labels write already uses this pattern (
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 25, 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 (7)
Tools considered:
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.
devops-cli-service commentedon Nov 29, 2026
Released in v0.246.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.246.0
devops-cli-service commentedon Nov 29, 2026
Live since 2026-11-29 11:55 UTC