Skip to content

push-protected action hangs for ~2 minutes when fetching repository information #294

@Pandapip1

Description

@Pandapip1

This is fully reproducible: every invocation of https://github.com/nix-community/NUR/actions/workflows/update.yml has a ~2 minute delay after

/usr/bin/docker run --name c748ed8fe00c4314bf16aebf975318fd_4d60f7 --label 662247 --workdir /github/workspace --rm -e "NIX_PATH" -e "TMPDIR" -e "NIX_PROFILES" -e "NIX_SSL_CERT_FILE" -e "INPUT_TOKEN" -e "INPUT_BRANCH" -e "INPUT_REF" -e "INPUT_FORCE" -e "INPUT_TAGS" -e "INPUT_INTERVAL" -e "INPUT_TIMEOUT" -e "INPUT_PRE_SLEEP" -e "INPUT_POST_SLEEP" -e "INPUT_UNPROTECT_REVIEWS" -e "INPUT_DEBUG" -e "INPUT_PATH" -e "INPUT_GH_REST_API_BASE_URL" -e "INPUT_ACCEPTABLE_CONCLUSIONS" -e "INPUT_FAIL_FAST" -e "INPUT_SLEEP" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e "ACTIONS_ORCHESTRATION_ID" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp":"/github/runner_temp" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/NUR/NUR":"/github/workspace" 662247:c748ed8fe00c4314bf16aebf975318fd

Fetching the latest information from 'nix-community/NUR' ...
http.https://github.com/.extraheader

during which nothing gets printed, and then it suddenly continues again, successfully pushing in ~10 seconds:

From https://github.com/nix-community/NUR
 * [new branch]          Pandapip1-patch-1 -> origin/Pandapip1-patch-1
 * [new branch]          Pandapip1-patch-2 -> origin/Pandapip1-patch-2
 * [new branch]          add-ros           -> origin/add-ros
 * [new branch]          add-zen-flake     -> origin/add-zen-flake
 * [new branch]          master            -> origin/master
 * [new branch]          pr-singlerepo     -> origin/pr-singlerepo
 * [new branch]          push-action/13318982984/21030-30862-18399 -> origin/push-action/13318982984/21030-30862-18399
 * [new branch]          python37          -> origin/python37
 * [new branch]          quiet-builds      -> origin/quiet-builds
 * [new branch]          renovate/actions-checkout-6.x -> origin/renovate/actions-checkout-6.x
 * [new branch]          staging           -> origin/staging
 * [new branch]          trying            -> origin/trying
 * [new branch]          unrestrict-eval   -> origin/unrestrict-eval
Fetching the latest information from 'nix-community/NUR' ... DONE!

Check target branch 'main' exists ...
Check target branch 'main' exists ... DONE!

Creating temporary branch 'push-action/21537039495/19155-309-24391' ...
Switched to a new branch 'push-action/21537039495/19155-309-24391'
remote: 
remote: Create a pull request for 'push-action/21537039495/19155-309-24391' on GitHub by visiting:        
remote:      https://github.com/nix-community/NUR/pull/new/push-action/21537039495/19155-309-24391        
remote: 
To https://github.com/nix-community/NUR.git
 * [new branch]          push-action/21537039495/19155-309-24391 -> push-action/21537039495/19155-309-24391
Creating temporary branch 'push-action/21537039495/19155-309-24391' ... DONE!

Waiting for status checks to finish for 'push-action/21537039495/19155-309-24391' ...

Configuration:
    interval: 30 seconds
    timeout: 15 minutes
    required status checks: []
        of which are:
            GitHub Action-related: 0
            Third-party checks: 0

All required GitHub Actions jobs complete!
Waiting for status checks to finish for 'push-action/21537039495/19155-309-24391' ... DONE!

Pushing 'push-action/21537039495/19155-309-24391' -> 'origin/main' ...
Switched to branch 'main'
Your branch is ahead of 'origin/main' by 1 commit.
  (use "git push" to publish your local commits)
HEAD is now at f79234df4 automatic update
remote: Bypassed rule violations for refs/heads/main:        
remote: 
remote: - 2 of 2 required status checks have not succeeded: 1 expected.        
remote: 
remote: - Changes must be made through a pull request.        
remote: 
remote: - Changes must be made through the merge queue        
remote: 
To https://github.com/nix-community/NUR.git
   db79b864f..f79234df4  main -> main
Pushing 'push-action/21537039495/19155-309-24391' -> 'origin/main' ... DONE!

Removing temporary branch 'push-action/21537039495/19155-309-24391' ...
Removing temporary branch 'push-action/21537039495/19155-309-24391' ... DONE!

Got any idea what could be causing this delay?

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