Created 3 years ago
Maintained by fbo
Zuul configuration for the Fedora project
Members 3
Zuul CI Bot (Fabien Boucher) committed 8 days ago


Software Factory configuration for the Fedora project.

Here are configured:

  • resources/: Git repositories to be listened for events by Fedora's Zuul.
  • zuul.d/_pipelines.yaml: Zuul pipelines for the Fedora's Zuul jobs.
  • playbooks/: Ansible playbooks used by some Fedora's Zuul jobs.
  • tools/: Addtionnal tooling.
  • FZCI.dhall: Dhall description of Fedora Zuul resources to be used to render Fedora's Zuul jobs configuration.

The Zuul CI configuration for Fedora is managed through 3 repositories:

  • fedora-project-config: this one.
  • fedora-zuul-jobs-config: A Zuul config repository to host sensitive Zuul config (e.g. jobs relying on secrets).
  • fedora-zuul-jobs: A Zuul untrusted repository to host non sensitive Zuul config.

Most of the Zuul config for Fedora is managed via the Dhall language. The rendering of the dhall program produces YAML files to be used by Zuul. YAML files are generated into the three repositories described above.

Prepare your workspace to edit Fedora Zuul jobs config

Install required tools

dhall-to-yaml and zuulfmt are needed to render the Zuul configuration.

To install dhall-to-yaml runs (or adapt to your working environment)

dnf install -y dhall-json

To install zuulfmt runs (or adapt to your working environment)

python -mpip install --user zuulfmt

It is adviced to install the Dhall lang support for your IDE:

Clone/Update jobs repositories

Run the following command to install (and/or reset to the last origin/HEAD) extra repositories. This prepares fedora-zuul-jobs-config and fedora-zuul-jobs checkout in the parent directory.

make update-jobs-repos


  • Fork both repositories in your pagure.io user namesapce
  • Use git remote add fork ssh://git@pagure.io/forks/<username>/<repo>.git

How to update Zuul jobs config

First, ensure repositories are in the right state (all commands below assume working from the master branch):

git checkout master && git fetch origin && git reset --hard origin/master
make update-jobs-repos

Second, add the required changes.

Then run the rendering.

[fedora@localhost fedora-project-config]$ make render
Rendering FZCI.dhall/fedora-zuul-jobs-config/jobs.dhall in ../fedora-zuul-jobs-config/zuul.d/jobs.yaml
Rendering FZCI.dhall/fedora-zuul-jobs/jobs.dhall in ../fedora-zuul-jobs/zuul.d/jobs.yaml
Rendering FZCI.dhall/fedora-zuul-jobs/nodesets.dhall in ../fedora-zuul-jobs/zuul.d/nodesets.yaml
Rendering FZCI.dhall/fedora-zuul-jobs/templates.dhall in ../fedora-zuul-jobs/zuul.d/templates.yaml

In case of error, update your changes then run again the rendering.

Finally, create Pull Requests for each repositories that got an update from the rendering.

For instance:

make check-updates
# For each repo where this shows a diff then run: (here a change in fedora-zuul-jobs)
pushd ../fedora-zuul-jobs
git status
git add -A .
git commit -m"Add change for ..."
git push fork master:pr-branch-on-fork

And open the PR on pagure.io.


Add support for a Fedora Branch

Adding new branch definition

  • Edit file branches.dhall in order to add the new-branch
  • The type checker will help you to fill the places where the new-branch handling must be done.

If you don't have the support of Dhall in your IDE, you might want to check your edit with the type checker:

dhall <<< './FZCI.dhall/Branches.dhall'

Update jobs from fedora-zuul-jobs-config

If the type checker does not complain then nothing needs to be done into that file.

Then run:

make render

Update jobs from fedora-zuul-jobs

Then run:

make render

Push changes

When edits are done on those repos then commits and push changes (as PR) then wait for CI result.