Skip to content

Bump GitHub Actions off the deprecated Node 20 runtime - #253

Merged
malfet merged 1 commit into
pytorch_sphinx_theme2from
ci-bump-actions
Aug 26, 2026
Merged

malfet merged 1 commit into
pytorch_sphinx_theme2from
ci-bump-actions

Conversation

@malfet

@malfet malfet commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Every run of build-theme.yml currently ends with:

##[warning]Node.js 20 is deprecated. The following actions target Node.js 20 but are
being forced to run on Node.js 24: actions/download-artifact@v4, seemethere/upload-artifact-s3@v5

Bumps the five first-party actions to their current majors:

action before after
actions/checkout v3 v5
actions/setup-python v4 v5
actions/setup-node v3 v5
actions/upload-artifact v4 v5
actions/download-artifact v4 v5

astral-sh/setup-uv@v5 is already current and is left alone.

Not included

seemethere/upload-artifact-s3@v5 is the other action named in the warning, but v5 is its latest release — it can't be fixed by a bump. It needs replacing with pytorch/test-infra/.github/actions/upload-artifact-s3, which expects permissions: id-token: write for OIDC. This workflow sets no permissions: block today and the upload currently succeeds off the self-hosted runner's instance profile, so that swap risks breaking doc previews and can't be validated before landing. Left as a follow-up.

Runner labels were checked and are fine: linux.2xlarge is a current entry in test-infra's scale-config.yml and the doc-preview job completes on it in about a minute.

Test plan

CI on this PR exercises the whole workflow — build-docs runs checkout, setup-python, setup-node and upload-artifact; doc-preview runs download-artifact. A green run plus a doc preview that still publishes covers every bumped action.


Authored with the assistance of an AI coding agent.

GitHub now warns on every run of this workflow:

    Node.js 20 is deprecated. The following actions target Node.js 20 but
    are being forced to run on Node.js 24: actions/download-artifact@v4,
    seemethere/upload-artifact-s3@v5

Bumps the five first-party actions to their current majors. astral-sh/setup-uv
is already current and is left alone.

seemethere/upload-artifact-s3 is deliberately not touched here. v5 is its
latest release, so it cannot be fixed by a version bump -- it needs replacing
with pytorch/test-infra/.github/actions/upload-artifact-s3, which expects
`permissions: id-token: write` for OIDC. This workflow sets no permissions
block today and the upload currently succeeds off the self-hosted runner's
instance profile, so that swap risks breaking doc previews and cannot be
validated before it lands. Left as a follow-up.

Test Plan:

CI on this PR exercises the whole workflow: build-docs runs checkout,
setup-python, setup-node and upload-artifact, and doc-preview runs
download-artifact. A green run plus a doc preview that still publishes
covers every bumped action.

Authored with the assistance of an AI coding agent.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@meta-cla meta-cla Bot added the cla signed label Aug 25, 2026
@netlify

netlify Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for pytorchsphinxtheme ready!

Name Link
🔨 Latest commit f34e945
🔍 Latest deploy log https://app.netlify.com/projects/pytorchsphinxtheme/deploys/6a8dc07f2dd5b20008bdb8eb
😎 Deploy Preview https://deploy-preview-253--pytorchsphinxtheme.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@malfet
malfet marked this pull request as ready for review August 25, 2026 16:20
@malfet
malfet merged commit 784bae6 into pytorch_sphinx_theme2 Aug 26, 2026
7 checks passed
@malfet malfet mentioned this pull request Aug 27, 2026
malfet added a commit that referenced this pull request Aug 27, 2026
* Bump theme to 0.4.12

Picks up the search relevance fix (#252) and the GitHub Actions Node 20
bumps (#253).

Goes straight from 0.4.10 to 0.4.12. 0.4.11 was published to PyPI on
2026-05-19 from the `bump-theme-0.4.11` branch, which was never merged, so
the branch still read 0.4.10 and there is no 0.4.11 changelog entry. This
bump lands on the branch so the next release does not inherit the same gap.

Test Plan:

```
python3 -c "import pytorch_sphinx_theme2 as t; print(t.__version__)"
grep -rn '0\.4\.12' setup.py pytorch_sphinx_theme2/__init__.py
```

All three version strings (setup.py, __version__, and the dict returned by
setup()) report 0.4.12.

Authored with the assistance of an AI coding agent.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Backfill v0.4.11 changelog entry

0.4.11 shipped to PyPI on 2026-05-19 but its bump branch was never merged,
so the changelog jumped 0.4.10 to 0.4.12 while the code it contained (#251)
is on the branch and reaches anyone upgrading from 0.4.10. Recording it as
its own section keeps that accurate for both sets of users, rather than
folding it into v0.4.12 and telling existing 0.4.11 users about changes they
already have.

Authored with the assistance of an AI coding agent.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
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.

1 participant