-
-
Notifications
You must be signed in to change notification settings - Fork 24
🐛 Use allowed-failures and skips equally #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: unstable/v1
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -166,6 +166,9 @@ def main(argv: list[str]) -> int: | |||||
| jobs = inputs['jobs'] or {} | ||||||
| jobs_allowed_to_fail = set(inputs['allowed_failures'] or []) | ||||||
| jobs_allowed_to_be_skipped = set(inputs['allowed_skips'] or []) | ||||||
| print(f'{jobs=}') | ||||||
| print(f'{jobs_allowed_to_fail=}') | ||||||
| print(f'{jobs_allowed_to_be_skipped=}') | ||||||
|
|
||||||
| if not jobs: | ||||||
| with summary_file_path.open( # type: ignore[misc] | ||||||
|
|
@@ -185,28 +188,51 @@ def main(argv: list[str]) -> int: | |||||
| ) | ||||||
| return 1 | ||||||
|
|
||||||
| allowed_outcome_map = {} | ||||||
| for job_name in jobs: | ||||||
| allowed_outcome_map[job_name] = {'success'} | ||||||
| if job_name in jobs_allowed_to_be_skipped: | ||||||
| allowed_outcome_map[job_name].add('skipped') | ||||||
| if job_name in jobs_allowed_to_fail: | ||||||
| allowed_outcome_map[job_name].add('failure') | ||||||
|
||||||
| allowed_outcome_map[job_name].add('failure') | |
| allowed_outcome_map[job_name].update({'failure', 'skipped', 'cancelled'}) |
Copilot
AI
Feb 8, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are multiple additional debug prints here (including printing computed lists and job_matrix_succeeded) that will add noisy log output for every action run. Please remove them or use a structured/conditional debug logger controlled by an input/env var so normal runs stay clean.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The added debug
print(f'{jobs=}')(and the following prints) can leak potentially sensitive data into GitHub Actions logs.jobsincludes each needed job’soutputs, which may contain secrets depending on workflow usage. Please remove these prints or gate them behind an explicit debug flag and ensure any logged data excludes job outputs.