fix: handle skipped molecule tests in wait_for_checks
CI / validate (pull_request) Successful in 3m3s
CI / molecule-tests (1) (pull_request) Skipped
CI / molecule-tests (2) (pull_request) Skipped
CI / molecule-tests (3) (pull_request) Skipped
CI / molecule-tests (4) (pull_request) Skipped
CI / auto-merge (pull_request) Failing after 10m4s

This commit is contained in:
Emil Simeonov
2026-08-25 03:17:01 +02:00
parent 97579f6363
commit 5d0e533bd1
+3 -3
View File
@@ -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."