Skip to content

Add static version mapping for EOL Kubernetes releases#6150

Open
willie-yao wants to merge 1 commit intokubernetes-sigs:mainfrom
willie-yao:resolve-old-releases
Open

Add static version mapping for EOL Kubernetes releases#6150
willie-yao wants to merge 1 commit intokubernetes-sigs:mainfrom
willie-yao:resolve-old-releases

Conversation

@willie-yao
Copy link
Contributor

What type of PR is this?
/kind failing-test

What this PR does / why we need it:
This PR fixes issues with finding releases for LTS kubernetes versions

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests
  • cherry-pick candidate

Release note:

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Mar 6, 2026
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 6, 2026
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign neolit123 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@willie-yao willie-yao force-pushed the resolve-old-releases branch from 4550ca8 to 64d26d5 Compare March 6, 2026 01:34
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 6, 2026
@codecov
Copy link

codecov bot commented Mar 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 44.43%. Comparing base (aa8af32) to head (205141e).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6150   +/-   ##
=======================================
  Coverage   44.43%   44.43%           
=======================================
  Files         280      280           
  Lines       25367    25367           
=======================================
  Hits        11272    11272           
  Misses      13283    13283           
  Partials      812      812           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

EOL_VERSION="$(capz::util::get_eol_k8s_version "${KUBERNETES_VERSION}" || true)"
if [[ -n "${EOL_VERSION}" ]]; then
echo "EOL Kubernetes version detected, using release ${EOL_VERSION}"
export KUBERNETES_VERSION="${EOL_VERSION}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to export this as CI_VERSION not KUBERNETES_VERSION

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was setting it as KUBERNETES_VERSION here because if we're testing with a pinned version, it would make more sense to just use the normal cluster-template-prow since we're not testing any pseudo-versions. However this would break with the existing test-infra configuration because it is hard-coded to the prow-ci-version template: https://github.com/kubernetes/test-infra/blob/master/config/jobs/kubernetes-sigs/cloud-provider-azure/cloud-provider-azure-presubmit-1.31.yaml#L76

I'll just set it to CI_VERSION as it should still work it'll just have extra steps with replacing binaries

@willie-yao willie-yao force-pushed the resolve-old-releases branch from 64d26d5 to 9e2e447 Compare March 10, 2026 18:12
@willie-yao
Copy link
Contributor Author

/test pull-cluster-api-provider-azure-conformance
/test pull-cluster-api-provider-azure-conformance-custom-builds
/test pull-cluster-api-provider-azure-conformance-dual-stack-with-ci-artifacts
/test pull-cluster-api-provider-azure-conformance-ipv6-with-ci-artifacts
/test pull-cluster-api-provider-azure-conformance-with-ci-artifacts
/test pull-cluster-api-provider-azure-conformance-with-ci-artifacts-dra
/test pull-cluster-api-provider-azure-e2e-optional

@willie-yao
Copy link
Contributor Author

/retest

Signed-off-by: William Yao <william2000yao@gmail.com>
@willie-yao willie-yao force-pushed the resolve-old-releases branch from 9e2e447 to 205141e Compare March 11, 2026 19:35
@k8s-ci-robot
Copy link
Contributor

@willie-yao: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cluster-api-provider-azure-e2e-optional 9e2e447 link false /test pull-cluster-api-provider-azure-e2e-optional
pull-cluster-api-provider-azure-conformance-custom-builds 205141e link false /test pull-cluster-api-provider-azure-conformance-custom-builds

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@willie-yao
Copy link
Contributor Author

Conformance custom builds should be fixed by #6148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants