Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enabled s2i for python #1562

Merged
merged 6 commits into from
Feb 20, 2023
Merged

feat: enabled s2i for python #1562

merged 6 commits into from
Feb 20, 2023

Conversation

matejvasek
Copy link
Contributor

Changes

  • 🎁 Enabled s2i build for Python functions.
feat: enabled s2i for python functions

Signed-off-by: Matej Vasek <mvasek@redhat.com>
@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 Feb 16, 2023
@matejvasek matejvasek requested review from zroubalik, jrangelramos and lance and removed request for nainaz and vyasgun February 16, 2023 18:53
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
@knative-prow knative-prow bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 16, 2023
@codecov
Copy link

codecov bot commented Feb 16, 2023

Codecov Report

Base: 60.20% // Head: 49.42% // Decreases project coverage by -10.79% ⚠️

Coverage data is based on head (ae31e6c) compared to base (b02956b).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1562       +/-   ##
===========================================
- Coverage   60.20%   49.42%   -10.79%     
===========================================
  Files          75       73        -2     
  Lines       10237    10103      -134     
===========================================
- Hits         6163     4993     -1170     
- Misses       3503     4687     +1184     
+ Partials      571      423      -148     
Flag Coverage Δ
integration-tests ?
unit-tests ?
unit-tests-windows-latest 49.42% <ø> (?)

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

Impacted Files Coverage Δ
pkg/builders/s2i/builder.go 61.33% <ø> (+1.33%) ⬆️
pkg/k8s/security_context.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/knative/logs.go 0.00% <0.00%> (-84.54%) ⬇️
pkg/k8s/dialer.go 0.00% <0.00%> (-73.44%) ⬇️
pkg/k8s/persistent_volumes.go 0.00% <0.00%> (-72.40%) ⬇️
pkg/k8s/logs.go 0.00% <0.00%> (-70.00%) ⬇️
pkg/knative/describer.go 0.00% <0.00%> (-66.18%) ⬇️
pkg/knative/lister.go 0.00% <0.00%> (-64.92%) ⬇️
pkg/knative/deployer.go 6.16% <0.00%> (-56.72%) ⬇️
pkg/knative/client.go 0.00% <0.00%> (-53.85%) ⬇️
... and 20 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jrangelramos
Copy link
Contributor

/lgtm
/hold for others to verify

@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 Feb 16, 2023
@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Feb 16, 2023
Copy link
Contributor

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

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

Looking good! Could you please also enable e2e tests for this? https://github.com/knative/func/blob/main/test/oncluster/scenario_runtime_test.go#L21

Signed-off-by: Matej Vasek <mvasek@redhat.com>
@knative-prow knative-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Feb 20, 2023
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
@matejvasek
Copy link
Contributor Author

@lance @zroubalik @jrangelramos PTAL

@matejvasek
Copy link
Contributor Author

@lance could you please override codecov/project ? The coverage upload is flaking.

@lance
Copy link
Member

lance commented Feb 20, 2023

/override codecov/project

@knative-prow
Copy link

knative-prow bot commented Feb 20, 2023

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

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/test-infra repository.

Copy link
Member

@lance lance left a comment

Choose a reason for hiding this comment

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

/lgtm
Thanks @matejvasek!

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Feb 20, 2023
Copy link
Contributor

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

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

/lgtm

awesome!

@knative-prow
Copy link

knative-prow bot commented Feb 20, 2023

[APPROVALNOTIFIER] This PR is APPROVED

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

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 [matejvasek,zroubalik]

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 Feb 20, 2023
@knative-prow knative-prow bot merged commit 6d45651 into knative:main Feb 20, 2023
@lance
Copy link
Member

lance commented Feb 21, 2023

/cherry-pick release-1.9

@knative-prow-robot
Copy link

@lance: #1562 failed to apply on top of branch "release-1.9":

Applying: feat: enable s2i for python
Using index info to reconstruct a base tree...
A	generate/zz_filesystem_generated.go
A	pkg/builders/s2i/builder.go
Falling back to patching base and 3-way merge...
Auto-merging s2i/builder.go
CONFLICT (modify/delete): generate/zz_filesystem_generated.go deleted in HEAD and modified in feat: enable s2i for python. Version feat: enable s2i for python of generate/zz_filesystem_generated.go left in tree.
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 feat: enable s2i for python
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-1.9

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/test-infra repository.

lance pushed a commit to lance/func that referenced this pull request Feb 21, 2023
* feat: enable s2i for python

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
knative-prow bot pushed a commit that referenced this pull request Feb 21, 2023
* feat: enabled s2i for python (#1562)

* feat: enable s2i for python

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* Use current (as in PR) func image in integration tests (#1548)

* cleanup: style

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fix: use current func image for in cluster tests

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
Co-authored-by: Matej Vasek <mvasek@redhat.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. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants