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(pipelines): file not found for marketplace snapshot test #1390

Merged

Conversation

zijianjoy
Copy link
Contributor

I found that the presubmit test has failed because it cannot find the presubmit file:

kubeflow/pipelines#7137

@zijianjoy
Copy link
Contributor Author

cc @Bobgy

@google-oss-prow
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@@ -52,7 +52,10 @@ presubmits:
containers:
- image: alpine:3.15.0
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

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
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

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

forgot to push?

Copy link
Contributor Author

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.

@chensun
Copy link
Member

chensun commented Jan 5, 2022

/lgtm

Thanks!

@google-oss-prow google-oss-prow bot added the lgtm label Jan 5, 2022
@google-oss-prow google-oss-prow bot merged commit fefb1de into GoogleCloudPlatform:master Jan 5, 2022
@google-oss-prow
Copy link
Contributor

@zijianjoy: Updated the job-config configmap in namespace default at cluster default using the following files:

  • key kubeflow-pipelines-presubmits.yaml using file prow/prowjobs/kubeflow/pipelines/kubeflow-pipelines-presubmits.yaml

In response to this:

I found that the presubmit test has failed because it cannot find the presubmit file:

kubeflow/pipelines#7137

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants