-
Notifications
You must be signed in to change notification settings - Fork 9
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
Sonobuoy Conformance Results #204
base: main
Are you sure you want to change the base?
Conversation
I'll be running golangci-lint run a lot more before creating PRs in the future.... Apologies |
entrypoint/sonobuoyconformance/sonobuoyconformance_suite_test.go
Outdated
Show resolved
Hide resolved
pkg/testcase/networkconnectivity.go
Outdated
cluster.Config.Product) + " https://127.0.0.1:6443/healthz", | ||
} | ||
|
||
servers, err := shared.GetNodesByRoles("control-plane") |
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.
nit: servers
-> cpNodes
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.
controlPlaneNodes is my replacement string again long for comprehension considering it shouldn't be a string that is typed often but that is read more than re-typed.
No worries, you can just run |
pkg/testcase/cluster.go
Outdated
sonobuoyVersion := customflag.ServiceFlag.External.SonobuoyVersion | ||
err := shared.SonobuoyMixedOS("install", sonobuoyVersion) | ||
// TestDisplayClusterDetails used to display cluster details. | ||
func TestDisplayClusterDetails() { |
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.
Are we not using this here? https://github.com/rancher/distros-test-framework/blob/main/pkg/template/helper.go#L79
Update path is all tests thats using this method
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 method is still exposed publicly from the conformance file
…ations, adding test string flag
…nings and emitting info to QA
os.Exit(1) | ||
} | ||
|
||
return true |
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.
return is not needed as its not used
Proposed Changes
Adding the ability to run sonobuoy and get the results from the run of conformance results
the command to run it exists within the makefile and it has been edited to accommodate the long timeout window that conformance results frequently hit within go/ginkgo expectations.
Types of Changes
It can be a quick test by altering the launchSonobuoyTests("quick") but the default is to run the full conformance suite from upstream. Primarily to be used during patch validation runs but it could be used more frequently in other ways to quickly check a clusters status. Although if you have a cluster running the fastest and easiest way to run conformance is to do it the simple way upstream does it with a simple yaml deployment.
Testing
Checklist:
If your PR changes anything on or related to Jenkins, run it pointing to your branch to make sure it's okay.
not yet
Verify code lint; we should not have errors.
Update the documentation if needed.
✅
Update makefile and docker run if adding new tests.
✅
Run your tests at least 4 times with all configurations needed and possible.
✅
If needed test with different os types.
✅
Linked Issues
Further Comments