Project

General

Profile

action #92905

Updated by okurz almost 3 years ago

## Observation 

 This appears to happen if the involved original jobs have a custom `CASEDIR` pointing to a different repository, e.g. `CASEDIR=https://github.com/dzedro/os-autoinst-distri-opensuse.git#15_sp3` (example from production: https://openqa.suse.de/tests/6064992). 

 In the mentioned example the created investigation job has the setting `CASEDIR=https://github.com/os-autoinst/os-autoinst-distri-opensuse.git#1dbcdaba78224ab418c99efdd6fedcf0acda122c` assigned which is wrong in this case so the job incompletes (with reason `isotovideo died: Could not find '1dbcdaba78224ab418c99efdd6fedcf0acda122c' in complete history at /usr/lib/os-autoinst/OpenQA/Isotovideo/Utils.pm line 96.`, see https://openqa.suse.de/tests/6066691). The custom repository `github.com/dzedro/os-autoinst-distri-opensuse` should have been kept here because the last good job already had it as well. Of course if the last good job would have actually been using `github.com/os-autoinst/os-autoinst-distri-opensuse` then this repository would have been actually been correct. The other jobs which are created should of course be considered as well (e.g. https://openqa.suse.de/tests/6066693 incompleted here as well). 

 I'm not sure how much effort it will be to pick the right repository correctly in any case. If it is not feasible we could also ignore jobs using custom repositories (or when a related job like the last good is using a custom repository). 

 ## Acceptance criteria 
 * **AC1:** No openqa-investigate jobs triggered with wrong repo for custom CASEDIR jobs 
 * **AC2:** openqa-investigate jobs are triggered with same repo as original jobs 

 ## Suggestions 
 * First we should prevent wrong jobs to be triggered. Better to identify such jobs and not trigger openqa-investigate jobs 
 * As okurz foresees that eventually we will need "custom" repos in more cases we should fix the case as well

Back