-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
CI: Fix using check_source
flags as bool
#121848
CI: Fix using check_source
flags as bool
#121848
Conversation
911e78f
to
84f6498
Compare
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 python#121831 mergeable again. [1]: python#121766 (comment) [2]: https://github.com/python/cpython/actions/runs/9950331379/job/27501637459?pr=121831#step:2:244
This updates it to avoid referencing to `no-GIL` in favor of the official term `free-threading`.
84f6498
to
d42c6f6
Compare
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.
Thanks!
@hugovk this probably needs backport labels too, right? |
Yeah, let's test to confirm it works as expected by updating #121831 after this has merged. |
check_source
flags as boolcheck_source
flags as bool
Sorry, @webknjaz and @hugovk, I could not cleanly backport this to
|
(cherry picked from commit a0b205b) Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk@sydorenko.org.ua>
GH-121853 is a backport of this pull request to the 3.13 branch. |
GH-121853 is a backport of this pull request to the 3.13 branch. |
(cherry picked from commit a0b205b) Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk@sydorenko.org.ua>
GH-121855 is a backport of this pull request to the 3.12 branch. |
Manual backport to 3.12: #121855 |
GH-121855 is a backport of this pull request to the 3.12 branch. |
1 similar comment
GH-121855 is a backport of this pull request to the 3.12 branch. |
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk@sydorenko.org.ua>
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 asWaiting for pending jobs
and in the${{ needs }}
context, they would have aresult: failure
entry [2].This should help make PRs like #121831 mergeable again.