-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
(chore) Only do certain checks for documentation changes (github workflow) #3898
Comments
Here's a workflow action that could be used: Changed Files |
Running link checker only on documentation changes is an excellent idea. We can experiment with the cache duration and maybe run the workflow using cron. |
Can we use the native feature https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-including-paths ? I had experimented with changed-files for the auto build docs pr here 9c5c85d. It works pretty well, but is an extra dependency. |
Sure -- the native feature would work. Not a big deal to me - I think the bigger payoff will be making documentation easier and faster to submit, and likewise code submission won't get hung-up on documentation-only problems. |
I don't think we have that defined anywhere (a good contender in contributin.md maybe?). #3434 is a good example. We were already using lodash as dependency, and the handwritten memoize function was causing us some trouble. |
Description
There are specific github workflows and checks unique to documentation (but not code):
Likewise, there are workflows and checks specific to code and not documentation:
We should modify the github workflow(s) so that only the workflows & checks required for the context (documentation or code) are run. If a PR includes changes to both documentation and code, then all relevant workflows/checks should be run.
Recently the link checker has been failing because of some issue communicating with a documentation link destination. This is happening even if only code was changed. It means that a PR fails and a contributor must be involved and review and resolve/override/re-run the failing check. Obviously this means it takes more time for the PR to be completed and means that more people have to be invovled.
Only running the necessary workflows/checks will reduce PR submission friction for contributors: it makes the process faster and smoother, which makes it more likely that more contributions will be made because it's less onerous.
@sidharthv96 - thoughts?
Here's what the flow might look like:
Note that the shapes are inconsistent; I was playing around with them.
Steps to reproduce
Only change a wee bit of documentation.
Submit a new PR.
Note all of the code-specific checks/workflows/actions that have to be run.
Screenshots
No response
Code Sample
No response
Setup
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: