action #116788
closedCloning of job with released test issues not working
0%
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;
}
Updated by okurz about 2 years ago
- Related to action #109707: [qe-core] Detect when a maintenance update has been already released before running the test added
Updated by okurz about 2 years ago
- Category set to Feature requests
- Target version set to future
That exact behaviour was added in https://github.com/os-autoinst/openQA/pull/4693 as part of the work on #109707 so "working as designed". But I thought it would be possible to explicitly remove the problematic incident from the list and continue with the others. I would be ok with both suggestion 1 and suggestion 2 but we should clarify with dvenkatachala and szarate who worked on this in before. Added both dvenkatachala and szarate to the "Watchers" list to discuss this with you.
Updated by szarate about 2 years ago
We can't clone older jobs, even if we would overwrite the incident list manually.
This is because the verification is done on the repositories directly, and not the incidents, as the repo list is being generated at the moment of scheduling the tests. Rendering the manual removal of incidents, a noop. Which makes suggestion #2 a no-go.
Question: Why would you like to clone old jobs with already released incidents? perhaps there's a corner case we didn't consider...
Updated by szarate about 2 years ago
Also keep in mind that https://github.com/os-autoinst/os-autoinst-distri-opensuse/commit/965fab5f6d2ae78e9f3942f8609f0f08c2c935b4 removed support for manually adding the incidents, and a follow up is pending, to also die when a job is retriggered and the repo doesn't exist (during the test setup)
Updated by ph03nix about 2 years ago
Sorry my bad, the example was wrong. I am setting the INCIDENT_REPO
to empty and it still fails. This is unexpected:
openqa-clone-job https://openqa.suse.de/tests/9392017 INCIDENT_REPO=
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.
I would expect openqa-clone-job
to honor manually set *_REPO
settings and consider them when doing the liveness test.
Updated by dvenkatachala about 2 years ago
- Status changed from New to In Progress
- Target version changed from future to QE-Core: Ready
Updated by dvenkatachala about 2 years ago
- Status changed from In Progress to Resolved