-
Notifications
You must be signed in to change notification settings - Fork 23
Add prow job in BMO to generate CR documentation #1108
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
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
f159c0b
to
533546e
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.
This will generate the doc, but its missing the part where it detects if something has changed. That is easier to implement if you look at the existing hack/ scripts how they deal with local run and the prow run.
@tuminoid I see that the pattern in hack/ is to launch a podman container, and once in it we execute a command, but I didn't understand what you meant by the detecting if something has changed part? Does the 'run_if_changed' prow argument not take care of that? |
The point of crdoc generation in tests is to see if rerunning it produces a diff, which would mean the author did not include the updated documentation in their PR. So it needs to fulfill two things:
|
533546e
to
02b848e
Compare
- name: generate-api-docs | ||
branches: | ||
- main | ||
run_if_changed: '(config/base/crds/bases/.*|^Makefile)$*' |
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.
Also needs to run if the gen-api-docs.sh script itself changes, so we validate it doesn't break. Sorry forgot that one first time around.
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.
One more comment, and also please fix the commit and PR title and description.
Signed-off-by: Mahnoor Asghar <[email protected]>
02b848e
to
0b812c1
Compare
/override metal3-ubuntu-e2e-integration-test-main |
@tuminoid: Overrode contexts on behalf of tuminoid: metal3-ubuntu-e2e-integration-test-main In response to this:
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. |
/hold |
Add prow job in BMO to generate CR documentation; and
Revert #1107 'Install podman in basic-checks container'
This should work alongside metal3-io/baremetal-operator#2605