-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ci: documentation workflow optimizations. #14372
ci: documentation workflow optimizations. #14372
Conversation
I think there's another opportunity for optimization on this same goal; the Build workflow probably does not need to be triggered for this change (as far as I am aware). The |
Can you also please @linguini1 add commit that removes LaTeX packages installation and PDF generation? This will definitely save up the resources, I will add PDF generation on website repo next month when we manage the CI overuse with success first :-) |
…on subdirectory has modifications, and does not build pdfs.
92741ed
to
fe77e1c
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.
Thank you @jkivilin :-)
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.
Definitely a step in the right direction! Thanks!
Summary
This change to the Documentation workflow adds the
paths
filter so that the GitHub workflow is only run whenever a path matchingDocumentation/**
is modified. It also removes the PDF building step, which is not necessary since Documentation is built on the NuttX website.Note from @cederom: We got final warning from Apache on exceeding CI usage and need find savings! This subject is discussed on dev@ mailing list.
Impact
This will reduce the number of unnecessary Documentation workflow runs being performed for PRs that do not modify the documentation and thus do not require a rebuild. It also removes unnecessary building of PDF documents, which speeds up the workflow.
Since building the Documentation takes about 13 minutes on average, this should considerably reduce the amount of time the NuttX repository is using in GitHub workflows, bringing us closer to being within the limit the Apache Foundation has set for workflow usage.
Testing
Since this change only modifies the GitHub workflow, testing is performed by verifying that this PR (containing the updated workflow) will not trigger the Documentation workflow since nothing under the
Documentation/
sub-directory was modified.