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 — pipelines: never upload .func to the cluster in direct remote deploy by gauron99 · Pull Request #3897 · knative/func

Conversation

@gauron99

@gauron99 gauron99 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor
  • Direct remote (on-cluster) builds tar the function source and upload it to a PVC. Honor the same ignoring system that local builds already implement -> Using the default ignored + .funcignore + .gitignore.

  • Scaffolding under .func/build is regenerated on-cluster by the func-scaffold step, so nothing needed is lost

Sorry, something went wrong.

Uh oh!

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

All reactions
@gauron99
pipelines: never upload .func to the cluster in remote builds
f69563b
Remote (on-cluster) builds tar the function source and upload it to a PVC.
The ignore policy previously honored only .gitignore plus a hardcoded .git
prefix, so the local runtime directory .func — scaffolding, built-image
records, and any other machine-local state — was uploaded whenever the
function had no .gitignore covering it.

Apply the same authoritative ignore policy as local builds (fn.IsIgnored
with the user's .funcignore patterns): .func is always excluded, and
ignored directories are skipped wholesale (filepath.SkipDir) instead of
being walked entry by entry. Scaffolding under .func/build is regenerated
on-cluster by the func-scaffold step, so nothing needed is lost.
@knative-prow
knative-prow Bot requested review from dsimansk and jrangelramos June 16, 2026 22:09
@knative-prow knative-prow Bot added approved 🤖 PR has been approved by an approver from all required OWNERS files. size/M 🤖 PR changes 30-99 lines, ignoring generated files. labels Jun 16, 2026
@codecov

codecov Bot commented Jun 16, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.95%. Comparing base (e687d36) to head (f69563b).
⚠️ Report is 21 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3897      +/-   ##
==========================================
+ Coverage   53.90%   53.95%   +0.05%     
==========================================
  Files         200      200              
  Lines       23652    23687      +35     
==========================================
+ Hits        12749    12781      +32     
- Misses       9669     9673       +4     
+ Partials     1234     1233       -1     
Flag Coverage Δ
e2e 33.43% <61.53%> (-0.04%) ⬇️
e2e go 29.39% <100.00%> (-0.01%) ⬇️
e2e node 25.72% <100.00%> (+<0.01%) ⬆️
e2e python 29.72% <100.00%> (-0.01%) ⬇️
e2e quarkus 25.85% <100.00%> (+<0.01%) ⬆️
e2e rust 25.30% <100.00%> (+<0.01%) ⬆️
e2e springboot 24.00% <100.00%> (+<0.01%) ⬆️
e2e typescript 25.83% <100.00%> (+<0.01%) ⬆️
e2e-config-ci 26.90% <0.00%> (-0.05%) ⬇️
integration 15.69% <100.00%> (+0.03%) ⬆️
unit macos-14 43.05% <100.00%> (+0.21%) ⬆️
unit macos-latest 43.05% <100.00%> (+0.21%) ⬆️
unit ubuntu-24.04-arm 43.36% <100.00%> (+0.19%) ⬆️
unit ubuntu-latest 43.91% <100.00%> (+0.21%) ⬆️
unit windows-latest 43.12% <100.00%> (+0.21%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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 requested review from lkingland and matejvasek and removed request for dsimansk and jrangelramos June 17, 2026 06:24
twoGiants
twoGiants approved these changes Jun 17, 2026
View reviewed changes

@twoGiants twoGiants left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Looks good. I have only a nit.

/approve
/lgtm
/hold for the nit

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread pkg/pipelines/tekton/pipelines_provider.go
userPatterns := fn.ParseFuncIgnore(f.Root)
gi, giErr := gitignore.CompileIgnoreFile(filepath.Join(f.Root, ".gitignore"))
ignored := func(p string) bool {
if fn.IsIgnored(p, userPatterns) {

@twoGiants twoGiants Jun 17, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

nit

You can inline userPatterns here, it's not called anywhere else:

		if fn.IsIgnored(p, fn.ParseFuncIgnore(f.Root)) {

Sorry, something went wrong.

Uh oh!

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

All reactions

@gauron99 gauron99 Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

that would actually re-read .funcignore file every ignored function call inside the Walk below. Its extracted so that read is only fired once

Sorry, something went wrong.

Uh oh!

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

All reactions
@knative-prow knative-prow Bot added the do-not-merge/hold 🤖 PR should not merge because someone has issued a /hold command. label Jun 17, 2026
@knative-prow knative-prow Bot assigned twoGiants Jun 17, 2026
@knative-prow knative-prow Bot added the lgtm 🤖 PR is ready to be merged. label Jun 17, 2026
lkingland
lkingland approved these changes Jun 18, 2026
View reviewed changes

@lkingland lkingland left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

🎉

Sorry, something went wrong.

Uh oh!

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

All reactions
@knative-prow knative-prow Bot assigned lkingland Jun 18, 2026
@knative-prow

knative-prow Bot commented Jun 18, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

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

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

gauron99 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

/hold cancel

All reactions

Sorry, something went wrong.

Uh oh!

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

@knative-prow knative-prow Bot removed the do-not-merge/hold 🤖 PR should not merge because someone has issued a /hold command. label Jun 18, 2026
@knative-prow
knative-prow Bot merged commit 36896cb into knative:main Jun 18, 2026
66 of 67 checks passed

Uh oh!

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

@gauron99
gauron99 deleted the push-oxqxllrmvrxq branch June 19, 2026 11:41
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
+1 more reviewer
@twoGiants twoGiants twoGiants approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

@twoGiants twoGiants

@lkingland lkingland

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

3 participants

@gauron99 @twoGiants @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.