Skip heavy CI jobs (Go test/lint/build, web, integration) for docs-only changes
What would you like to be added:
Skip the heavy CI jobs (Go test/lint/build, web, integration, CodeQL) for PRs that only change documentation files (docs/**, **.md).
Currently test.yaml, build.yaml, lint.yaml, gen.yaml, and codeql-analysis.yaml run on every PR with no path filters, so even a docs typo fix runs the full Go test/lint matrix (one job per module), govulncheck, web tests, and integration tests.
Note: go-test-completed and go-lint-completed are required checks, so a plain paths-ignore on the triggers would leave them stuck at "Expected" and block merging. Instead, a first job can detect changed paths (e.g. dorny/paths-filter) and the heavy jobs skip conditionally the existing *-completed gate jobs still report success, so required checks keep working.
Why is this needed:
Docs-only changes cannot affect test/lint/build results, so running these jobs wastes CI compute and runner queue slots, and slows down feedback for docs contributors.
@Ayushmore1214 @rahulshendre what do you think about this issue?
@Yashagarwal9798 Looks like a good approach. I like that you considered the required status checks as well.
Thanks, @yashisrani , for reviewing it. Once the issue is assigned to me, I’ll start working on it right away.
Cool Idea @Yashagarwal9798, @Warashi what do you think of it ?
Sorry for the late reply. It sounds nice to me, so I'm assigning @Yashagarwal9798. Please go ahead!
Hi, @Yashagarwal9798. How's it going? Are you still planning to work on this? If so, please leave a comment here. If there are no updates within a week, I will unassign you so someone else can take it.
@Warashi I will raise a pr shortly
@Yashagarwal9798, any updates on the PR?
@Yashagarwal9798, do let us know if you are still planning to work on this one. If you are busy with other commitments, I hope you don't mind someone else jumping in and opening a PR for it, and you can help us with the review of the same 🙌
Opened #7486 for this. @Yashagarwal9798 if you already have work in progress, happy to close mine in favor of yours.
@harshalsp07 the ideal path is to get assigned to an issue before opening a PR, but anyways as this is your first time in the project we can let it go off for now, but please keep it in mind from next time!
got it and sorry for jumping directly to the PR . I read rahulshendre's comment above as an invitation to jump in, hence did the PR I'll ask to be assigned first from now on.