Skip to content

Pin-bump workflows push their branch but cannot open the PR #4677

In progress

Description

@pithead-architect

What's the problem

The scheduled pin-bump workflows on develop find a newer upstream, push a bot/… branch with the bump, and then fail at gh pr create:

pull request create failed: GraphQL: GitHub Actions is not permitted to create or approve pull requests (createPullRequest)

The repository's workflow permissions read default_workflow_permissions: read and can_approve_pull_request_reviews: false, so the GITHUB_TOKEN cannot open the pull request each workflow exists to open. The bump branches sit on the remote, and nobody is told.

What it impacts

  • Tor, in practice: develop's tor image no longer builds. build/tor/Dockerfile pins tor=0.4.9.17-r0, and Alpine 3.24 now carries only 0.4.9.18-r0, so apk add fails with unable to select packages … breaks: world[tor=0.4.9.17-r0].
    • The required "Build image (tor)" check is red on every PR into develop. Every tier-4 KVM job and every e2e job built from develop fails at the image build.
    • The bump that would have fixed it is on bot/tor-0.4.9.18-r0, commit 67b6f6a.
  • xmrig-proxy: v6.27.0 is waiting on bot/xmrig-proxy-v6.27.0.
  • Monero: its job failed at the same step, "Push the bump and open its PR". I did not read that job's log.
  • rigforge: this job fails earlier, at "Resolve the newest release and its hash". That is a separate cause, not investigated here.

How I found it

  • Tor pin bump, run 47277897071 (2026-12-04 05:59Z): detect printed CURRENT: 0.4.9.17-r0, LATEST: 0.4.9.18-r0, BRANCH: 3.24. It pushed bot/tor-0.4.9.18-r0, then the error above.
  • Shipped pin bump, run 47280710673 (06:21Z): same error for xmrig-proxy (v6.26.0 → v6.27.0); the Monero job failed at the same step.
  • History: Tor pin bump failed on 12-03 and 12-04. Its runs on 11-30 and 12-01 succeeded. I did not check whether they found a bump, so it is not established whether opening a PR ever worked.
  • Downstream symptom: a tier-4 KVM provision job on a pithead PR head failed in 16 s at the tor image's apk add. That PR doesn't touch the tor image.

How important is it

High. It breaks every image build of develop today, and it hides upstream security bumps behind a silent failure. Without a fix, the next upstream drop breaks the build again with no warning.

Acceptance criteria

  • A pin-bump run that finds a newer upstream ends with an open pull request, or with a failure that notifies someone. It never stops silently after pushing the branch.
  • develop's tor image builds again with the pin Alpine carries. That fix may land through another PR; link it here.
  • The stale bot/… branches are each turned into a pull request or deleted once superseded.

Possible solutions

  • Allow the token to open PRs: the owner turns on "Allow GitHub Actions to create and approve pull requests" in the repository's Actions settings. It is a repository security setting, so it is the owner's call.
  • Open the PR as the developer App: keep the setting off and have the workflows open the PR with a GitHub App token, for example actions/create-github-app-token with an App key stored as a secret. That needs a secret the workflows don't have today.
  • Fail loudly: keep the push, replace gh pr create with an issue comment or a failure notice, and let the developer pipeline open the PR from the branch.

Models: claude-opus-5-5 (driver)

Activity

  1. added this to the v2.0.5 milestone on Dec 4, 2026
  2. pithead-architect commented on Dec 4, 2026

    @pithead-architect
    Author

    Owner decision (2026-12-04): option 2, opening the PRs as the developer App.

    • Repository setting: "Allow GitHub Actions to create and approve pull requests" stays off.
    • How: the bump jobs mint a short-lived App token with actions/create-github-app-token, scoped to this repository with contents and pull-requests write. They use it for the push, the PR and the supersede-close.
      • Pushes and PRs made with the App token also trigger CI on the bump PR. Ones made with github.token did not.
    • Setup: done by the owner, before the workflow change merges.
      • A pin-bump environment, restricted to develop, holds the App id variable and a dedicated private key of the App as a secret.
      • The key is a second key, revocable on its own.
      • Branch pushes and dispatches on other refs never receive it.
    • Failure: the workflow fails loudly, before pushing, when the setting is missing.
    • Superseded: the stale bot/tor-0.4.9.18-r0 branch is superseded by the tor pin commit in Twenty-nine fixes for 2.0.5 in one pull request, one commit each #4668. The xmrig-proxy and Monero bumps come back as PRs on the first run after the fix.

    Models: claude-opus-5-5 (driver)

  3. pithead-developer commented on Dec 4, 2026

    @pithead-developer
    Contributor

    Waiting on a transient bench_outage condition, not on another issue. the runner could not read the bench to confirm that no job still runs on the PR head (<urlopen error [Errno 111] Connection refused>). The runner re-checks it (first at 2026-12-04T17:23Z, at most 5 times).

  4. pithead-developer commented on Dec 4, 2026

    @pithead-developer
    Contributor

    Waiting on a transient bench_capacity condition, not on another issue. tier4-e2e job 4888 preflight: hugepages 1256 free < 1296 needed. The runner re-checks it (first at 2026-12-04T19:00Z, at most 5 times).

  5. pithead-developer commented on Dec 4, 2026

    @pithead-developer
    Contributor

    Blocked on p2pool-starter-stack/bench-ci#2905. Blocked on bench-ci#2905. Resubmitted tier4-e2e job 4894 on head 8a8d8bc errored at preflight with hugepages: 1256 free < 1296 needed, exactly as job 4888 did. The run step was skipped, so no row exercised the branch. That is a bench shortfall, not a branch failure. The branch is unchanged and tiers 1 to 3 are green. I added both jobs as evidence on #2905 and commented on PR #4678. When #2905 closes, resubmit the same targeted tier4-e2e (--new-attempt) and paste the unedited evidence block into the PR.

    The runner resumes this issue when that one closes.

  6. added
    blocked
    on Dec 4, 2026
  7. pithead-developer commented on Dec 4, 2026

    @pithead-developer
    Contributor

    The tor part of this issue (develop's tor image no longer builds) is fixed by #4683, which pins 0.4.9.18-r0. It is in review. This issue stays open for its own cause: the pin-bump workflows can't open their pull request. I dropped the tor clause from the title so the two aren't confused.

    Models: claude-opus-5-5 (operator)

  8. changed the title [-]Pin-bump workflows push their branch but cannot open the PR; develop's tor image no longer builds[/-] [+]Pin-bump workflows push their branch but cannot open the PR[/+] on Dec 4, 2026
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

    blocked

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions