-
Notifications
You must be signed in to change notification settings - Fork 242
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: Improve TestValidateState calls from load package #2484
Conversation
test/integration/load/load_test.go
Outdated
@@ -218,8 +260,9 @@ func TestValidCNSStateDuringScaleAndCNSRestartToTriggerDropgzInstall(t *testing. | |||
require.NoError(t, err) | |||
|
|||
// Validate the CNS state | |||
err = validator.Validate(ctx) | |||
require.NoError(t, err) | |||
if testConfig.ValidateStateFile { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be validating the state even if ValidateStateFile
is not provided ? Iine 219 mentioned that ValidateStateFile
provides an option to validate state before other operations. How will we differentiate if we just want to test state after the scale/restart option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this. We should be validating here no matter what. Otherwise the test is not complete.
if replicas < int32(nodeCount) { | ||
t.Logf("Warning - current replica count %v is below current %s node count of %d. Raising replicas to minimum required to ensure there is a pod on every node.", replicas, testConfig.OSType, nodeCount) | ||
replicas = int32(nodeCount * 2) | ||
kubernetes.MustScaleDeployment(ctx, deploymentsClient, deployment, clientset, namespace, podLabelSelector, int(replicas), false) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is possible only when deployment already exists right ? Should it be inside the else
statement ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The if/else block between 139-155 ensures that there will be a load-test deployment
* ci: improve TestValidateState * chore: address comments
deps: bump github.com/spf13/viper from 1.16.0 to 1.18.2 (#2495) Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.16.0 to 1.18.2. - [Release notes](https://github.com/spf13/viper/releases) - [Commits](spf13/viper@v1.16.0...v1.18.2) --- updated-dependencies: - dependency-name: github.com/spf13/viper dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> change config to be uniform ci: increase dependabot PR limit to 10 (#2497) ci: constrain cilium to linux on Release Test Pipeline (#2489) ci: constrain cilium to linux ci: Improve CNI|NPM integration test (#2498) * ci: increase timeout for CNI|NPM intergration test * add: retry to generate NPM logs deps: bump golang.org/x/sys from 0.15.0 to 0.16.0 (#2500) Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.15.0 to 0.16.0. - [Commits](golang/sys@v0.15.0...v0.16.0) --- updated-dependencies: - dependency-name: golang.org/x/sys dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> deps: bump github.com/prometheus/client_golang from 1.16.0 to 1.18.0 (#2501) Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.16.0 to 1.18.0. - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md) - [Commits](prometheus/client_golang@v1.16.0...v1.18.0) --- updated-dependencies: - dependency-name: github.com/prometheus/client_golang dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> deps: bump google.golang.org/protobuf from 1.31.0 to 1.32.0 (#2502) Bumps google.golang.org/protobuf from 1.31.0 to 1.32.0. --- updated-dependencies: - dependency-name: google.golang.org/protobuf dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> deps: bump golang.org/x/crypto from 0.17.0 to 0.18.0 (#2492) Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.17.0 to 0.18.0. - [Commits](golang/crypto@v0.17.0...v0.18.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> deps: bump k8s.io/klog/v2 from 2.110.1 to 2.120.0 (#2503) Bumps [k8s.io/klog/v2](https://github.com/kubernetes/klog) from 2.110.1 to 2.120.0. - [Release notes](https://github.com/kubernetes/klog/releases) - [Changelog](https://github.com/kubernetes/klog/blob/main/RELEASE.md) - [Commits](kubernetes/klog@v2.110.1...v2.120.0) --- updated-dependencies: - dependency-name: k8s.io/klog/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> ci: verbose output for make test-load (#2481) ci: make test-load verbose output fix review comments deps: bump google.golang.org/grpc from 1.59.0 to 1.60.1 (#2494) Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.59.0 to 1.60.1. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.59.0...v1.60.1) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> ci: add OS scale timeout (#2490) ci: add kubeproxy restart before windows k8s conformance testing (#2496) * ci: ensure kubeproxy is running on windows * ci: add set -e Signed-off-by: John Payne <[email protected]> --------- Signed-off-by: John Payne <[email protected]> ci: Improve TestValidateState calls from load package (#2484) * ci: improve TestValidateState * chore: address comments fix: joining multiple dns server lists (#2506) * fix: joining multiple dns server lists * address comments * add 0 check fix: downgrade k8s components to 1.28 (#2505) Signed-off-by: GitHub <[email protected]>
deps: bump github.com/spf13/viper from 1.16.0 to 1.18.2 (#2495) Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.16.0 to 1.18.2. - [Release notes](https://github.com/spf13/viper/releases) - [Commits](spf13/viper@v1.16.0...v1.18.2) --- updated-dependencies: - dependency-name: github.com/spf13/viper dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> change config to be uniform ci: increase dependabot PR limit to 10 (#2497) ci: constrain cilium to linux on Release Test Pipeline (#2489) ci: constrain cilium to linux ci: Improve CNI|NPM integration test (#2498) * ci: increase timeout for CNI|NPM intergration test * add: retry to generate NPM logs deps: bump golang.org/x/sys from 0.15.0 to 0.16.0 (#2500) Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.15.0 to 0.16.0. - [Commits](golang/sys@v0.15.0...v0.16.0) --- updated-dependencies: - dependency-name: golang.org/x/sys dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> deps: bump github.com/prometheus/client_golang from 1.16.0 to 1.18.0 (#2501) Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.16.0 to 1.18.0. - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md) - [Commits](prometheus/client_golang@v1.16.0...v1.18.0) --- updated-dependencies: - dependency-name: github.com/prometheus/client_golang dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> deps: bump google.golang.org/protobuf from 1.31.0 to 1.32.0 (#2502) Bumps google.golang.org/protobuf from 1.31.0 to 1.32.0. --- updated-dependencies: - dependency-name: google.golang.org/protobuf dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> deps: bump golang.org/x/crypto from 0.17.0 to 0.18.0 (#2492) Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.17.0 to 0.18.0. - [Commits](golang/crypto@v0.17.0...v0.18.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> deps: bump k8s.io/klog/v2 from 2.110.1 to 2.120.0 (#2503) Bumps [k8s.io/klog/v2](https://github.com/kubernetes/klog) from 2.110.1 to 2.120.0. - [Release notes](https://github.com/kubernetes/klog/releases) - [Changelog](https://github.com/kubernetes/klog/blob/main/RELEASE.md) - [Commits](kubernetes/klog@v2.110.1...v2.120.0) --- updated-dependencies: - dependency-name: k8s.io/klog/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> ci: verbose output for make test-load (#2481) ci: make test-load verbose output fix review comments deps: bump google.golang.org/grpc from 1.59.0 to 1.60.1 (#2494) Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.59.0 to 1.60.1. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.59.0...v1.60.1) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> ci: add OS scale timeout (#2490) ci: add kubeproxy restart before windows k8s conformance testing (#2496) * ci: ensure kubeproxy is running on windows * ci: add set -e Signed-off-by: John Payne <[email protected]> --------- Signed-off-by: John Payne <[email protected]> ci: Improve TestValidateState calls from load package (#2484) * ci: improve TestValidateState * chore: address comments fix: joining multiple dns server lists (#2506) * fix: joining multiple dns server lists * address comments * add 0 check fix: downgrade k8s components to 1.28 (#2505) Signed-off-by: GitHub <[email protected]>
* ci: improve TestValidateState * chore: address comments
Reason for Change:
TestValidateState()
would allow the test to proceed even if there were no pods scheduled on the cluster causing unnecessary failures withinmake test-load
calls.Issue Fixed:
Requirements:
Notes: