Skip to content
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

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

linguini1
Copy link
Contributor

@linguini1 linguini1 commented Oct 16, 2024

Summary

This change to the Documentation workflow adds the paths filter so that the GitHub workflow is only run whenever a path matching Documentation/** 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.

@github-actions github-actions bot added Area: CI Size: S The size of the change in this PR is small labels Oct 16, 2024
@linguini1
Copy link
Contributor Author

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 paths-ignore on those workflows could probably be re-visited.

@acassis acassis requested a review from lupyuen October 16, 2024 18:45
@cederom
Copy link
Contributor

cederom commented Oct 16, 2024

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.
@linguini1 linguini1 force-pushed the documentation-workflow branch from 92741ed to fe77e1c Compare October 16, 2024 19:19
Copy link
Contributor

@cederom cederom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jkivilin :-)

.github/workflows/doc.yml Show resolved Hide resolved
@cederom cederom changed the title ci: documentation workflow is now only triggered when the Documentati… ci: documentation workflow optimizations. Oct 16, 2024
Copy link
Contributor

@hartmannathan hartmannathan left a 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!

@xiaoxiang781216 xiaoxiang781216 merged commit 394530e into apache:master Oct 17, 2024
38 checks passed
@linguini1 linguini1 deleted the documentation-workflow branch October 17, 2024 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: CI Size: S The size of the change in this PR is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants