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

Adding GO s2i to e2e test suite #2401

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

jrangelramos
Copy link
Contributor

@jrangelramos jrangelramos commented Jun 26, 2024

Changes

  • Add e2e tests for Go functions using s2i builder (except for OnCluster builds scenarios)

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 26, 2024
@knative-prow knative-prow bot requested review from dsimansk and nainaz June 26, 2024 14:57
@knative-prow knative-prow bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 26, 2024
Copy link

codecov bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.70%. Comparing base (2fdca6c) to head (2098c0d).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2401      +/-   ##
==========================================
+ Coverage   61.19%   66.70%   +5.50%     
==========================================
  Files         130      130              
  Lines       15354    11940    -3414     
==========================================
- Hits         9396     7964    -1432     
+ Misses       5032     3013    -2019     
- Partials      926      963      +37     
Flag Coverage Δ
e2e-test 36.77% <ø> (ø)
e2e-test-oncluster 33.38% <ø> (ø)
e2e-test-oncluster-runtime 29.39% <ø> (?)
e2e-test-runtime-go 26.77% <ø> (?)
e2e-test-runtime-node 26.15% <ø> (?)
e2e-test-runtime-python 26.15% <ø> (?)
e2e-test-runtime-quarkus 26.25% <ø> (?)
e2e-test-runtime-rust 25.29% <ø> (?)
e2e-test-runtime-springboot 25.33% <ø> (?)
e2e-test-runtime-typescript 26.24% <ø> (?)
integration-tests 52.76% <ø> (+2.40%) ⬆️
unit-tests 50.94% <ø> (?)
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.

@matejvasek
Copy link
Contributor

/approve
/lgtm

@matejvasek
Copy link
Contributor

@lkingland I think these test failures might be caused by actual bug.

@knative-prow knative-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 23, 2024
@matejvasek
Copy link
Contributor

/approve
/lgtm

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

It appears that on cluster build is still broken.
Maybe enable only local build tests for now?

@jrangelramos
Copy link
Contributor Author

yea.. it is failling oncluster build for Go S2i. I would prefer to keep this test until this get sorted out as well.

@knative-prow knative-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 24, 2024
@jrangelramos
Copy link
Contributor Author

Apparently the same work for scaffold the go s2i func is required to be done during the oncluster build (perhaps in some task in between the tekton git-source/push and build tasks). I'm just leaving the oncluster test coverage apart and will add it later when oncluster build approach for go is sorted out

@jrangelramos
Copy link
Contributor Author

jrangelramos commented Jul 24, 2024

Hi @matejvasek coud you please re-LGTM

Copy link
Member

@matzew matzew left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jul 25, 2024
Copy link

knative-prow bot commented Jul 25, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jrangelramos, matejvasek, matzew

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

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 merged commit 3c1490b into knative:main Jul 25, 2024
39 checks passed
knative-prow bot pushed a commit that referenced this pull request Sep 5, 2024
* test: adding GO s2i to e2e test suite (#2401)

* Remove superfluous equals sign from envvar (#2446)

* Remove superfluous equals sign from envvar

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

* Update rust templates Cargo.lock

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

---------

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

* allow digested images to be 'run' (#2445)

* init fix

Signed-off-by: gauron99 <fridrich.david19@gmail.com>

* dont override direct deploy tag, more tests

Signed-off-by: gauron99 <fridrich.david19@gmail.com>

* fix

Signed-off-by: gauron99 <fridrich.david19@gmail.com>

* dont validate with tagged image, fix comment

Signed-off-by: gauron99 <fridrich.david19@gmail.com>

* init run fix for --image

Signed-off-by: gauron99 <fridrich.david19@gmail.com>

* init

Signed-off-by: gauron99 <fridrich.david19@gmail.com>

* int test, add valid untdigested images to run

Signed-off-by: gauron99 <fridrich.david19@gmail.com>

* check images passed to runner for func run command

Signed-off-by: gauron99 <fridrich.david19@gmail.com>

* fix build/deploy image passing bug add test

Signed-off-by: gauron99 <fridrich.david19@gmail.com>

* fix

Signed-off-by: gauron99 <fridrich.david19@gmail.com>

* remove extra printing

Signed-off-by: gauron99 <fridrich.david19@gmail.com>

* merge functions to digested

Signed-off-by: gauron99 <fridrich.david19@gmail.com>

* misspell

Signed-off-by: gauron99 <fridrich.david19@gmail.com>

* simplify

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* quick fix

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* remove prints, comment

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

---------

Signed-off-by: gauron99 <fridrich.david19@gmail.com>
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* On cluster s2i build for Go (alternative version) (#2471)

* Prepare util image to accomodate multiple cmds

As of now func-util image has only one command of our own -- "deploy".
This commits prepares grounds for one additional command named "scaffolding".
The commands will be implemented in one binary and dispatched over
argv[0] using symlinks. Kinda like busybox does.

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

* Add scaffolding for on-cluster build

Added new build step in tekton pipeline that scaffolds main() for Go
porject when using s2i builder.

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

* Better docker build caching

This will cache dependencies between docker builds.

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

* fixup: perms

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

* fixup: remove broken check

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

* fixup: remove test because of 'no space left on device'

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

* Make func-util rootfull

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

---------

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

* Incorporate s2i CLI into func-utils image. (#2473)

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

* chore: update Quarkus platform version to 3.14.1 (#2474)

Co-authored-by: Knative Automation <automation@knative.team>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* chore: update Springboot platform version to 3.3.3 (#2465)

Co-authored-by: Knative Automation <automation@knative.team>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>

---------

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
Signed-off-by: gauron99 <fridrich.david19@gmail.com>
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
Co-authored-by: Jefferson Ramos <jeramos@redhat.com>
Co-authored-by: David Fridrich <49119790+gauron99@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Knative Automation <automation@knative.team>
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/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.

3 participants