action #112268


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 about 2 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


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 there is a possibility to use REST API from SMELT.

Acceptance criteria

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


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 ./ 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


Also available in: Atom PDF