From 5d0e533bd1518a95bd07bfdba84f77b91c289744 Mon Sep 17 00:00:00 2001 From: Emil Simeonov Date: Tue, 25 Aug 2026 03:17:01 +0200 Subject: [PATCH] fix: handle skipped molecule tests in wait_for_checks --- .gitea/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b2b1b5f..4e55338 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -331,7 +331,7 @@ jobs: # Check if all molecule-tests contexts are terminal (success/failure) mol_contexts=[k for k in statuses if 'molecule-tests' in k] if not mol_contexts: - print('pending') + print('skipped') elif all(statuses[k] in ('success','failure') for k in mol_contexts): if any(statuses[k]=='failure' for k in mol_contexts): print('failure') @@ -341,8 +341,8 @@ jobs: print('pending') ") echo "Molecule tests status: $STATUS (elapsed: ${ELAPSED}s)" - if [ "$STATUS" = "success" ]; then - echo "All molecule tests passed." + if [ "$STATUS" = "success" ] || [ "$STATUS" = "skipped" ]; then + echo "All molecule tests passed (or skipped — no ansible changes)." break elif [ "$STATUS" = "failure" ]; then echo "ERROR: Molecule tests failed. Aborting auto-merge."