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: enable Paketo builders for Python functions #979

Merged
merged 1 commit into from
Apr 20, 2022

Conversation

lance
Copy link
Member

@lance lance commented Apr 19, 2022

Changes

  • 🎁 use Paketo builders for Python

This commit changes the Python functions to use the open source Paketo builders. The Paketo builders allow the use of a Procfile to indicate the desired default start process for the container, so this has been added to invoke Parliament at startup.

Also, there were no README.md files for Python, so I added them too.

/kind enhancement

Fixes: #977

Release Note

Enables the use of Paketo buildpacks for Python functions

This commit changes the Python functions to use the open source Paketo
builders. The Paketo builders allow the use of a Procfile to indicate
the desired default start process for the container, so this has been
added to invoke Parliament at startup.

Also, there were no README.md files for Python, so I added them too.

Signed-off-by: Lance Ball <lball@redhat.com>
@knative-prow knative-prow bot added kind/enhancement size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 19, 2022
@knative-prow
Copy link

knative-prow bot commented Apr 19, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lance

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:

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

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 19, 2022
@codecov
Copy link

codecov bot commented Apr 19, 2022

Codecov Report

Merging #979 (0f2a6ca) into main (67b43ee) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #979   +/-   ##
=======================================
  Coverage   46.05%   46.05%           
=======================================
  Files          57       57           
  Lines        7458     7458           
=======================================
  Hits         3435     3435           
  Misses       3697     3697           
  Partials      326      326           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 67b43ee...0f2a6ca. Read the comment docs.

@matejvasek
Copy link
Contributor

/lgtm

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

/hold

@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 20, 2022
@knative-prow knative-prow bot merged commit 5af934b into knative:main Apr 20, 2022
@matejvasek
Copy link
Contributor

matejvasek commented Apr 20, 2022

@lance I was too fast here. Python e2e test is failing, but I cannot see reason for it.

@matejvasek
Copy link
Contributor

cc @jrangelramos ^^^

@matejvasek
Copy link
Contributor

@lkingland do you any idea what could have gone wrong?

@lkingland
Copy link
Member

While I can not know for sure, we do have a theory. We have been seeing this every once in a while over the past few week. Jefferson added some additional debugging to the E2E tests, so we can hopefully get more information, but right now it appears these are test flakiness due to a timeout somewhere in the underlying system. It often resolves itself by re-running the failed test. Note the error message Function new revision never got ready.

@matejvasek
Copy link
Contributor

matejvasek commented Apr 20, 2022

Well, it failed 3 times in row.

@matejvasek
Copy link
Contributor

4 times if we count failure in midstream.

@matejvasek
Copy link
Contributor

5th failure 😢

@jrangelramos
Copy link
Contributor

Yea it needs to update the template used on e2e for new revision check.
Here it is
#983

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. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. kind/enhancement lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update python templates to use a paketo builder
4 participants