-
Notifications
You must be signed in to change notification settings - Fork 345
feat(tests): Add tests for gitops-must-gather #958
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
feat(tests): Add tests for gitops-must-gather #958
Conversation
|
Hi @olivergondza. Thanks for your PR. I'm waiting for a redhat-developer member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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. |
|
|
||
| // MustGatherImage is a good place to insert development image | ||
| // Known to be buggy in 1.17.0 | ||
| const MustGatherImage = "registry.redhat.io/openshift-gitops-1/must-gather-rhel8:v1.16.0" // TODO, use tag name with SUT version |
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.
For the purposes of verification:
Working: v1.16.0
Regression: v1.17.0
Test build for unpublished must-gather: quay.io/ogondza/gitops-must-gather:85ba0137a1f377113638862aebff971ecac2c10f
|
|
||
| // TODO https://github.com/redhat-developer/gitops-must-gather/blob/135850b74b56b6fda9fc68ed4165a88b5c7dbeaf/gather_gitops.sh#L40 | ||
| // TODO https://github.com/redhat-developer/gitops-must-gather/blob/135850b74b56b6fda9fc68ed4165a88b5c7dbeaf/gather_gitops.sh#L61 | ||
| // TODO https://github.com/redhat-developer/gitops-must-gather/blob/135850b74b56b6fda9fc68ed4165a88b5c7dbeaf/gather_gitops.sh#L79 |
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.
These are strictly speaking not needed now, but would achieve "full coverage" of the must gather script.
Any help installing given conditions in test cluster is appreciated. Thanks!
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.
I am fine with leaving it like this. We can improve on it later, of if we see a regression in the future.
test/openshift/e2e/ginkgo/parallel/1-120_validate_running_must_gather.go
Outdated
Show resolved
Hide resolved
|
/ok-to-test |
d1e92f0 to
84b1c7c
Compare
|
Any idea why this pattern is failing only in this newely added test? https://github.com/redhat-developer/gitops-operator/actions/runs/17559040088/job/49870492021?pr=958 |
|
Following are failing for some seemingly unrelated reason:
/retest |
|
/retest-required |
84b1c7c to
5087629
Compare
|
/retest |
62d322e to
39b85fd
Compare
66e9085 to
9cb873c
Compare
9cb873c to
962d2e7
Compare
|
/retest |
1 similar comment
|
/retest |
962d2e7 to
3276377
Compare
|
/retest |
|
@varshab1210, can you please review? Thanks! |
3276377 to
22167e6
Compare
|
Thanks for the review and verification, @AdamSaleh and @varshab1210. Do you target particular time window to get this integrated? I would love to have this part of the next QE cycle...
Rebase to make things mergable. No new changes... |
|
/retest |
1 similar comment
|
/retest |
22167e6 to
2d91edb
Compare
|
Gentle ping |
|
/lgtm |
|
/lgtm |
Signed-off-by: Oliver Gondža <ogondza@gmail.com>
Signed-off-by: Oliver Gondža <ogondza@gmail.com>
…o memory + please gosec Signed-off-by: Oliver Gondža <ogondza@gmail.com>
Signed-off-by: Oliver Gondža <ogondza@gmail.com>
Signed-off-by: Oliver Gondža <ogondza@gmail.com>
2d91edb to
650990e
Compare
|
/lgtm |
|
/retest |
|
/test v4.14-images |
|
@olivergondza: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
|
/test v4.14-images |
0755156
into
redhat-developer:master
* feat(tests): Add tests for gitops-must-gather Signed-off-by: Oliver Gondža <ogondza@gmail.com> * feat(tests): validate_running_must_gather.go: permit image override Signed-off-by: Oliver Gondža <ogondza@gmail.com> * fix(tests): 1-120_validate_running_must_gather.go: Do not read file to memory + please gosec Signed-off-by: Oliver Gondža <ogondza@gmail.com> * chore(test): Static analysis fixes Signed-off-by: Oliver Gondža <ogondza@gmail.com> * fix(tests): Suppress checking files not present in older ocp versions Signed-off-by: Oliver Gondža <ogondza@gmail.com> --------- Signed-off-by: Oliver Gondža <ogondza@gmail.com> Signed-off-by: akhil nittala <nakhil@redhat.com>
What type of PR is this?
/kind enhancement
What does this PR do / why we need it:
Automate correctness and compatibility of the https://github.com/redhat-developer/gitops-must-gather/
Have you updated the necessary documentation?
Which issue(s) this PR fixes:
None
Test acceptance criteria:
How to test changes / Special notes to the reviewer:
To be tested as (local running operator):
env LOCAL_RUN=true ./bin/ginkgo -v -focus "validate_running_must_gather" -r ./test/openshift/e2e/ginkgo/parallel/.