-
Notifications
You must be signed in to change notification settings - Fork 66
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
Library: add ability to get a test list #1100
Library: add ability to get a test list #1100
Conversation
Hi @edcdavid. Thanks for your PR. I'm waiting for a redhat-openshift-ecosystem 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/test-infra repository. |
Hi @edcdavid preflight already has the function to list the checks via |
Hi @acornett21 thanks! I believe that would work. I missed it before . I will close the PR |
|
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.
@acornett21, Can I use InitializeOperatorChecks directly to get the other metadata fields for the check? I also proposed in this PR to add an Err field in the Result structure.
/ok-to-test |
c1713e5
to
c295c29
Compare
Also returns the error message in case a test errors out
b2481f0
to
1741681
Compare
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.
Please review
Can we also resolve the spam block from github for me I never intentionally acted rude if I did I apologize I have not worked with a group on all my projects and if I offended sorry |
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.
/lgt
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 bit about moving the field to be private. LMKWYT.
from change #1100: |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bcrochet, edcdavid, komish The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Extracts the check listing component from the operatorCheck and containerCheck Run functions and exposes a "List" function. This code using the library to list the checks (including full metadata) that are executed by the Run function without actually running the checks.
A new Err field is added to the Result struct to report the detail of errors (generated by ExecuteChecks, see
openshift-preflight/internal/engine/engine.go
Line 234 in 31f7e81
see: redhat-best-practices-for-k8s/certsuite#1684