Skip to content

fix(github): close review points of the #7195 reviewer change #7209

Done

Description

@dan-petty

Update 2026-11-26 (infra move): item 1 moves to dan-petty/homelab.

  • Step 17 removes the seaweedfs rule here, and .github/renovate.json of 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.

  1. (Moved to dan-petty/homelab, follow-up issue) .github/renovate.json, rule seaweedfs: the note says to pin spec.image before 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.md says that Renovate merges after these steps.
  2. .github/workflows/release.yml, step "Request review on the release pull request": the pr output of release-please has no user and no requested_reviewers field (src/pull-request.ts of release-please). So author is always empty and has_reviewer is always false, and the step requests the review on each update of the release pull request.
  3. src/devops_cli/roadmap/steps/open.py, _handle_new_pull: request_pull_reviewers has 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.image pin, or the note and k8s/README.md no 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,zizmor runs 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 main after the merge updates the release pull request, and the live check gh run view <run-id> --log reads the run of .github/workflows/release.yml
  • THEN the step reads gh api repos/$REPOSITORY/pulls/$number and skips the review request when dan-petty is already in requested_reviewers, and requests it only when dan-petty is 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.py replaces request_pull_reviewers with a function that raises GitHubOperationError
  • THEN the test asserts that the label write and the stage.pr mark of the new pull request happen and that the step returns created

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 pr output holds the requested reviewers?: None. The pr output is the release-please pull request object (number, title, body, headBranchName, baseBranchName, labels, draft), not a GitHub API pull request, so it holds no user and no requested_reviewers. The step's jq -r '.user.login // empty' therefore gives an empty author and its [.requested_reviewers[]?.login] | index($r) != null gives has_reviewer=false on 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.json of this repository holds no seaweedfs rule, so the guard item has no code here; the issue body records the move to dan-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 that CreatedPull parses from a pull request payload (src/devops_cli/github/client.py:242). The release App token already holds permission-pull-requests: write and the step already uses gh 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.login and .requested_reviewers, the two fields the guard needs, and the project parses the same two fields from a pull request payload in CreatedPull (src/devops_cli/github/client.py:242); the step already uses gh api.
    • Rejected: Read the dedicated GET .../pulls/{number}/requested_reviewers endpoint plus a second read for the author. Two reads for what one pull request object holds; the dedicated endpoint answers users and teams.
    • Rejected: Read gh pr view <number> --json author,reviewRequests. It works, but the step already reads and writes through gh api and jq, and the project's own parse of a pull request payload uses .user.login and .requested_reviewers.
    • Rejected: Read the release-please pr output. The output holds no user and no requested_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.
  • What should _handle_new_pull do when request_pull_reviewers fails?: Catch GitHubOperationError (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.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/bug
    scope/github
    source/agent
    status/new
    value/medium
    effort/medium
    priority/p2-medium
    on Nov 25, 2026
  2. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    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:

    • release-please pull request output user requested_reviewers field missing, results: 5
    • Renovate automerge wait for manual step before merge pin image tag, results: 5
    • PyGithub create_review_request 422 error handling pull request reviewer, results: 5
    • renovate bot documentation automerge dependencyDashboardApproval packageRules, results: 5
    • release-please github action outputs pull request number user reviewers, results: 5
    • renovate configuration reference automerge packageRules documentation, results: 5
    • github action request reviewers on release please pull request CODEOWNERS, results: 5

    Sources:

  3. added
    status/ready
    and removed
    status/new
    on Nov 28, 2026
  4. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See the section Proposed design of the body.

  5. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 29, 2026
  6. removed
    status/in-review
    owner/agent
    on Nov 29, 2026
  7. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-29 11:55 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/githubsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions