Skip to content

Conversation

matejvasek
Copy link
Contributor

Changes

  • 🐛 Return error code when the function was not compiled
  • 🐛 Run go mod tidy on scaffoded code

/kind bug

fix: Go s2i build issue with user added dependencies

* Return error code when compilation was not done
* Run `go mod tidy` on scaffoded code

Signed-off-by: Matej Vašek <mvasek@redhat.com>
@knative-prow knative-prow bot added the kind/bug Categorizes issue or PR as related to a bug. label Apr 2, 2025
@knative-prow knative-prow bot requested review from rhuss and vyasgun April 2, 2025 12:23
@knative-prow knative-prow bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 2, 2025
@matejvasek matejvasek requested review from matzew, gauron99 and lkingland and removed request for rhuss and vyasgun April 2, 2025 12:27
Copy link

codecov bot commented Apr 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.46%. Comparing base (9f6a135) to head (58bf735).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2765      +/-   ##
==========================================
+ Coverage   61.60%   62.46%   +0.85%     
==========================================
  Files         131      131              
  Lines       15764    15764              
==========================================
+ Hits         9712     9847     +135     
+ Misses       5142     4979     -163     
- Partials      910      938      +28     
Flag Coverage Δ
e2e-test 35.33% <ø> (ø)
e2e-test-oncluster 33.74% <ø> (+1.32%) ⬆️
e2e-test-oncluster-runtime 28.15% <ø> (?)
e2e-test-runtime-go 25.67% <ø> (?)
e2e-test-runtime-node 25.10% <ø> (?)
e2e-test-runtime-quarkus 25.18% <ø> (?)
e2e-test-runtime-rust 24.71% <ø> (?)
e2e-test-runtime-springboot 24.75% <ø> (?)
e2e-test-runtime-typescript 25.19% <ø> (?)
integration-tests 48.66% <ø> (+1.83%) ⬆️
unit-tests 48.64% <ø> (?)
unit-tests-macos-latest ?
unit-tests-ubuntu-latest ?
unit-tests-windows-latest ?

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.

Copy link
Contributor

@gauron99 gauron99 left a comment

Choose a reason for hiding this comment

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

/lgtm
/hold unhold when you please

@knative-prow knative-prow bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 2, 2025
@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Apr 2, 2025
Copy link

knative-prow bot commented Apr 2, 2025

[APPROVALNOTIFIER] This PR is APPROVED

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

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

The pull request process is described here

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

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

@matejvasek
Copy link
Contributor Author

/unhold

@knative-prow knative-prow bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 2, 2025
@knative-prow knative-prow bot merged commit 2d39624 into knative:main Apr 2, 2025
38 checks passed
matejvasek added a commit to openshift-knative/kn-plugin-func that referenced this pull request Apr 4, 2025
* Return error code when compilation was not done
* Run `go mod tidy` on scaffoded code

Signed-off-by: Matej Vašek <mvasek@redhat.com>
matejvasek added a commit to openshift-knative/kn-plugin-func that referenced this pull request Apr 4, 2025
* Return error code when compilation was not done
* Run `go mod tidy` on scaffoded code

Signed-off-by: Matej Vašek <mvasek@redhat.com>
openshift-merge-bot bot pushed a commit to openshift-knative/kn-plugin-func that referenced this pull request Apr 4, 2025
* Fix http port 433 => 443 (knative#2742)

* Trust loopback builders (knative#2750)

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Add testcase for Go private repositories (knative#2748)

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Test adjustments (knative#2751)

* Use tiny instead of base BP builder.
* Decrease minimal required Go version.
* Make the self-signed certificate CA==true so it works with update-ca-trust utility.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Allow host mounts for build phahse (knative#2753)

* Allow host mounts for build pahse.

This is in particular useful for using paket bindings,
e.g. to inject git credentials into build process.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Mark test as a integration test

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup: style

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* Use s2i in standard mode, not "as-dockerfile" (knative#2764)

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* fixup cherry-pick

The release-v1.16 branch uses older docker library version some minor
adjusment was needed.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* Improvements for Go s2i assembler (knative#2765)

* Return error code when compilation was not done
* Run `go mod tidy` on scaffoded code

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* S2I (source-to-image) host binds (knative#2766)

* Added tests for s2i build with private Go module

The test is for now skipped since host binds are not yet implemented for s2i.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* User "host" network mode for s2i build on Linux

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Implement host binds for local s2i build

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Make build binds more similar to runtime binds (knative#2768)

* Make build binds more similar to runtime binds

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Added comments on struct

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* Add guideline for private Go module usage (knative#2771)

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* Fix: Go scaffolding uses correct module name (knative#2769)

* Fix: Go scaffolding uses correct module name

Using incorrect name works for a functions with flat structure -- no
sub-packages. When sub-packages are used we need to refer the user
module by its true name.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup tests

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup for c841f40

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants