Skip to content

Commit 646d949

Browse files
committed
debug! prints
1 parent 7e63d4b commit 646d949

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/normalize_needed_jobs_status.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ def main(argv: list[str]) -> int:
166166
jobs = inputs['jobs'] or {}
167167
jobs_allowed_to_fail = set(inputs['allowed_failures'] or [])
168168
jobs_allowed_to_be_skipped = set(inputs['allowed_skips'] or [])
169+
print(f'{jobs=}')
170+
print(f'{jobs_allowed_to_fail=}')
171+
print(f'{jobs_allowed_to_be_skipped=}')
169172

170173
if not jobs:
171174
with summary_file_path.open( # type: ignore[misc]
@@ -193,23 +196,43 @@ def main(argv: list[str]) -> int:
193196
if job_name in jobs_allowed_to_fail:
194197
allowed_outcome_map[job_name].add('failure')
195198

199+
print(f'{allowed_outcome_map=}')
200+
print(
201+
f"""{
202+
[
203+
job['result'] == 'success' for name, job in jobs.items()
204+
if name not in (jobs_allowed_to_fail | jobs_allowed_to_be_skipped)
205+
]=
206+
}""",
207+
)
208+
print(
209+
f"""{
210+
[
211+
(name, job['result'] in {'skipped', 'success'}) for name, job in jobs.items()
212+
if name in jobs_allowed_to_be_skipped
213+
]=
214+
}""",
215+
)
196216
job_matrix_succeeded = all(
197217
job['result'] in allowed_outcome_map[name]
198218
for name, job in jobs.items()
199219
)
220+
print(f'{job_matrix_succeeded=}')
200221
set_final_result_outputs(job_matrix_succeeded)
201222

202223
allowed_to_fail_jobs_succeeded = all(
203224
job['result'] == 'success'
204225
for name, job in jobs.items()
205226
if name in jobs_allowed_to_fail
206227
)
228+
print(f'{allowed_to_fail_jobs_succeeded=}')
207229

208230
allowed_to_be_skipped_jobs_succeeded = all(
209231
job['result'] == 'success'
210232
for name, job in jobs.items()
211233
if name in jobs_allowed_to_be_skipped
212234
)
235+
print(f'{allowed_to_be_skipped_jobs_succeeded=}')
213236

214237
with summary_file_path.open( # type: ignore[misc]
215238
mode=FILE_APPEND_MODE,

0 commit comments

Comments
 (0)