action #64361
closedload_templates or something else creates invalid test suites
0%
Description
I have setup a new openQA test instance on a Leap 15.1 VM to try and reproduce some test failures on o3. However, during the setup, I found that (probably) the load_templates
script produced odd test suites. For instance:
EXTRA=ARRAY(0x5618f1aa7aa8)
SYSTEM_ROLE=ARRAY(0x5618f1af9c18)
for MicroOS-admin
instead of the expected:
EXTRA=FEATURES
SYSTEM_ROLE=admin
as it shows up on o3.
This appears to affect all settings of every test suite that was added. The variable names are correct, as are the test names and the descriptions, just the values are wrong.
For reference, I have populated the settings as follows:
/usr/share/openqa/script/fetchneedles
/var/lib/openqa/share/tests/opensuse/products/opensuse/templates --host openqa.opensuse.org --apikey $APIKEY --apisecret $APISECRET
/usr/share/openqa/script/dump_templates --host openqa.opensuse.org > templates.json
/usr/share/openqa/script/load_templates --host localhost --update templates.json
Updated by okurz almost 5 years ago
- Category set to Regressions/Crashes
- Assignee set to livdywan
- Priority changed from Normal to High
@cdywan could you please check if this is a recent regression?
Updated by tinita almost 5 years ago
Reproduced here...
If I call load_templates
a second time, it complains with:
Internal Server Error: Unable to create group with existing name openSUSE Tumbleweed s390x
but the ARRAY
entries are fixed.
Updated by tinita almost 5 years ago
Actually, the template.json already contains the wrong ARRAY
values (in the Products
entry).
See https://openqa.opensuse.org/admin/products and search for KDE-Live
for example.
But load_templates adds it to all testsuites.
Updated by livdywan almost 5 years ago
- Status changed from New to In Progress
- Target version set to Current Sprint
We traced this back to switching away from the query calls, which affecs how settings are loaded.
A work-around is identified which we can use, see work in progress PR https://github.com/os-autoinst/openQA/pull/2822
Updated by livdywan almost 5 years ago
- Status changed from In Progress to Feedback
Updated by dancermak almost 5 years ago
- Status changed from Feedback to Closed
I have retried my previous steps and the script no longer produces bogus test suites.
Thank you for fixing this!
Updated by okurz almost 5 years ago
- Status changed from Closed to Resolved
Great to see that the issue is fixed for you. We use "Resolved" as the final state according to https://progress.opensuse.org/projects/openqav3/wiki/#ticket-workflow , better avoid "Closed" :)