#161 Add some debug for when the conditional is not triggerred
Merged by zuul. Opened by lecris.
lecris/zuul-distro-jobs cancel-scratch-build  into  master

Download 161.patch

The previous change in https://pagure.io/zuul-distro-jobs/pull-request/159 did not trigger the cleanup. The conditionals look fine:
- task_id was set when the build was canceled and it should have been available to the post-run
- zuul_success | bool should be false because it was aborted
- koji_task_returned was not yet defined

One of these failed, so adding some debug to know which one

2025-09-03 11:14:57.442665 | 
2025-09-03 11:14:57.442801 | TASK [fedpkg-build-ng : fail]
2025-09-03 11:14:57.479732 | container | skipping: Conditional result was False
2025-09-03 11:14:57.486341 | 
2025-09-03 11:14:57.486416 | TASK [fedpkg-build-ng : Get task ID]
2025-09-03 11:14:57.537560 | container | ok
2025-09-03 11:14:57.542610 | 
2025-09-03 11:14:57.542672 | TASK [fedpkg-build-ng : Return koji task url]
2025-09-03 11:14:57.595782 | container | ok
2025-09-03 11:14:57.601073 | 
2025-09-03 11:14:57.601135 | TASK [fedpkg-build-ng : Wait for koji task to finish]
2025-09-03 11:15:03.079793 | container | Watching tasks (this may be safely interrupted)...
2025-09-03 11:15:03.140235 | container | 136721623 build (rawhide, /rpms/python-scikit-build-core.git:8752a190ba43d5bb5496fbdeb7e4ed45468e196a): free
2025-09-03 11:15:24.809439 | RUN END RESULT_ABORTED: [trusted : pagure.io/fedora-zuul-jobs-config/playbooks/koji/build-ng.yaml@master]
2025-09-03 11:15:24.811196 | POST-RUN START: [trusted : pagure.io/fedora-zuul-jobs-config/playbooks/koji/cleanup.yaml@master]
2025-09-03 11:15:25.386010 | 
2025-09-03 11:15:25.386137 | PLAY [all]
2025-09-03 11:15:25.405589 | 
2025-09-03 11:15:25.405698 | TASK [include_role : fedpkg-build-cleanup]
2025-09-03 11:15:25.425520 | container | ok
2025-09-03 11:15:25.438099 | 
2025-09-03 11:15:25.438178 | TASK [fedpkg-build-cleanup : Get the current state of Koji task]
2025-09-03 11:15:25.728990 | container | skipping: Conditional result was False
2025-09-03 11:15:25.741314 | 
2025-09-03 11:15:25.741466 | TASK [fedpkg-build-cleanup : Get koji task state]
2025-09-03 11:15:25.789924 | container | skipping: Conditional result was False
2025-09-03 11:15:25.808917 | 
2025-09-03 11:15:25.809075 | TASK [fedpkg-build-cleanup : Cancel koji scratch build]
2025-09-03 11:15:26.277035 | container | skipping: Conditional result was False
2025-09-03 11:15:26.317889 | 
2025-09-03 11:15:26.317975 | PLAY RECAP
2025-09-03 11:15:26.318034 | container | ok: 0 changed: 0 unreachable: 0 failed: 0 skipped: 3 rescued: 0 ignored: 0
2025-09-03 11:15:26.318070 | 
2025-09-03 11:15:26.411615 | POST-RUN END RESULT_ABORTED: [trusted : pagure.io/fedora-zuul-jobs-config/playbooks/koji/cleanup.yaml@master]

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/ecb2432b1bd84aa49fe05276efc9e825

Metadata Update from @lecris:
- Pull-request tagged with: gateit

Build succeeded (gate pipeline).
https://fedora.softwarefactory-project.io/zuul/buildset/1f2e161cca4f4d1e97dcf6255abea562

Pull-Request has been merged by zuul

Metadata