[opensuse-factory] Make use of job template settings to reduce the number of testsuites
Hi, openQA supports adding test settings directly on job template level (the YAML file defined for each job group). This helps to avoid test suites which would otherwise only be used by a single job template. A test suite can still be used. In this case the settings specified on job template level extend or overwrite settings specified within the test suite. This helps to avoid having multiple, almost identical test suites. The example in the next section is supposed to give an idea how the feature is intended to be used in practice so you can consider it when adding *new* test scenarios. We are working on tooling to migrate *existing* test suites. See https://progress.opensuse.org/issues/60329 or reach out to the tools team if you have questions or suggestions about migration plans. # Example In this example I am considering the test suites for openQA-in-openQA tests on o3. Previously the `scenarios` section of the YAML document looked like this: ``` scenarios: x86_64: openqa-*-dev-x86_64: - openqa_install+publish - openqa_from_git ``` The referenced test suites `openqa_install+publish` and `openqa_from_git` are not used anywhere else. That makes them perfect candidates for being included directly within the YAML so the `scenarios` section can be changed to: ``` scenarios: x86_64: openqa-*-dev-x86_64: - openqa_install+publish: testsuite: 'empty' settings: INSTALL: '1' INSTALL_ONLY: '1' PUBLISH_HDD_1: 'opensuse-Tumbleweed-%ARCH%@%MACHINE%-%BUILD%.qcow2' PUBLISH_PFLASH_VARS: 'opensuse-Tumbleweed-%ARCH%@%MACHINE%-%BUILD%- uefi-vars.qcow2' QEMUCPU: 'host' UPDATE: '0' description: >- Maintainer: okurz@suse.de Test for installation of openQA itself. To be used with "openqa" distri. Publishes an qcow2 image including the openQA installation ready to run as an appliance. - openqa_from_git: testsuite: 'empty' settings: INSTALL: '1' INSTALL_ONLY: '1' OPENQA_FROM_GIT: '1' QEMUCPU: 'host' UPDATE: '0' description: >- Maintainer: okurz@suse.de Test for running openQA itself from git. To be used with "openqa" distri. ``` The settings and description have just been copied over from the test suites which are then no longer needed and can be removed. Note that the names `openqa_install+publish` and `openqa_from_git` are still present because the structure of the YAML document expects a name at this level. As we do not want to use any settings from testsuites the assignment `testsuite: 'empty'` is used. This refers to an actually existing but empty test suite. --- Best Regards Tools team -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (1)
-
Marius Kittler