-
Notifications
You must be signed in to change notification settings - Fork 1.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
🌱 [ci]: Skipping jobs which are not required when the changes are in only docs #2608
🌱 [ci]: Skipping jobs which are not required when the changes are in only docs #2608
Conversation
a7c55ae
to
be0aa46
Compare
@joelanford @camilamacedo86 Could you please review the changes made. |
/assign @joelanford |
That is great. Could you please add the description of the 2 PR to test these changes in your fork? |
@camilamacedo86 I think there is some issue here because tests are running in both cases (not e2e). Could you please explain what is the issue here with the changes. Or there is some other issue with repo settings. |
be0aa46
to
3195e05
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.
All sorted out.
3195e05
to
e7fc62d
Compare
This comment was marked as resolved.
This comment was marked as resolved.
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 for your contribution. 🥇
But see that we need to fix the path: #2608 (comment)
647be49
to
e19f2b5
Compare
This comment was marked as resolved.
This comment was marked as resolved.
e19f2b5
to
94cf13b
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 for contribution 🥇
The change on this PR will result in skipping the following jobs when only docs files were changed.
The main follow-ups that I can see here show to be we begin to skip the e2e tests done in the prow when only doc files are changed. So that, if the change is only on the docs we do not need to run all e2e tests unnecessarily.
Also, maybe improve the implementation as we spoke about for we have not the code duplicate in all GitHub Actions to do the skip but that seems a nit and I am ok with that being handled/improved afterwards as well.
Let's see what others think about.
/hold cancel |
/ok-to-test |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, everettraven, NikhilSharmaWe, rashmigottipati The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Description
There is no need of running all jobs when the changes are only in docs. This PR skips the github actions which are not required in those cases.
Examples :
PR making changes in go files runs all tests: NikhilSharmaWe#31
PR making changes in md files skip jobs which are not required: NikhilSharmaWe#30
Motivation
Fixes Part of: #2591