[go: up one dir, main page]

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

fix: node s2i build when node_modules present #1612

Conversation

matejvasek
Copy link
Contributor
@matejvasek matejvasek commented Mar 9, 2023

Changes

/kind bug

fix: s2i build when node_modules present

@knative-prow knative-prow bot added the kind/bug Categorizes issue or PR as related to a bug. label Mar 9, 2023
@knative-prow knative-prow bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Mar 9, 2023
@matejvasek matejvasek requested review from zroubalik, lkingland and lance and removed request for vyasgun March 9, 2023 16:18
@codecov
Copy link
codecov bot commented Mar 9, 2023

Codecov Report

Patch coverage: 55.00% and project coverage change: +14.14 🎉

Comparison is base (afad45e) 49.55% compared to head (cbed560) 63.69%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1612       +/-   ##
===========================================
+ Coverage   49.55%   63.69%   +14.14%     
===========================================
  Files          80       92       +12     
  Lines       10760    11600      +840     
===========================================
+ Hits         5332     7389     +2057     
+ Misses       4964     3540     -1424     
- Partials      464      671      +207     
Flag Coverage Δ
e2e-test 39.15% <45.00%> (?)
e2e-test-oncluster 34.81% <0.00%> (?)
e2e-test-oncluster-runtime 29.60% <0.00%> (?)
e2e-test-runtime-go 30.31% <0.00%> (?)
e2e-test-runtime-python 30.28% <0.00%> (?)
e2e-test-runtime-quarkus 30.42% <0.00%> (?)
e2e-test-runtime-springboot 30.44% <0.00%> (?)
e2e-test-runtime-typescript 30.32% <0.00%> (?)
integration-tests 49.87% <55.00%> (?)
unit-tests ?
unit-tests-macos-latest 48.59% <55.00%> (?)
unit-tests-ubuntu-latest 49.54% <55.00%> (?)
unit-tests-windows-latest 48.49% <55.00%> (?)

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

Impacted Files Coverage Δ
pkg/pipelines/tekton/pipeplines_provider.go 56.90% <18.18%> (+41.02%) ⬆️
pkg/builders/s2i/builder.go 67.38% <100.00%> (+6.04%) ⬆️

... and 55 files with indirect coverage changes

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 in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@matejvasek matejvasek force-pushed the fix-s2i-node-build-with-node-modules-on-fs branch from e521d72 to faae74b Compare March 9, 2023 16:33
@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 Mar 9, 2023
This is workaround for two bug in another components:
* The s2i CLI/library is not honoring the `--exclude` flag when used with
  the `--as-dockerfile` flag.
* The node s2i image is not working if project contains `node_modules`
  directory with NodeJS modules.

If only one of the bugs above were fixed this commit wouldn't be
necessary.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
@matejvasek matejvasek force-pushed the fix-s2i-node-build-with-node-modules-on-fs branch from faae74b to a8a36e9 Compare March 9, 2023 16:39
@matejvasek
Copy link
Contributor Author

@zroubalik @lkingland PTAL

Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
@knative-prow knative-prow bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 9, 2023
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Copy link
Member
@lkingland lkingland left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Mar 10, 2023
@knative-prow
Copy link
knative-prow bot commented Mar 10, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lkingland, 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 [lkingland,matejvasek]

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

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/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.

2 participants