Raúl Cumplido created ARROW-16684:
-------------------------------------

             Summary: [CI][Archery] Add retry mechanism to git fetch
                 Key: ARROW-16684
                 URL: https://issues.apache.org/jira/browse/ARROW-16684
             Project: Apache Arrow
          Issue Type: Improvement
          Components: Archery, Continuous Integration, Developer Tools
            Reporter: Raúl Cumplido
            Assignee: Raúl Cumplido
             Fix For: 9.0.0


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:
{code:java}
   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.{code}
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.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to