Hi guys
I'm trying to enable gating tests for package system-storage-manager.
The tarball contains upstream tests and I would like to use these
(with the ability to apply patches to them, same as to the rest of the
code). I have a gating.yaml and tests.yml that works in RHEL exactly
as I want it, but when I try to apply them to Fedora, I can't get it
to work.
It looks as the tests are not included in the VM built for the test.
If I change tests.yml and use only "run: some_system_command," then
the system command is executed.
My tests.yml looks very similar to swid-tools, where it works
(according to jenkins logs), so I'm cc-ing Jan Pazdziora just in case.
(Jan, sorry for two emails, the first one bounced back from the list.)
I tried to find some solution on
https://docs.fedoraproject.org/en-US/ci/ (and subpages), but if it is
there, I didn't notice. I also found some other pages as
https://docs.pagure.org/greenwave/package-specific-policies.html, with
the same result.
I'm using this PR to start the tests:
https://src.fedoraproject.org/rpms/system-storage-manager/pull-request/1
A failed run:
https://jenkins-continuous-infra.apps.ci.centos.org/blue/organizations/je...
Any ideas what I'm doing wrong? gating.yaml and tests.yml bellow.
Thanks
Jan
--------------------------
File tests/tests.yml:
---
- hosts: localhost
roles:
# Fetch source tarball and unpack it into the test environment
- role: standard-test-source
tags:
- always
- role: standard-test-basic
tags:
- atomic
- classic
required_packages:
- lvm2
- cryptsetup
tests:
- smoke: # Run tests
dir: ./source/
run: ./test.py --system --logs
--------------------------
File gating.yml:
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_testing # was osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
I tried to replace the osci.brew-build.tier0.functional with some
build.foo cases, but it didn't change anything.
--
Jan Tulak