Skip to content

Random error in the prune remote step #4198

@VDVsx

Description

@VDVsx

Description

We have several workflows running on a 6-hour schedule that have been working without issues for months using peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 action.
Recently, we started to observe random failures across all of them, usually not more than one failure per day(1 out of 4 fails). These seem to be completely random. In all the cases I checked, there was no pull request open with the same branch name, nor would the action create a pull request(no change).

The error always occurs in the Checking the base repository state step. We have seen two different cases:

Most common:

Checking the base repository state
  /usr/bin/git symbolic-ref HEAD --short
  master
  Working base is branch 'master'
  /usr/bin/git remote prune origin
  remote: Repository not found.
  fatal: repository 'https://github.com/REDACTED' not found
  Error: The process '/usr/bin/git' failed with exit code 128

Less common:

Checking the base repository state
  /usr/bin/git symbolic-ref HEAD --short
  master
  Working base is branch 'master'
  /usr/bin/git remote prune origin
  error: RPC failed; HTTP 404 curl 22 The requested URL returned error: 404
  fatal: expected flush after ref listing
  Error: The process '/usr/bin/git' failed with exit code 128

Extra details

All our workflows run on self-hosted runners, as described above it may or may not create pull requests, depending on changes in another system.

Our action configuration:

- name: Create Pull Request
        id: create-pull-request
        uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
        with:
          title: REDACTED
          body: REDACTED
          commit-message: REDACTED
          base: ${{ github.event.repository.default_branch }}
          branch: REDACTED
          token: ${{ steps.app-token.outputs.token }}
          sign-commits: true

If you need more details or logs, happy to provide.

P.S.: Thanks a lot for your amazing work in all the GH actions you provide to the community.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions