fix: treat skipped molecule tests as terminal in wait_for_checks
CI / validate (pull_request) Successful in 2m27s
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 1m52s

This commit is contained in:
Emil Simeonov
2026-08-25 03:30:17 +02:00
parent 5d0e533bd1
commit 07c9322a72
+2 -2
View File
@@ -328,11 +328,11 @@ jobs:
import sys,json
d=json.load(sys.stdin)
statuses={s['context']:s['status'] for s in d.get('statuses',[])}
# Check if all molecule-tests contexts are terminal (success/failure)
# Check if all molecule-tests contexts are terminal (success/failure/skipped)
mol_contexts=[k for k in statuses if 'molecule-tests' in k]
if not mol_contexts:
print('skipped')
elif all(statuses[k] in ('success','failure') for k in mol_contexts):
elif all(statuses[k] in ('success','failure','skipped') for k in mol_contexts):
if any(statuses[k]=='failure' for k in mol_contexts):
print('failure')
else: