Skip to content

Make integration tests support windows 2022 #1999

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

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

tonyzhc
Copy link
Contributor

@tonyzhc tonyzhc commented Mar 18, 2025

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind cleanup

What this PR does / why we need it:

We need to support Windows 2022 nodes as well. This PR also makes the integration tests perform build for its platform only, instead of a multi-arch build. This will speed up the time to run the test.

This test will subsequently be enabled to run in CI in https://github.com/kubernetes/test-infra/blob/master/config/jobs/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/gcp-compute-persistent-disk-csi-driver-windows.yaml. We will only need to change the WINDOWS_NODE_OS_DISTRIBUTION env var.

Which issue(s) this PR fixes:

Fixes b/404487793.

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

@k8s-ci-robot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Mar 18, 2025
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 18, 2025
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 18, 2025
@sunnylovestiramisu
Copy link
Contributor

Can we submit the test-infra change first for 2022 and then enable the tests to run in this PR?

@tonyzhc
Copy link
Contributor Author

tonyzhc commented Mar 18, 2025

Can we submit the test-infra change first for 2022 and then enable the tests to run in this PR?

kubernetes/test-infra#34534

@tonyzhc tonyzhc marked this pull request as ready for review March 19, 2025 15:40
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 19, 2025
@k8s-ci-robot k8s-ci-robot requested a review from mattcary March 19, 2025 15:41
@@ -35,6 +36,11 @@ if [ "$use_kubetest2" = true ]; then
go install sigs.k8s.io/kubetest2/kubetest2-tester-ginkgo@${kt2_version}
fi

if [ "$windows_distribution" != "win2019" -a "$windows_distribution" != "win2022"] {
print "Invalid windows distribution $windows_distribution provided. Exiting."
Copy link
Contributor

Choose a reason for hiding this comment

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

if [ "$windows_distribution" != "win2019" -a "$windows_distribution" != "win2022"]
print "Invalid windows distribution $windows_distribution provided. Exiting."
exit 1
fi

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤦

@tonyzhc tonyzhc force-pushed the windows-2022 branch 2 times, most recently from 3a439e4 to 2b4e84d Compare March 19, 2025 18:27
@tonyzhc
Copy link
Contributor Author

tonyzhc commented Mar 19, 2025

/retest

@tonyzhc tonyzhc force-pushed the windows-2022 branch 4 times, most recently from c90e8ef to fc5dd39 Compare March 26, 2025 16:24
@tonyzhc
Copy link
Contributor Author

tonyzhc commented Mar 26, 2025

@sunnylovestiramisu ok, this PR produced passing results and is ready for review.

@tonyzhc
Copy link
Contributor Author

tonyzhc commented Mar 26, 2025

/retest

@sunnylovestiramisu
Copy link
Contributor

pull-gcp-compute-persistent-disk-csi-driver-e2e-windows-2019 failed with [It] External Storage [Driver: csi-gcepd-sc-windows--pd-volumesnapshotclass] [Testpattern: Pre-provisioned Snapshot (retain policy)] snapshottable [Feature:VolumeSnapshotDataSource] volume snapshot controller should check snapshot fields, check restore correctly works after modifying source data, check deletion (persistent) which is a flaky test.

@@ -24,12 +24,6 @@ while [[ -n "${1-}" ]]; do
esac
done

kubectl wait \
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we do not need to check driver readiness anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, this was a dev change to test things out. Added back.

@sunnylovestiramisu
Copy link
Contributor

/retest

@sunnylovestiramisu
Copy link
Contributor

/test pull-gcp-compute-persistent-disk-csi-driver-kubernetes-integration

@sunnylovestiramisu
Copy link
Contributor

/test pull-gcp-compute-persistent-disk-csi-driver-e2e-windows-2019

@sunnylovestiramisu
Copy link
Contributor

/lgtm
/approve

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sunnylovestiramisu, tonyzhc

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 Mar 27, 2025
@k8s-ci-robot k8s-ci-robot merged commit c5c4c87 into kubernetes-sigs:master Mar 27, 2025
9 checks passed
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. 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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants