#154 check-for-tests / check-for-sti-tests ignores tests*.yml files
Closed 2 years ago by fbo. Opened 2 years ago by churchyard.

In https://src.fedoraproject.org/rpms/openssl/pull-request/21 I (re)add tests/tests_python.yml, but Zuul's check-for-tests / check-for-sti-tests job does not recognize that file. I've looked in the implementation here and it only explicitly checks for tests/tests.yml:

https://pagure.io/fedora-zuul-jobs-config/blob/master/f/playbooks/rpm/check-for-tests.yaml
https://pagure.io/fedora-zuul-jobs-config/blob/master/f/playbooks/rpm/check-for-sti-tests.yaml

However, the specification explicitly says:

The testing system MUST run each playbook matching the glob tests/tests*.yml in the dist-git repo.

I'd submit a fix, but I don't know how to write a check for glob-existence in this yaml playbook.


Unfortunately the fix does not work: I'll merging this now https://pagure.io/fedora-zuul-jobs-config/pull-request/156 and see.

The test detection now works, but rpm-test does not:

mkdir -p tests && find . tests -maxdepth 1 -type f -name tests.yml | head -1 | xargs dirname

non-zero return code

dirname: missing operand
Try 'dirname --help' for more information.

https://src.fedoraproject.org/rpms/openssl/pull-request/21#comment-100687

rpm-sti-test works.

Seems to work properly, thanks.

Thanks for the test. The change is now merged. I close here. Please re-open if needed.

Metadata Update from @fbo:
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata