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

Use latest GCI image based on a regex in Node e2e #29815

Merged
merged 2 commits into from
Aug 10, 2016

Conversation

vishh
Copy link
Contributor

@vishh vishh commented Jul 30, 2016

This PR also makes it possible to run node e2e against multiple previous images, sorted by creation time. A regex for the image name can be used to instruct node e2e to identify test images.

Depends on #29577


This change is Reviewable

@vishh vishh added the release-note-none Denotes a PR that doesn't merit a release note. label Jul 30, 2016
@k8s-github-robot k8s-github-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 30, 2016
@vishh
Copy link
Contributor Author

vishh commented Aug 6, 2016

@Random-Liu can you review this now? I will fix the test failure some time soon. The rest of the PR is ready to go

@vishh vishh force-pushed the node-e2e-latest-gci branch 2 times, most recently from 28006a0 to 73e378f Compare August 8, 2016 19:26
@vishh
Copy link
Contributor Author

vishh commented Aug 8, 2016

@Random-Liu I suspect that this change will reduce the flakiness for node e2e. Can you review this patch soon?

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 9, 2016
@@ -126,7 +129,7 @@ if [ $remote = true ] ; then
echo "Ginkgo Flags: $ginkgoflags"
echo "Instance Metadata: $metadata"
# Invoke the runner
go run test/e2e_node/runner/run_e2e.go --logtostderr --vmodule=*=2 --ssh-env="gce" \
go run test/e2e_node/runner/run_e2e.go --logtostderr --vmodule=*=4 --ssh-env="gce" \
Copy link
Member

@Random-Liu Random-Liu Aug 9, 2016

Choose a reason for hiding this comment

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

Just make sure. If this on purpose or changed during debugging? :)

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 did change it on purpose. Otherwise debugging jenkins failures are difficult.

@Random-Liu
Copy link
Member

LGTM with a few questions. Please rebase.

- mount /tmp /tmp -o remount,exec,suid
- ETCD_VERSION=v2.2.5
- curl -L https://github.com/coreos/etcd/releases/download/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz -o /tmp/etcd.tar.gz
- mount tmpfs /tmp -o remount,exec,suid
Copy link
Member

Choose a reason for hiding this comment

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

Just for my education. What is the difference between mount /tmp /tmp and mount tmpfs /tmp? GCI is not using tmpfs by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No difference. I reverted this change to be safe.

vishh added 2 commits August 10, 2016 11:24
It can run tests against multiple existing images that match a regex.
GCI images will be using a regex.

Signed-off-by: Vishnu kannan <vishnuk@google.com>
Signed-off-by: Vishnu kannan <vishnuk@google.com>
@vishh vishh force-pushed the node-e2e-latest-gci branch from 73e378f to e9034f1 Compare August 10, 2016 18:25
@k8s-github-robot k8s-github-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 10, 2016
@vishh
Copy link
Contributor Author

vishh commented Aug 10, 2016

@Random-Liu rebased PTAL.

@k8s-bot
Copy link

k8s-bot commented Aug 10, 2016

GCE e2e build/test passed for commit e9034f1.

@vishh vishh added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 10, 2016
@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Aug 10, 2016

GCE e2e build/test passed for commit e9034f1.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit eef8bfe into kubernetes:master Aug 10, 2016
k8s-github-robot pushed a commit that referenced this pull request Aug 29, 2016
…ional

Automatic merge from submit-queue

node e2e script: call 'gcloud compute' only if necessary

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

The ``gcloud compute`` is called everytime even if it is not needed.
When runnin node e2e tests on RHEL, the test-e2e-node.sh script is run
the way in which it takes execution path without ``gcloud`` invocation.

With the current code, ``gcloud`` is called everytime.
Thus introducing additional runtime dependency.

**Special notes for your reviewer**:

First introduced here: #29815
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants