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

[CI][Archery] Add retry mechanism to git fetch #32029

Closed
asfimport opened this issue May 30, 2022 · 1 comment
Closed

[CI][Archery] Add retry mechanism to git fetch #32029

asfimport opened this issue May 30, 2022 · 1 comment

Comments

@asfimport
Copy link

Archery seems to fail sometimes to fetch branches for some repositories. Some of the report packaging jobs (https://github.com/ursacomputing/crossbow/runs/6643769198?check_suite_focus=true) have been failing due to git errors when fetching:

   File "/home/runner/work/crossbow/crossbow/arrow/dev/archery/archery/crossbow/cli.py", line 238, in latest_prefix
    queue.fetch()
  File "/home/runner/work/crossbow/crossbow/arrow/dev/archery/archery/crossbow/core.py", line 271, in fetch
    self.origin.fetch([refspec])
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/pygit2/remote.py", line 146, in fetch
    payload.check_error(err)
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/pygit2/callbacks.py", line 93, in check_error
    check_error(error_code)
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/pygit2/errors.py", line 65, in check_error
    raise GitError(message)
_pygit2.GitError: SSL error: received early EOF
Error: Process completed with exit code 1.

I have seen that retrying the job can make it pass.

We should add a retry mechanism to archery to allow retry on GitErrors when fetching branches.

Reporter: Raúl Cumplido / @raulcd
Assignee: Raúl Cumplido / @raulcd

PRs and other links:

Note: This issue was originally created as ARROW-16684. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Krisztian Szucs / @kszucs:
Issue resolved by pull request 13258
#13258

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

No branches or pull requests

2 participants