Skip to content
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: fixing issue where WINDOWS_SERVER_VERSION does not work for cluster-template-prow-ci-version templates #2350

Merged
merged 1 commit into from
Jun 3, 2022

Conversation

marosset
Copy link
Contributor

@marosset marosset commented Jun 2, 2022

Signed-off-by: Mark Rossetti [email protected]

What type of PR is this?
/kind bug

What this PR does / why we need it:

Recently several CI jobs that test Windows Server 2022 were switched from using KUBERNETES_VERSION=v1.23.5 to KUBERNETES_VERSION=latest-1.23 which caused the cluster template to switch from cluster-template-prow.yaml to `cluster-template-prow-ci-version.yaml.

cluster-template-prow-ci-version.yaml has a hard-coded image which caused the defaulting logic that uses WINDOWS_SERVER_VERSION to not run.

This change allows cluster-template-prow-ci-version.yaml templates to provision either Windows Server 2019 or Windows Server 2022 machines if WINDOWS_SERVER_VERSION is set.

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:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

none

…er-template-prow-ci-version templates

Signed-off-by: Mark Rossetti <[email protected]>
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 2, 2022
@k8s-ci-robot k8s-ci-robot requested review from devigned and shysank June 2, 2022 22:05
@marosset
Copy link
Contributor Author

marosset commented Jun 2, 2022

/assign @jackfrancis @jsturtevant
/cc @edreed

We'll want to cherry-pick this to release-1.23 branch too.

I have manually verified that the correct images are selected for windows nodes.

@marosset
Copy link
Contributor Author

marosset commented Jun 2, 2022

/test ?

@k8s-ci-robot
Copy link
Contributor

@marosset: The following commands are available to trigger required jobs:

  • /test pull-cluster-api-provider-azure-build
  • /test pull-cluster-api-provider-azure-e2e
  • /test pull-cluster-api-provider-azure-test
  • /test pull-cluster-api-provider-azure-verify

The following commands are available to trigger optional jobs:

  • /test pull-cluster-api-provider-azure-apidiff
  • /test pull-cluster-api-provider-azure-apiversion-upgrade
  • /test pull-cluster-api-provider-azure-capi-e2e
  • /test pull-cluster-api-provider-azure-ci-entrypoint
  • /test pull-cluster-api-provider-azure-conformance
  • /test pull-cluster-api-provider-azure-conformance-with-ci-artifacts
  • /test pull-cluster-api-provider-azure-coverage
  • /test pull-cluster-api-provider-azure-e2e-exp
  • /test pull-cluster-api-provider-azure-e2e-optional
  • /test pull-cluster-api-provider-azure-e2e-workload-upgrade
  • /test pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts
  • /test pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts-serial-slow

Use /test all to run the following jobs that were automatically triggered:

  • pull-cluster-api-provider-azure-apidiff
  • pull-cluster-api-provider-azure-build
  • pull-cluster-api-provider-azure-ci-entrypoint
  • pull-cluster-api-provider-azure-coverage
  • pull-cluster-api-provider-azure-e2e
  • pull-cluster-api-provider-azure-test
  • pull-cluster-api-provider-azure-verify

In response to this:

/test ?

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/test-infra repository.

@marosset
Copy link
Contributor Author

marosset commented Jun 2, 2022

/test pull-cluster-api-provider-azure-ci-entrypoint
/test pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts

@edreed
Copy link

edreed commented Jun 2, 2022

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 2, 2022
Copy link
Contributor

@jackfrancis jackfrancis left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot
Copy link
Contributor

@marosset: The following test 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-windows-containerd-upstream-with-ci-artifacts 2849dc3 link false /test pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts

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.

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/test-infra repository. I understand the commands that are listed here.

@marosset
Copy link
Contributor Author

marosset commented Jun 2, 2022

the faillures in pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts are known and related to runAsUser being set

@CecileRobertMichon
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CecileRobertMichon

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

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 3, 2022
@k8s-ci-robot k8s-ci-robot merged commit 46671a5 into kubernetes-sigs:main Jun 3, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.4 milestone Jun 3, 2022
@marosset
Copy link
Contributor Author

marosset commented Jun 3, 2022

/cherry-pick release-1.3

@k8s-infra-cherrypick-robot

@marosset: new pull request created: #2352

In response to this:

/cherry-pick release-1.3

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/test-infra repository.

@marosset marosset deleted the ws2022-ci-build-fixes branch June 3, 2022 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants