ci: skip functions workflow on doc-only changes#3631
ci: skip functions workflow on doc-only changes#3631Ankitsinghsisodya wants to merge 2 commits intoknative:mainfrom
Conversation
Add paths-ignore to push and pull_request triggers to avoid running the full CI suite (unit, template, integration, e2e) when only documentation or non-code files are modified.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Ankitsinghsisodya The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @Ankitsinghsisodya. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
There was a problem hiding this comment.
Pull request overview
Updates the Functions GitHub Actions workflow to avoid running the expensive Functions CI suite when changes are limited to documentation/non-code paths.
Changes:
- Add
paths-ignorefilters topushtriggers onmain. - Add
paths-ignorefilters topull_requesttriggers targetingmain.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3631 +/- ##
==========================================
+ Coverage 56.33% 58.43% +2.09%
==========================================
Files 180 180
Lines 20571 20572 +1
==========================================
+ Hits 11589 12021 +432
+ Misses 7780 7348 -432
- Partials 1202 1203 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Use root-only *.md instead of **/*.md so template and testdata markdown still trigger CI. Replace CODEOWNERS with OWNERS and OWNERS_ALIASES to match repo ownership files.
8ef272b to
15f5a96
Compare
Closes #3634
Summary
paths-ignorefilters to bothpushandpull_requesttriggers in theFunctionsCI workflowdocs/**,**/*.md,CODEOWNERS,LICENSEMotivation
The
Functionsworkflow spawns many expensive jobs (unit tests across 5 OSes, integration tests, 7-runtime E2E matrix). Running all of these on a docs-only commit wastes CI minutes and runner time.Test plan
.mdfile — verifyFunctionsworkflow is skipped.gofile — verifyFunctionsworkflow still runs