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

Update directly executed scripts on workflows and scripts #173

Merged
merged 5 commits into from
Apr 26, 2023

Conversation

thepetk
Copy link
Contributor

@thepetk thepetk commented Apr 18, 2023

Please specify the area for this PR

/area ci

What does does this PR do / why we need it:

It ensures that all script executions, inside .github/workflows and inside scripts code, are not directly executed and that the script file is passed to the appropriate shell defined by the scripts shebang. For example. in the case of a bash script ./build.sh would become bash ./build.sh.

Which issue(s) this PR fixes:

fixes devfile/api#973

Fixes #?

PR acceptance criteria:

  • Test Coverage
    • Are your changes sufficiently tested, and are any applicable test cases added or updated to cover your changes?

Documentation (WIP)

How to test changes / Special notes to the reviewer:

Signed-off-by: thepetk <thepetk@gmail.com>
@thepetk thepetk self-assigned this Apr 18, 2023
@openshift-ci
Copy link

openshift-ci bot commented Apr 18, 2023

@thepetk: The label(s) area/ci cannot be applied, because the repository doesn't have them.

In response to this:

Please specify the area for this PR

/area ci

What does does this PR do / why we need it:

It ensures that all script executions, inside .github/workflows and inside scripts code, are not directly executed and that the script file is passed to the appropriate shell defined by the scripts shebang. For example. in the case of a bash script ./build.sh would become bash ./build.sh.

Which issue(s) this PR fixes:

fixes devfile/api#973

Fixes #?

PR acceptance criteria:

  • Test Coverage
    • Are your changes sufficiently tested, and are any applicable test cases added or updated to cover your changes?

Documentation (WIP)

How to test changes / Special notes to the reviewer:

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.

@codecov
Copy link

codecov bot commented Apr 18, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (11a8482) 42.28% compared to head (a4feb9f) 42.28%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #173   +/-   ##
=======================================
  Coverage   42.28%   42.28%           
=======================================
  Files           6        6           
  Lines        1057     1057           
=======================================
  Hits          447      447           
  Misses        567      567           
  Partials       43       43           

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.

Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
index/server/Dockerfile Outdated Show resolved Hide resolved
Signed-off-by: thepetk <thepetk@gmail.com>
Copy link
Member

@michael-valdron michael-valdron left a comment

Choose a reason for hiding this comment

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

Also, either:

My mistake, test is failing because of my last suggestion. Revert this and do the first one.

Could you add RUN chmod +x /entrypoint.sh after https://github.com/thepetk/devfile-registry-support/blob/2ba2ba41bad7daf4065b0e17418a88119f803a05/index/server/Dockerfile#L13. Still need this because of the assumption that the source entrypoint.sh will be non-executable.

Signed-off-by: thepetk <thepetk@gmail.com>
Copy link
Member

@michael-valdron michael-valdron left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 24, 2023
@openshift-ci
Copy link

openshift-ci bot commented Apr 24, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: michael-valdron, thepetk
Once this PR has been reviewed and has the lgtm label, please assign johnmcollier for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@thepetk thepetk merged commit 200b4f0 into devfile:main Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
2 participants