Project

General

Profile

Actions

action #116788

closed

Cloning of job with released test issues not working

Added by ph03nix about 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2022-09-19
Due date:
% Done:

0%

Estimated time:

Description

Observation

I can't clone an old job with already released test issues, also if I set the corresponding variable manually.

Steps to reproduce

phoenix@duck-norris:~> openqa-clone-job https://openqa.suse.de/tests/9392017 BASE_TEST_ISSUES= INCIDENT_ID=
Current job 9392017 will fail, because the repositories for the below updates are unavailable
[
  "http://download.suse.de/ibs/SUSE:/Maintenance:/25519/SUSE_Updates_SLE-Module-Basesystem_15-SP4_x86_64",
] at /usr/share/openqa/script/../lib/OpenQA/Script/CloneJobSUSE.pm line 37.

Impact

We can't clone older jobs, even if we would overwrite the incident list manually.

Problem

We can't clone older jobs, even if we would overwrite the incident list manually.

Suggestion

  • Suggestion 1: Consider manual settings in the test issue "lifeness" test
  • Suggestion 2: Provide a new flag which disables this check and point the user to the flag in cause of failure
phoenix@duck-norris:~> openqa-clone-job https://openqa.suse.de/tests/9392017 BASE_TEST_ISSUES= INCIDENT_ID=
Current job 9392017 will fail, because the repositories for the below updates are unavailable. Use the --ignore-missing flag to override
[
  "http://download.suse.de/ibs/SUSE:/Maintenance:/25519/SUSE_Updates_SLE-Module-Basesystem_15-SP4_x86_64",
] at /usr/share/openqa/script/../lib/OpenQA/Script/CloneJobSUSE.pm line 37.

Workaround

sudo vim /usr/share/openqa/script/../lib/OpenQA/Script/CloneJobSUSE.pm

sub detect_maintenance_update ($jobid, $url_handler, $settings) {
    my $urls = collect_incident_repos($url_handler, $settings);
#    die "Current job $jobid will fail, because the repositories for the below updates are unavailable\n" . pp($urls)
#      if @$urls;
}

Related issues 1 (0 open1 closed)

Related to openQA Tests - action #109707: [qe-core] Detect when a maintenance update has been already released before running the testResolveddvenkatachala2022-06-09

Actions
Actions

Also available in: Atom PDF