Skip to content

ci: skip functions workflow on doc-only changes#3833

Open
Ankitsinghsisodya wants to merge 4 commits into
knative:mainfrom
Ankitsinghsisodya:ci/paths-ignore-functions
Open

ci: skip functions workflow on doc-only changes#3833
Ankitsinghsisodya wants to merge 4 commits into
knative:mainfrom
Ankitsinghsisodya:ci/paths-ignore-functions

Conversation

@Ankitsinghsisodya
Copy link
Copy Markdown
Contributor

@Ankitsinghsisodya Ankitsinghsisodya commented May 21, 2026

Closes #3634

Note: Re-submission of #3631, accidentally closed when the head repository was deleted.

Summary

  • Adds paths-ignore filters to both push and pull_request triggers in the Functions CI workflow
  • Skips the full CI suite (unit, template, integration, e2e) when only documentation or non-code files are changed
  • Ignored paths: docs/**, **/*.md, CODEOWNERS, LICENSE

Motivation

The Functions workflow 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

  • Open a PR that only modifies a .md file — verify Functions workflow is skipped
  • Open a PR that modifies a .go file — verify Functions workflow still runs

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.
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.
Introduce a new GitHub Actions workflow to perform prechecks on code changes, including linting and schema validation. This workflow triggers on pushes and pull requests to the main branch.
Copilot AI review requested due to automatic review settings May 21, 2026 11:24
@knative-prow knative-prow Bot requested review from dsimansk and jrangelramos May 21, 2026 11:24
@knative-prow
Copy link
Copy Markdown

knative-prow Bot commented May 21, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Ankitsinghsisodya
Once this PR has been reviewed and has the lgtm label, please assign gauron99 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow Bot added size/M 🤖 PR changes 30-99 lines, ignoring generated files. needs-ok-to-test 🤖 Needs an org member to approve testing labels May 21, 2026
@knative-prow
Copy link
Copy Markdown

knative-prow Bot commented May 21, 2026

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Tip

We noticed you've done this a few times! Consider joining the org to skip this step and gain /lgtm and other bot rights. We recommend asking approvers on your previous PRs to sponsor you.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions 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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds workflow filtering and a new CI “Check” workflow to reduce unnecessary runs and enforce repository checks on main/PRs.

Changes:

  • Add paths-ignore filters to the existing functions.yaml workflow for push and PR events.
  • Introduce a new .github/workflows/ci-check.yaml workflow that runs make check and additional validation targets.
  • Configure concurrency for the new workflow to cancel in-progress PR runs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/functions.yaml Skips running the functions workflow when only docs/metadata files change.
.github/workflows/ci-check.yaml New CI workflow to run checks/lints and generated-artifact validations on push/PR.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci-check.yaml
Comment thread .github/workflows/ci-check.yaml
Comment thread .github/workflows/ci-check.yaml
Enhance the CI check workflow by adding paths-ignore for documentation markdown files and ownership files in both push and pull request triggers. This change prevents unnecessary CI runs when only non-code files are modified, streamlining the workflow.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.47%. Comparing base (584c11e) to head (540d31f).
⚠️ Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3833      +/-   ##
==========================================
- Coverage   57.03%   53.47%   -3.57%     
==========================================
  Files         182      200      +18     
  Lines       21376    23441    +2065     
==========================================
+ Hits        12191    12534     +343     
- Misses       7953     9654    +1701     
- Partials     1232     1253      +21     
Flag Coverage Δ
e2e 33.72% <ø> (-2.09%) ⬇️
e2e go 29.66% <ø> (-1.75%) ⬇️
e2e node 25.96% <ø> (-1.29%) ⬇️
e2e python 30.00% <ø> (-1.79%) ⬇️
e2e quarkus 26.07% <ø> (-1.30%) ⬇️
e2e rust 25.54% <ø> (-1.23%) ⬇️
e2e springboot 24.21% <ø> (-1.11%) ⬇️
e2e typescript 26.06% <ø> (-1.30%) ⬇️
e2e-config-ci 26.78% <ø> (-1.38%) ⬇️
integration 15.76% <ø> (-1.41%) ⬇️
unit macos-14 42.23% <ø> (-2.86%) ⬇️
unit macos-latest 42.23% <ø> (-2.86%) ⬇️
unit ubuntu-24.04-arm 42.54% <ø> (-2.80%) ⬇️
unit ubuntu-latest 43.10% <ø> (-2.94%) ⬇️
unit windows-latest 42.30% <ø> (-2.84%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lkingland lkingland added ok-to-test 🤖 Non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test 🤖 Needs an org member to approve testing labels May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test 🤖 Non-member PR verified by an org member that is safe to test. size/M 🤖 PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: skip functions workflow on doc-only changes

3 participants