Project

General

Profile

Actions

action #112268

open

coordination #99303: [saga][epic] Future improvements for SUSE Maintenance QA workflows with fully automated testing, approval and release

coordination #110016: [epic][teregen] teregen (maintenance test report template generator) improvements

[teregen] Integrate productdefs generator inside template generator

Added by jbaier_cz over 2 years ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

This is a continuation of #87755

The problem

The product definitions in metadata are not updated in time when a new product shows up which results in templates not being generated properly.

Possible solution

As mentioned in https://gitlab.suse.de/qa-maintenance/metadata/-/issues/11 there is a possibility to use REST API from SMELT.

Acceptance criteria

  • AC1: Product definitions in metadata do not need manual edits

Suggestions

Further details

jbaier_cz created a small proof of concept with a simple script. The main issue here would be probably in the data transformation for the corner cases. I am able, quite reliably, fetch information about modules. Basically by invoking ./get_products.pl SLE-Module-Basesystem:15:SP4 I am able to get the same data structure as we have in the metadata. I can't do it for products (not sure why, maybe I am just missing something in the script, or maybe the products API is not searchable by product name) and there are corner cases like SLE-Module-Containers 15-SP4 which is named Containers SLE-15-SP4 in our metadata (for reasons unknown to me, the comment in the code suggests it could be connected to release channels not to be present in such cases, but it also could be some relic of the past and the transformation is no longer needed).

I see two possible approaches here, one is integrating that into template generator; the second would be integrating that into the metadata package (like introducing an automated pipeline for fetching and updating the product definitions in the metadata package). I would probably incline towards the second solution as that will allow to do some phase-out (and optionally still keep the possibility to do manual changes); and if that would work, we can then take it, integrate it as a module into template generator and delete all product definitions from the metadata forever.


Related issues 1 (0 open1 closed)

Copied from QA - action #87755: [teregen] Replace productdefs by API call size:MResolvedjbaier_cz2021-01-14

Actions
Actions #1

Updated by jbaier_cz over 2 years ago

  • Copied from action #87755: [teregen] Replace productdefs by API call size:M added
Actions #2

Updated by okurz over 2 years ago

  • Related to action #112415: [qa-tools] handle new openSUSE-Leap-Micro-5.2 added
Actions #3

Updated by okurz over 2 years ago

  • Related to deleted (action #112415: [qa-tools] handle new openSUSE-Leap-Micro-5.2 )
Actions

Also available in: Atom PDF