GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: apply .funcignore rules in Fingerprint and OCI builder by gauron99 · Pull Request #3789 · knative/func

Conversation

@gauron99

@gauron99 gauron99 commented May 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Export ParseFuncIgnore and IsIgnored from pkg/functions so both the Fingerprint and OCI builder share the same matching logic. This ensures that files excluded by .funcignore do not affect the fingerprint hash and are consistently excluded from the OCI image.

Supported pattern forms:

  • basename (e.g. "foo") — matches at any depth
  • glob (e.g. "*.tmp") — filepath.Match semantics
  • root-relative (e.g. "/docs") — matches only at root
  • trailing slash (e.g. "build/") — stripped before matching

Also fixes the .funcignore boilerplate to document glob syntax instead of the incorrect "regex pattern" reference.

important notes:

host builder + Fingerprint() (state on disk check -- do i need to rebuild?) now use the same logic for parsing the funcignore file;

pack builder respects the .funcignore (the user files) same as above; has extra ignore cases from the DefaultIgnored list because of scaffolding.

s2i builder is the only culprit here -- it uses filepath.Glob (contrary to the above) and *.tmp pattern is NOT recursive so matches only root-level files. for deeper it would need to be */*.tmp -- others would match *.tmp at any depth. -- to sync this we would have to manually parse the funcignore, expand the unsupported patterns and write to .s2iignore directly

closes #3732

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@knative-prow

knative-prow Bot commented May 19, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added do-not-merge/work-in-progress 🤖 PR should not merge because it is a work in progress. approved 🤖 PR has been approved by an approver from all required OWNERS files. labels May 19, 2026
@knative-prow
knative-prow Bot requested review from dsimansk and jrangelramos May 19, 2026 11:18
@knative-prow knative-prow Bot added the size/XL 🤖 PR changes 500-999 lines, ignoring generated files. label May 19, 2026
@gauron99
gauron99 force-pushed the push-sqsrspzzoqmp branch from f7170fa to 4b47085 Compare May 19, 2026 11:51
@codecov

codecov Bot commented May 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.69231% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 53.47%. Comparing base (70fd6e8) to head (52aa7bd).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
pkg/functions/client.go 87.93% 5 Missing and 2 partials ⚠️
pkg/oci/builder.go 83.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3789      +/-   ##
==========================================
+ Coverage   48.24%   53.47%   +5.23%     
==========================================
  Files         185      200      +15     
  Lines       21738    23441    +1703     
==========================================
+ Hits        10487    12535    +2048     
+ Misses      10312     9654     -658     
- Partials      939     1252     +313     
Flag Coverage Δ
e2e 33.71% <69.23%> (+11.00%) ⬆️
e2e go 29.66% <69.64%> (?)
e2e node 25.95% <60.71%> (?)
e2e python 30.00% <69.64%> (?)
e2e quarkus 26.07% <60.71%> (?)
e2e rust 25.54% <60.71%> (?)
e2e springboot 24.21% <60.71%> (?)
e2e typescript 26.06% <60.71%> (?)
e2e-config-ci 26.78% <69.64%> (?)
integration 15.77% <58.92%> (?)
unit macos-14 42.23% <87.50%> (-2.70%) ⬇️
unit macos-latest 42.23% <87.50%> (-2.70%) ⬇️
unit ubuntu-24.04-arm 42.53% <84.61%> (-2.60%) ⬇️
unit ubuntu-latest 43.09% <87.50%> (-2.77%) ⬇️
unit windows-latest 42.30% <87.50%> (-2.67%) ⬇️

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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gauron99
gauron99 force-pushed the push-sqsrspzzoqmp branch from 4b47085 to 0f26d68 Compare May 19, 2026 14:45
@gauron99
gauron99 marked this pull request as ready for review May 19, 2026 14:48
@knative-prow knative-prow Bot removed the do-not-merge/work-in-progress 🤖 PR should not merge because it is a work in progress. label May 19, 2026
@gauron99
gauron99 removed request for dsimansk and jrangelramos May 19, 2026 14:48
@knative-prow
knative-prow Bot requested review from dsimansk and jrangelramos May 19, 2026 14:48
@gauron99
gauron99 requested review from lkingland and matejvasek and removed request for dsimansk and jrangelramos May 19, 2026 15:19
@lkingland

lkingland commented May 20, 2026

Copy link
Copy Markdown
Member

/lgtm

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot assigned lkingland May 20, 2026
@knative-prow knative-prow Bot added the lgtm 🤖 PR is ready to be merged. label May 20, 2026
@lkingland

lkingland commented May 20, 2026

Copy link
Copy Markdown
Member

/override codecov/project

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow

knative-prow Bot commented May 20, 2026

Copy link
Copy Markdown

@lkingland: Overrode contexts on behalf of lkingland: codecov/project

Details

In response to this:

/override codecov/project

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lkingland
lkingland approved these changes May 20, 2026
View reviewed changes
@knative-prow

knative-prow Bot commented May 20, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gauron99, lkingland

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

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [gauron99,lkingland]

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gauron99
feat: apply .funcignore rules in Fingerprint and OCI builder
52aa7bd
Export ParseFuncIgnore and IsIgnored from pkg/functions so both the
Fingerprint and OCI builder share the same matching logic. This
ensures that files excluded by .funcignore do not affect the
fingerprint hash and are consistently excluded from the OCI image.

Supported pattern forms:
  - basename (e.g. "foo") — matches at any depth
  - glob (e.g. "*.tmp") — filepath.Match semantics
  - root-relative (e.g. "/docs") — matches only at root
  - trailing slash (e.g. "build/") — stripped before matching

Also fixes the .funcignore boilerplate to document glob syntax
instead of the incorrect "regex pattern" reference.

Closes knative#3732
Follow-up to knative#3624 review feedback from @gauron99.
@gauron99
gauron99 force-pushed the push-sqsrspzzoqmp branch from 0f26d68 to 52aa7bd Compare May 21, 2026 04:15
@knative-prow knative-prow Bot removed the lgtm 🤖 PR is ready to be merged. label May 21, 2026
@lkingland

lkingland commented May 21, 2026

Copy link
Copy Markdown
Member

/lgtm

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added the lgtm 🤖 PR is ready to be merged. label May 21, 2026
@knative-prow
knative-prow Bot merged commit f43bf4c into knative:main May 21, 2026
41 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Elvand-Lie Elvand-Lie mentioned this pull request Oct 11, 2026
fix(migrations): preserve legacy deployer intent after undeploy #4076
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lkingland lkingland lkingland approved these changes
@matejvasek matejvasek Awaiting requested review from matejvasek

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@lkingland lkingland

Labels

approved 🤖 PR has been approved by an approver from all required OWNERS files. lgtm 🤖 PR is ready to be merged. size/XL 🤖 PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

functions: apply .funcignore rules in Fingerprint()

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@gauron99 @lkingland
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.