Zuul: Unify all jobs to save on CI costs
We need a VM for both the compose-dry-run and the compose-base tests thus to avoid spawning two VMs in Zuul, let's keep everything in a single job to save money.
This commit is contained in:
parent
d0d0a33bdb
commit
6b449c657f
3 changed files with 9 additions and 33 deletions
19
.zuul.yaml
19
.zuul.yaml
|
@ -2,26 +2,13 @@
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
- validate
|
- validate
|
||||||
- compose-base
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: validate
|
name: validate
|
||||||
description: Validate manifests and scripts syntax
|
description: Validate manifests, scripts, dependencies and compose the base image
|
||||||
run: ci/validate.yaml
|
# Increased timeout as builds can take a while
|
||||||
nodeset:
|
|
||||||
nodes:
|
|
||||||
- name: container
|
|
||||||
# Replace by a fixed version label after branching, once available:
|
|
||||||
# https://fedora.softwarefactory-project.io/zuul/labels
|
|
||||||
# The Rawhide container is temporarily broken
|
|
||||||
# label: zuul-worker-rawhide
|
|
||||||
label: cloud-fedora-rawhide-small
|
|
||||||
|
|
||||||
- job:
|
|
||||||
name: compose-base
|
|
||||||
description: Test composing the base variant
|
|
||||||
timeout: 3600
|
timeout: 3600
|
||||||
run: ci/compose-base.yaml
|
run: ci/validate.yaml
|
||||||
nodeset:
|
nodeset:
|
||||||
nodes:
|
nodes:
|
||||||
- name: vm
|
- name: vm
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
- hosts: all
|
|
||||||
tasks:
|
|
||||||
- name: Install dependencies
|
|
||||||
package:
|
|
||||||
name:
|
|
||||||
- 'jq'
|
|
||||||
- 'just'
|
|
||||||
- 'ostree'
|
|
||||||
- 'python3-pyyaml'
|
|
||||||
- 'rpm-ostree'
|
|
||||||
- 'selinux-policy-targeted'
|
|
||||||
state: present
|
|
||||||
become: yes
|
|
||||||
- name: Compose the base variant
|
|
||||||
ansible.builtin.command:
|
|
||||||
chdir: "{{ zuul.project.src_dir }}"
|
|
||||||
cmd: just compose-legacy base
|
|
|
@ -3,10 +3,12 @@
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
|
- 'jq'
|
||||||
- 'just'
|
- 'just'
|
||||||
- 'ostree'
|
- 'ostree'
|
||||||
- 'python3-pyyaml'
|
- 'python3-pyyaml'
|
||||||
- 'rpm-ostree'
|
- 'rpm-ostree'
|
||||||
|
- 'selinux-policy-targeted'
|
||||||
state: present
|
state: present
|
||||||
become: yes
|
become: yes
|
||||||
- name: Validate manifests and scripts syntax
|
- name: Validate manifests and scripts syntax
|
||||||
|
@ -17,3 +19,7 @@
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
chdir: "{{ zuul.project.src_dir }}"
|
chdir: "{{ zuul.project.src_dir }}"
|
||||||
cmd: just compose-dry-run
|
cmd: just compose-dry-run
|
||||||
|
- name: Compose the base variant
|
||||||
|
ansible.builtin.command:
|
||||||
|
chdir: "{{ zuul.project.src_dir }}"
|
||||||
|
cmd: just compose-legacy base
|
||||||
|
|
Loading…
Reference in a new issue