GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — pipelines: never upload .func to the cluster in direct remote deploy by gauron99 · Pull Request #3897 · knative/func Conversation
Contributor
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsRemote (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.
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
| userPatterns := fn.ParseFuncIgnore(f.Root) | ||
| gi, giErr := gitignore.CompileIgnoreFile(filepath.Join(f.Root, ".gitignore")) | ||
| ignored := func(p string) bool { | ||
| if fn.IsIgnored(p, userPatterns) { |
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
🎉
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
/hold cancel |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.