-
Notifications
You must be signed in to change notification settings - Fork 134
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(pipelines): file not found for marketplace snapshot test #1390
fix(pipelines): file not found for marketplace snapshot test #1390
Conversation
cc @Bobgy |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zijianjoy 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 |
@@ -52,7 +52,10 @@ presubmits: | |||
containers: | |||
- image: alpine:3.15.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like alpine image doesn't contain /bin/bash by default. Maybe just use gcr.io/google.com/cloudsdktool/cloud-sdk:latest which is already used in this file?
Alternatively, I'm not sure if changing the #!/bin/bash
to #!/bin/sh
in manifests/gcp_marketplace/test/presubmit.sh would work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a good point, after trying gcloud, I found that it doesn't have apt
which is required by presubmit.sh. So I will just use alpine because it will install bash if not exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if alpine comes with apt
by default. Looks like you need a not-so-minimum image, I'm guessing you might need to try debian slim or something similar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am able to use apt
for alpine, or should I try debian slim? Will that be too big for presubmit run?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, if it works, then never mind. :) Let's merge and try it out.
- /bin/sh | ||
args: | ||
- -c | ||
- sh ./manifests/gcp_marketplace/test/presubmit.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to stick with alpine, that's fine by me. Maybe/bin/sh -c sh something.sh
can be simplified to/bin/sh something.sh
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After trying the scripts, I found that I need to run more than one command, please see the updated commands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot to push?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry! I have pushed now.
/lgtm Thanks! |
@zijianjoy: Updated the
In response to this:
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. |
I found that the presubmit test has failed because it cannot find the presubmit file:
kubeflow/pipelines#7137