Project

General

Profile

Actions

action #123888

closed

[os-autoinst] Clone retry attempts seem to be the wrong way around, retrying when not necessary and vice versa size:M

Added by okurz over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2023-02-02
Due date:
2023-02-21
% Done:

0%

Estimated time:

Description

Observation

From https://openqa.opensuse.org/tests/3089742/logfile?filename=autoinst-log.txt

[2023-02-02T11:16:59.522322+01:00] [info] [pid:7469] ::: OpenQA::Isotovideo::Utils::clone_git: Cloning git URL 'https://github.com/os-autoinst/os-autoinst-distri-openQA.git'
[2023-02-02T11:16:59.522363+01:00] [info] [pid:7469] ::: OpenQA::Isotovideo::Utils::clone_git: Checking out git refspec/branch 'use_podman_everywhere'
[2023-02-02T11:16:59.997119+01:00] [debug] [pid:7469] Cloning into 'os-autoinst-distri-openQA'...

[2023-02-02T11:16:59.997200+01:00] [debug] [pid:7469] Clone failed, retries left: 1 of 2
[2023-02-02T11:17:04.997519+01:00] [debug] [pid:7469] Skipping to clone 'https://github.com/os-autoinst/os-autoinst-distri-openQA.git'; os-autoinst-distri-openQA already exists
[2023-02-02T11:17:05.008632+01:00] [debug] [pid:7469] git hash in /var/lib/openqa/pool/15/os-autoinst-distri-openQA: 552d068b96cf247e2191c4ee6af16dc8f016a4f8

Acceptance criteria

  • AC1: Clones are re-tried up to 2 times in case of failures

Suggestions

  • Review the retry logic in os-autoinst
  • Extend unit test coverage

Related issues 2 (0 open2 closed)

Related to openQA Project - action #123873: openQA test using wheel repo fails to clone: auto_review:"unable to access.*wheel.*Could not resolve host: github.com":retryResolvedjbaier_cz2023-02-01

Actions
Related to openQA Project - action #123556: os-autoinst git cloning of test case repo can fail with auto_review:"fatal.*unable to access.*Connection timed out":retry size:MResolvedjbaier_cz2023-01-23

Actions
Actions

Also available in: Atom PDF