Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try multiple times creating a pull request on gitea #1410

Commits on Sep 5, 2023

  1. Try multiple times creating a pull request on gitea

    For the gitea test we are creating a pull request but sometime and
    that's randomly it will fails with this error:
    
    ```console
    {"level":"info","ts":1693897319.3020558,"caller":"gitea/scm.go:94","msg":"Pushed files to repo http://localhost:3000/org-pac-e2e-test-zg6sx/pac-e2e-test-zg6sx branch pac-e2e-test-zg6sx"}
        test.go:140: assertion failed: error is not nil: PushRejected Error: exit status 1: remote: error: cannot lock ref 'refs/pull/1/head': reference already exists
            To /home/gitea/repositories/org-pac-e2e-test-zg6sx/pac-e2e-test-zg6sx.git
             ! [remote rejected] pac-e2e-test-zg6sx -> refs/pull/1/head (failed to update ref)
            error: failed to push some refs to '/home/gitea/repositories/org-pac-e2e-test-zg6sx/pac-e2e-test-zg6sx.git'
    ```
    
    Let's try multiple time and hope that it succeed at some point.
    
    Signed-off-by: Chmouel Boudjnah <[email protected]>
    chmouel committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    ee181fa View commit details
    Browse the repository at this point in the history