Project

General

Profile

Actions

action #163784

open

[openqa-in-openqa] test fails in test_running on "retry -s 10 -r 6 -e -- sh -c 'test -f /var/lib/openqa/share/tests/*/.git/config", probably due to transient network errors size:S

Added by okurz 16 days ago. Updated 1 day ago.

Status:
Workable
Priority:
High
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2024-07-11
Due date:
% Done:

0%

Estimated time:

Description

Observation

openQA test in scenario openqa-Tumbleweed-dev-x86_64-openqa_install+publish@64bit-2G fails in
test_running
on command

retry -s 10 -r 6 -e -- sh -c 'test -f /var/lib/openqa/share/tests/*/.git/config

probably due to transient network errors. Same in https://openqa.opensuse.org/tests/4333739#step/test_running/8 but investigation jobs are all green so after a short time the error could not be reproduced anymore. The actual error is visible in https://openqa.opensuse.org/tests/4333739#step/test_running/6 in the middle of the JSON output: "Error detecting remote default branch name […]" which comes from https://github.com/os-autoinst/os-autoinst/blob/master/OpenQA/Isotovideo/Utils.pm#L84 https://github.com/os-autoinst/openQA/blob/master/lib/OpenQA/Task/Git/Clone.pm#L60.

Acceptance criteria

  • AC1: tests consistently pass even during intermittent outages during remote git command calls

Further details

Always latest result in this scenario: latest

Suggestions

* The $handle_output does already die if the git command fails, so apparently the git command was succesful but the output didn't match the expected one. Add the actual output in that error message. The handle_output error message should output the actual returned output from the git command
* In my test I changed the git url to github.comm, so the git clone should already fail, but still I got the same error message Error detecting remote default branch in the test. Something to investigate

  • Investigate why we didn't see this in unit tests and fix or add an according test case
  • #163787 might help with investigation

Related issues 1 (1 open0 closed)

Related to openQA Project - action #163787: https://progress.opensuse.org/issues/163787 [openqa-in-openqa] autoinst-log.txt uploaded from within the test should always return non-empty content if jobs are actually executed size:SIn Progresstinita2024-07-112024-08-09

Actions
Actions #1

Updated by okurz 16 days ago

  • Subtask #163787 added
Actions #3

Updated by okurz 9 days ago

  • Subtask deleted (#163787)
Actions #4

Updated by okurz 9 days ago

  • Related to action #163787: https://progress.opensuse.org/issues/163787 [openqa-in-openqa] autoinst-log.txt uploaded from within the test should always return non-empty content if jobs are actually executed size:S added
Actions #5

Updated by okurz 9 days ago

  • Tags set to reactive work, openqa-in-openqa
  • Tracker changed from coordination to action
  • Subject changed from [epic][openqa-in-openqa] test fails in test_running on "retry -s 10 -r 6 -e -- sh -c 'test -f /var/lib/openqa/share/tests/*/.git/config", probably due to transient network error to [openqa-in-openqa] test fails in test_running on "retry -s 10 -r 6 -e -- sh -c 'test -f /var/lib/openqa/share/tests/*/.git/config", probably due to transient network error
  • Priority changed from Normal to High
  • Target version changed from future to Ready
Actions #6

Updated by tinita 9 days ago · Edited

AC3 is handled in #163787, should it be removed here?

Actions #7

Updated by okurz 9 days ago

  • Description updated (diff)

tinita wrote in #note-6:

AC3 is handled in #163787, should it be removed here?

yes, done

Actions #8

Updated by robert.richardson 3 days ago

  • Subject changed from [openqa-in-openqa] test fails in test_running on "retry -s 10 -r 6 -e -- sh -c 'test -f /var/lib/openqa/share/tests/*/.git/config", probably due to transient network error to [openqa-in-openqa] test fails in test_running on "retry -s 10 -r 6 -e -- sh -c 'test -f /var/lib/openqa/share/tests/*/.git/config", probably due to transient network errors size:S
  • Description updated (diff)
  • Status changed from New to Workable
Actions #10

Updated by tinita 1 day ago

  • Description updated (diff)

Updated the description with my findings from #163787

Actions

Also available in: Atom PDF