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

Move postsubmit tests to lite deployment #1939

Merged
merged 5 commits into from
Aug 23, 2019

Conversation

Bobgy
Copy link
Contributor

@Bobgy Bobgy commented Aug 23, 2019

/assign @IronPan


This change is Reviewable

@@ -114,14 +114,16 @@ elif [[ ${CLOUDBUILD_FINISHED} == TIMEOUT ]];then
exit 1
fi

# Deploy Kubeflow
source "${DIR}/deploy-kubeflow.sh"
COMMIT_SHA=$PULL_BASE_SHA source "${DIR}/deploy-cluster.sh"
Copy link
Member

Choose a reason for hiding this comment

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

the old code seems just uses pull_pull_sha.

TEST_CLUSTER=$(echo $TEST_CLUSTER_PREFIX | cut -d _ -f 1)-${PULL_PULL_SHA:0:7}-${RANDOM}

just to double check, is this pull base sha the right SHA?

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 think it might be a problem of previous code (this also works if PULL_PULL_SHA is empty).
https://github.com/kubernetes/test-infra/blob/master/prow/jobs.md#job-environment-variables
when running postsubmit test, there's only PULL_BASE_SHA, there's no PULL_PULL_SHA

Copy link
Member

Choose a reason for hiding this comment

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

That explains the empty sha in the GKE cluster I saw before. Great catch!

@Bobgy
Copy link
Contributor Author

Bobgy commented Aug 23, 2019

/hold
I've been trying to run the test locally in ml-pipeline-test project, but I'm getting some network issues. I will ask for review once I verified it's working.

@Bobgy
Copy link
Contributor Author

Bobgy commented Aug 23, 2019

/hold cancel
I tested it works when I run it in ml-pipeline-test. I think it's good to be review/merged.

@gaoning777
Copy link
Contributor

/lgtm

@IronPan
Copy link
Member

IronPan commented Aug 23, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: IronPan

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

@k8s-ci-robot k8s-ci-robot merged commit 8e53eb4 into kubeflow:master Aug 23, 2019
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.

4 participants