Skip to content

docs(ci): update outdated action versions and image in CI examples#4649

Open
TejasAmle wants to merge 3 commits into
ansible:mainfrom
TejasAmle:claude/update-ci-docs-examples
Open

docs(ci): update outdated action versions and image in CI examples#4649
TejasAmle wants to merge 3 commits into
ansible:mainfrom
TejasAmle:claude/update-ci-docs-examples

Conversation

@TejasAmle

Copy link
Copy Markdown

What

Updates four stale items in docs/ci.md that would cause errors or deprecation warnings for users copying the examples:

  1. actions/checkout@v2@v4 — GitHub deprecated v1/v2/v3 of this action; v4 is the current recommended version.
  2. actions/setup-python@v2@v4 — Same deprecation; v4 is the current release.
  3. Azure Pipelines ubuntu-16.04ubuntu-22.04 — Ubuntu 16.04 reached EOL in April 2021 and was removed as a GitHub-hosted runner image. Copying this example as-is would fail with an image-not-found error.
  4. Tox link in Travis CI sectiontox.readthedocs.io/en/latesthttps://tox.wiki/en/latest/ (the official documentation home since 2022; the old URL still redirects, but the canonical URL should be used).

Why

Users following the CI guide and copy-pasting examples could hit:

  • Deprecation warnings in their GitHub Actions runs (v2 actions)
  • A build failure on Azure Pipelines (ubuntu-16.04 image no longer exists)
  • A redirect on the Tox link (minor, but not best practice)

How verified

Diff is purely additive-safe (doc-only). No logic changed. Checked that actions/checkout@v4 and actions/setup-python@v4 are the current stable releases on the GitHub Marketplace. Confirmed ubuntu-22.04 is an available Azure Pipelines / GitHub-hosted image.

- Bump actions/checkout and actions/setup-python from v2 to v4
  (v2 is deprecated by GitHub and will trigger deprecation warnings)
- Update Azure Pipelines vmImage from ubuntu-16.04 to ubuntu-22.04
  (ubuntu-16.04 reached EOL in April 2021 and is no longer available
  as a GitHub-hosted runner)
- Fix Tox link in Travis CI section from tox.readthedocs.io to
  tox.wiki (the official documentation home since 2022)

Signed-off-by: TejasAmle <tejas.amle71@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants