From 91b9942e1eaa7702623c46a27801ed50e8b94aad Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Sep 04 2025 15:41:05 +0000 Subject: [PATCH 1/2] Improve post-run variable debug --- diff --git a/roles/fedpkg-build-cleanup/tasks/main.yaml b/roles/fedpkg-build-cleanup/tasks/main.yaml index 4d6427a..d576cd6 100644 --- a/roles/fedpkg-build-cleanup/tasks/main.yaml +++ b/roles/fedpkg-build-cleanup/tasks/main.yaml @@ -1,11 +1,9 @@ -- debug: - msg: "task_id = {{ task_id | default('not defined')}}" -- debug: - msg: "zuul_success = {{ zuul_success | default('not defined')}}" -- debug: - msg: "koji_task_returned = {{ koji_task_returned | default('not defined')}}" -- debug: - msg: "zuul_success = {{ zuul_success | bool}}" +- name: Check post-run variables + debug: + msg: | + task_id = {{ task_id | default('not defined')}} + koji_task_returned = {{ koji_task_returned | default('not defined')}} + zuul_success = {{ zuul_success }} - name: Cancel any running scratch builds block: From 43816085275092b716810c7f987743368607ff2c Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Sep 04 2025 15:41:05 +0000 Subject: [PATCH 2/2] Properly set the post-run variables as cacheable --- diff --git a/roles/fedpkg-build-ng/tasks/main.yaml b/roles/fedpkg-build-ng/tasks/main.yaml index 3d41bd5..e4b5126 100644 --- a/roles/fedpkg-build-ng/tasks/main.yaml +++ b/roles/fedpkg-build-ng/tasks/main.yaml @@ -69,6 +69,7 @@ - name: Get task ID set_fact: + cacheable: true task_id: "{{ fedpkg_build.stdout | regex_replace('\n', ' ') | regex_replace('.*Created task: (\\d+).*$', '\\1') }}" - name: Return koji task url @@ -87,6 +88,7 @@ # If the job has timed-out we would not get to this point - name: Note that watch-task did not timeout set_fact: + cacheable: true koji_task_returned: true - block: