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

tkg test adaptation on tkg-windows #3040

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rajguptavm
Copy link
Contributor

What this PR does / why we need it:
testcase adaptation to support Windows container in Unified TKG

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
testcase adaptation to support Windows container in Unified TKG

Testing done:
In Progress

@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 11, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

The full list of commands accepted by this bot can be found 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 cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 11, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @rajguptavm. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Sep 11, 2024
@svcbot-qecnsdp
Copy link

Started GC block pre-checkin pipeline... Build Number: 52

@svcbot-qecnsdp
Copy link

Build ID: 52
GC build status: FAILURE 
Stage before exit: e2e-tests 
Jenkins E2E Test Results: 
FAIL! -- 0 Passed | 1 Failed | 0 Pending | 881 Skipped
--- FAIL: TestE2E (4.25s)
FAIL

Ginkgo ran 1 suite in 1m8.731279172s

Test Suite Failed
make: Leaving directory `/home/worker/workspace/gc-csi-precheckin-Raj-tkg-windows/Results/52/vsphere-csi-driver`

@svcbot-qecnsdp
Copy link

Started GC block pre-checkin pipeline... Build Number: 53

@svcbot-qecnsdp
Copy link

Build ID: 53
GC build status: FAILURE 
Stage before exit: e2e-tests 
Jenkins E2E Test Results: 
FAIL! -- 0 Passed | 1 Failed | 0 Pending | 881 Skipped
--- FAIL: TestE2E (336.80s)
FAIL

Ginkgo ran 1 suite in 6m39.228501102s

Test Suite Failed
make: Leaving directory `/home/worker/workspace/gc-csi-precheckin-Raj-tkg-windows/Results/53/vsphere-csi-driver`

@rajguptavm rajguptavm force-pushed the tkg-windows-automation branch from 481e064 to 6e23936 Compare September 20, 2024 09:22
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Oct 1, 2024
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 24, 2024
@rajguptavm rajguptavm force-pushed the tkg-windows-automation branch from a4b3093 to 16c089e Compare November 4, 2024 16:02
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 4, 2024
@rajguptavm rajguptavm force-pushed the tkg-windows-automation branch from 16c089e to 90dfbf8 Compare November 4, 2024 16:06
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Nov 7, 2024
tests/e2e/csi_static_provisioning_basic.go Show resolved Hide resolved
tests/e2e/csi_snapshot_utils.go Show resolved Hide resolved
tests/e2e/gc_block_resize_retain_policy.go Show resolved Hide resolved
tests/e2e/gc_block_resize_retain_policy.go Show resolved Hide resolved
tests/e2e/gc_block_volume_expansion.go Show resolved Hide resolved
tests/e2e/gc_block_volume_expansion.go Show resolved Hide resolved
tests/e2e/tkgs_ha_utils.go Show resolved Hide resolved
// execCommandOnGcWorker logs into gc worker node using ssh private key and executes command
func execCommandOnGcWorker(sshClientConfig *ssh.ClientConfig, svcMasterIP string, gcWorkerIp string,
svcNamespace string, cmd string) (fssh.Result, error) {
result := fssh.Result{Host: gcWorkerIp, Cmd: cmd}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this line required?

@@ -2275,7 +2285,9 @@ var _ = ginkgo.Describe("Volume health check", func() {
replicas := *(statefulset.Spec.Replicas)
// Waiting for pods status to be Ready.
fss.WaitForStatusReadyReplicas(ctx, client, statefulset, replicas)
gomega.Expect(fss.CheckMount(ctx, client, statefulset, mountPath)).NotTo(gomega.HaveOccurred())
if !windowsEnv {
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we need to check mountPath in case of windows environments?

@@ -3779,7 +3806,11 @@ func invokeTestForExpandVolumeMultipleTimes(f *framework.Framework, client clien
defer cancel()
ginkgo.By("Invoking Test to verify Multiple Volume Expansions on the same volume")
scParameters := make(map[string]string)
scParameters[scParamFsType] = ext4FSType
if windowsEnv {
Copy link
Contributor

Choose a reason for hiding this comment

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

We can put this in BeforeEach

cmd := []string{"exec", pod.Name, "--namespace=" + namespace, "--", "/bin/sh", "-c",
"cat /mnt/volume1/Pod1.html "}
if windowsEnv {
cmd = []string{"exec", pod.Name, "--namespace=" + namespace, "powershell.exe", "cat /mnt/volume1/Pod1.html"}
Copy link
Contributor

Choose a reason for hiding this comment

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

use filePathPod1 instead /mnt/volume1/Pod1.html in all the places

svcClient, svNamespace := getSvcClientAndNamespace()
setResourceQuota(svcClient, svNamespace, rqLimitScaleTest)
}
// if guestCluster {
Copy link
Contributor

Choose a reason for hiding this comment

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

remove these lines if not needed

_, err = e2eoutput.LookForStringInPodExec(namespace, newPods[0].Name,
[]string{"/bin/cat", "/mnt/volume1/fstype"}, "", time.Minute)
}
// covered in this method createMultiplePods to check fss type
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove commented code

gomega.Expect(err).NotTo(gomega.HaveOccurred())
gomega.Expect(len(op)).To(gomega.BeZero())
if windowsEnv {
cmdTestData := []string{"exec", pod.Name, "--namespace=" + namespace, "powershell.exe", "((Get-FileHash '/mnt/volume1/testdata2.txt' -Algorithm SHA256).Hash -eq (Get-FileHash '/mnt/volume1/testdata2_pod.txt' -Algorithm SHA256).Hash)"}
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this path is used in many places /mnt/volume1/testdata2.txt declare it in e2e_common.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 22, 2024
@rajguptavm rajguptavm force-pushed the tkg-windows-automation branch from d0adfa6 to 55beacc Compare December 10, 2024 09:15
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 10, 2024
@rajguptavm rajguptavm changed the title [WIP] tkg test adaptation on tkg-windows tkg test adaptation on tkg-windows Dec 10, 2024
@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 Dec 10, 2024
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

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.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 17, 2024
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. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants