#485 Add dependency resolution test for all variants
Merged 2 months ago by siosm. Opened 2 months ago by siosm.
siosm/workstation-ostree-config main-zuul-validate-dependecies  into  main

file modified
+7 -1
@@ -2,7 +2,13 @@ 

     tasks:

       - name: Install dependencies

         package:

-          name: ['jq', 'just', 'ostree', 'python3-pyyaml', 'rpm-ostree', 'selinux-policy-targeted']

+          name:

+            - 'jq'

+            - 'just'

+            - 'ostree'

+            - 'python3-pyyaml'

+            - 'rpm-ostree'

+            - 'selinux-policy-targeted'

           state: present

         become: yes

       - name: Compose the base variant

file modified
+10 -2
@@ -2,10 +2,18 @@ 

     tasks:

       - name: Install dependencies

         package:

-          name: ['python3-pyyaml']

+          name:

+            - 'just'

+            - 'ostree'

+            - 'python3-pyyaml'

+            - 'rpm-ostree'

           state: present

         become: yes

       - name: Validate manifests and scripts syntax

         ansible.builtin.command:

           chdir: "{{ zuul.project.src_dir }}"

-          cmd: ci/validate

+          cmd: just validate

+      - name: Perform dependency resolution for all variants

+        ansible.builtin.command:

+          chdir: "{{ zuul.project.src_dir }}"

+          cmd: just compose-dry-run

file modified
+16
@@ -86,6 +86,22 @@ 

  

      rpm-ostree compose tree --print-only --repo=repo fedora-{{variant}}.yaml

  

+ # Perform dependency resolution for all official variants

+ compose-dry-run:

+     #!/bin/bash

+     set -euxo pipefail

+ 

+     mkdir -p repo cache logs

+     if [[ ! -f "repo/config" ]]; then

+         pushd repo > /dev/null || exit 1

+         ostree init --repo . --mode=bare-user

+         popd > /dev/null || exit 1

+     fi

+ 

+     for v in "silverblue" "kinoite" "sericea" "onyx"; do

+         rpm-ostree compose tree --unified-core --repo=repo --dry-run "fedora-${v}.yaml"

+     done

+ 

  # Alias/shortcut for compose-image command

  compose variant=default_variant: (compose-image variant)

  

Zuul: Use just recipes for all tests


justfile: Add compose-dry-run recipe

To use in CI to perform dependency resolution for all official variants.


ci: Perform dependency resolution for all variants

Expected to fail as I've just merged the fedora-release change and it's not in the repos yet.

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/219437c8971b4ad58f0266da52036c7f

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/c5c2e3c2e54a4766b32946e2f9074861

rebased onto c8d2a200057c5cb08f22b53e36c7b6a6e66371de

2 months ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/dce14ff6cac14789b80f3b21ad7dfa45

error: Packages not found: fedora-release-sway-atomic

As expected, and should be fixed once we get a successful compose.

rebased onto a4dc20d

2 months ago

Pull-Request has been merged by siosm

2 months ago