[CentOS-devel] Help with reproducing tests locally

Sat Jul 8 18:05:25 UTC 2023
Carlos Rodriguez-Fernandez <carlosrodrifernandez at gmail.com>

Answering myself about Zuul CI, I was able to find some good information 
in Fedora Docs that helped: https://fedoraproject.org/wiki/Zuul-based-ci
It describes how to contribute to zuul tests with custom jobs on 
specific projects, and the steps to attach zuul ci to a repo.

I also learned that Zuul CI has a set of predefined ansible roles: 
https://zuul-ci.org/docs/zuul-jobs/latest/general-roles.html, which are 
the ones here: 
https://gitlab.com/redhat/centos-stream/ci-cd/zuul/zuul-jobs/-/tree/master/roles. 
I still can't find the definition of some other roles, though (on the 
centos-stream repo, or even on the fedora ones).

It seems like the Fedora Docs could be used to expand the CentOS Stream 
one here https://gitlab.com/redhat/centos-stream/ci-cd/ci-cd-docs.

Regards,
Carlos

On 7/1/23 15:13, Carlos Rodriguez-Fernandez wrote:
> Hi All,
> 
> I've been trying to reproduce the centos tests locally. Thank to 
> Aleksandra and arrfab for the help on IRC to understand the whole 
> process conceptually.
> 
> I successfully ran https://github.com/CentOS/sig-core-t_functional on a 
> clean centos stream 9 vm. The tests passed.
> 
> I'm running into issues trying to run individual playbooks against a 
> clean centos stream 9 vm from the zuul-jobs and jobs repositories from 
> here: https://gitlab.com/redhat/centos-stream/ci-cd/zuul
> 
> The errors I find are mainly related to dependencies, e.g., missing 
> users, or packages, which makes me think there are steps I need to do 
> before.
> 
> Is there any documentation for contributors about the zuul CI tests, to 
> be able to test individual playbooks locally? If there is none, I could 
> contribute with some in a Readme.md, but I would still need some basic 
> guidance to get at least some of them working locally. Any help is 
> appreciated.
> 
> 
> Regards,
> Carlos.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x47EBED05C3375B1F.asc
Type: application/pgp-keys
Size: 2484 bytes
Desc: OpenPGP public key
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20230708/7cadcf71/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 665 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20230708/7cadcf71/attachment-0002.sig>