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

Test fixes and enhancements #597

Merged
merged 5 commits into from
Jan 29, 2024

Conversation

adrianchiris
Copy link
Collaborator

Various fixes/enhancements to tests and their execution. refer to individual commits for more info

- remove redundant "vet" target as lint tests already
  cover its functionality
- remove commented out code
- add option to provide specific pkgs to test in make test
  target via TESTPKGS env var, preserving current behaviour
  if not provided

Signed-off-by: adrianc <[email protected]>
Add step to run controller tests with k8s cluster type
as well.

Signed-off-by: adrianc <[email protected]>
its not needed to start envtest.
moreover without this change, envtest environment
would have remained running in the system as it was not stopped
when test finished.

Signed-off-by: adrianc <[email protected]>
- skip sriovnetworkpoolconfig only test-case in
  kubernetes cluster as it only valid for openshift.
- general: only stop envtest if it was successfully started
  to avoid nil pointer dereference in case system was missconfigured
  since AfterSuite Ginkgo node would run even if BeforeSuite node failed

Signed-off-by: adrianc <[email protected]>
- remove deprecated use of async node
- fail if creating client returned nil
- use ptr pkg instead of pointer package as its deprecated

Signed-off-by: adrianc <[email protected]>
Copy link

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@adrianchiris
Copy link
Collaborator Author

@andreaskaris PTAL

@coveralls
Copy link

Pull Request Test Coverage Report for Build 7696741691

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 24.34%

Totals Coverage Status
Change from base Build 7694756782: 0.0%
Covered Lines: 2702
Relevant Lines: 11101

💛 - Coveralls

@adrianchiris adrianchiris requested a review from zeeke January 29, 2024 15:10
Copy link
Member

@zeeke zeeke left a comment

Choose a reason for hiding this comment

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

LGTM

@adrianchiris
Copy link
Collaborator Author

thx @zeeke, merging this one!

@adrianchiris adrianchiris merged commit 5b5e468 into k8snetworkplumbingwg:master Jan 29, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants