Skip to content

[3.12] CI: Fix using check_source flags as bool (GH-121848) #121855

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

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

webknjaz
Copy link
Contributor

Previously, those flags would sometimes end up having empty string values, which tends to break evaluating them as JSON. This patch adds false fallbacks to all such outputs.

This allows feeding them to fromJSON() without a fear of them causing surprising internal behaviors in the GitHub Actions CI/CD workflows platform itself [1]. The behavior observed was that some skipped jobs wouldn't show up in the workflow sidebar view at all, would display in the graph view as Waiting for pending jobs and in the ${{ needs }} context, they would have a result: failure entry [2].

This should help make PRs like #121831 mergeable again.

(cherry picked from commit a0b205b)

(cherry picked from commit a0b205b)

Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk@sydorenko.org.ua>
@hugovk hugovk changed the title [3.12] 🧪🚑 Fix using check_source flags as bool (GH-121848). [3.12] Fix using check_source flags as bool (GH-121848) Jul 16, 2024
@hugovk hugovk enabled auto-merge (squash) July 16, 2024 13:55
@hugovk hugovk changed the title [3.12] Fix using check_source flags as bool (GH-121848) [3.12] CI: Fix using check_source flags as bool (GH-121848) Jul 16, 2024
@hugovk hugovk merged commit 61d5e87 into python:3.12 Jul 16, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants