Project

General

Profile

Actions

action #92905

closed

openqa-investigate creates jobs with wrong Git hash when triggered for jobs which already have a CASEDIR set to a git repo

Added by mkittler almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2021-05-20
Due date:
2021-06-15
% Done:

0%

Estimated time:

Description

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
Actions

Also available in: Atom PDF