-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Deactivate Unnecessary CIs for Docs #10267
Comments
this can e simply configures by path in GHA |
I'm not sure that's right. The docstrings in the code are used to autofill the docs. So any change to a source file can impact the generated docs. Additionally, docs code examples have a few imports which could break accidentally if left untested. For example: |
@carmocca that‘s true and there‘s probably nothing we can do about that, but when directly editing rst-files for example, it should be possible. And for the doctests and examples: running those takes significantly less time than running our whole pipeline :) |
Sorry! I misunderstood the proposal. You are saying:
In that case, I agree. And it's quite easy as Jirka mentioned. Here's the syntax docs: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#patterns-to-match-file-paths |
There's a big limitation with this proposal which is required jobs. They still need to run even if the workflow has signaled to skip them: actions/runner-images#1281 |
Can't we just skip all steps then? So that the overall workflow still passes? |
I guess that would work but it's
|
Potential solution:
|
do you have some examples? just be aware the docs are testing alignment with codebase so we can drop pytest if edits are only in docs but not vise-versa...
what do you mean, badges? |
This issue has been automatically marked as stale because it hasn't had any recent activity. This issue will be closed in 7 days if no further activity occurs. Thank you for your contributions, Pytorch Lightning Team! |
🚀 Feature
Run only Doctest and Docbuilding CIs if changes are only for docs
Motivation
With #10176 we saw a lot of commits changing the documentation only.
For such commits, it is not necessary to run the full CI. After discussing with @tchaton , we agreed that we cannot rely only on the github label but also have to inspect the git diff to verify only docs were changed.
Pitch
Only run necessary CI pipelines
Alternatives
keep as is
Additional context
Could maybe do the other way around and only run CIs if changes on tests or package. That would then automatically also exclude readme etc.
If you enjoy Lightning, check out our other projects! ⚡
Metrics: Machine learning metrics for distributed, scalable PyTorch applications.
Flash: The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, finetuning and solving problems with deep learning
Bolts: Pretrained SOTA Deep Learning models, callbacks and more for research and production with PyTorch Lightning and PyTorch
Lightning Transformers: Flexible interface for high performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.
cc @Borda @rohitgr7 @carmocca @akihironitta @Borda @daniellepintz
The text was updated successfully, but these errors were encountered: