pipecd icon indicating copy to clipboard operation
pipecd copied to clipboard

Skip heavy CI jobs (Go test/lint/build, web, integration) for docs-only changes

Open Yashagarwal9798 opened this issue 4 months ago • 12 comments

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.

Yashagarwal9798 avatar Jul 10 '26 20:07 Yashagarwal9798

@Ayushmore1214 @rahulshendre what do you think about this issue?

Yashagarwal9798 avatar Jul 10 '26 20:07 Yashagarwal9798

@Yashagarwal9798 Looks like a good approach. I like that you considered the required status checks as well.

yashisrani avatar Jul 11 '26 02:07 yashisrani

Thanks, @yashisrani , for reviewing it. Once the issue is assigned to me, I’ll start working on it right away.

Yashagarwal9798 avatar Jul 11 '26 16:07 Yashagarwal9798

Cool Idea @Yashagarwal9798, @Warashi what do you think of it ?

Ayushmore1214 avatar Jul 12 '26 04:07 Ayushmore1214

Sorry for the late reply. It sounds nice to me, so I'm assigning @Yashagarwal9798. Please go ahead!

Warashi avatar Aug 24 '26 23:08 Warashi

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 avatar Sep 04 '26 21:09 Warashi

@Warashi I will raise a pr shortly

Yashagarwal9798 avatar Sep 05 '26 00:09 Yashagarwal9798

@Yashagarwal9798, any updates on the PR?

rahulshendre avatar Oct 07 '26 07:10 rahulshendre

@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 🙌

rahulshendre avatar Oct 14 '26 14:10 rahulshendre

Opened #7486 for this. @Yashagarwal9798 if you already have work in progress, happy to close mine in favor of yours.

harshalsp07 avatar Oct 14 '26 17:10 harshalsp07

@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!

Ayushmore1214 avatar Oct 15 '26 06:10 Ayushmore1214

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.

harshalsp07 avatar Oct 15 '26 07:10 harshalsp07