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

Fixes for flaky e2e tests. #504

Merged
merged 1 commit into from
Jan 24, 2019

Conversation

markmandel
Copy link
Member

Some more fixes for the flaky e2e tests.

I'm hoping the makes things stable again! 🍰

@markmandel markmandel added the kind/cleanup Refactoring code, fixing up documentation, etc label Jan 24, 2019
@markmandel markmandel added this to the 0.8.0 milestone Jan 24, 2019
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: fe57c6b3-c5e8-4359-b3a8-e79579d7f7bf

Build Logs
starting build "fe57c6b3-c5e8-4359-b3a8-e79579d7f7bf"

FETCHSOURCE
Initialized empty Git repository in /workspace/.git/
From https://source.developers.google.com/p/agones-images/r/agones
 * branch              4f20388bd778f5780caaea576c23f9bf9e6f6718 -> FETCH_HEAD
Checking out files:  84% (13586/16087)   
Checking out files:  85% (13674/16087)   
Checking out files:  86% (13835/16087)   
Checking out files:  87% (13996/16087)   
Checking out files:  88% (14157/16087)   
Checking out files:  89% (14318/16087)   
Checking out files:  90% (14479/16087)   
Checking out files:  91% (14640/16087)   
Checking out files:  92% (14801/16087)   
Checking out files:  93% (14961/16087)   
Checking out files:  94% (15122/16087)   
Checking out files:  95% (15283/16087)   
Checking out files:  96% (15444/16087)   
Checking out files:  97% (15605/16087)   
Checking out files:  98% (15766/16087)   
Checking out files:  99% (15927/16087)   
Checking out files: 100% (16087/16087)   
Checking out files: 100% (16087/16087), done.
HEAD is now at 4f20388b Fixes for flaky e2e tests.
BUILD
Starting Step #0
Step #0: Pulling image: ubuntu
Step #0: Using default tag: latest
Step #0: latest: Pulling from library/ubuntu
Step #0: Digest: sha256:eb5d7eda6804359e4fc5223a31a2d9caa4c8ea590b14060d81c8bc05b22ca04e
Step #0: Status: Downloaded newer image for ubuntu:latest
Finished Step #0
Starting Step #1
Step #1: Already have image (with digest): gcr.io/cloud-builders/docker
Step #1: Sending build context to Docker daemon  173.6MB

Step #1: Step 1/3 : FROM gcr.io/cloud-builders/docker
Step #1:  ---> 7a07bd5c8bec
Step #1: Step 2/3 : RUN apt-get install make
Step #1:  ---> Running in c5e2449f22b7
Step #1: Reading package lists...
Step #1: Building dependency tree...
Step #1: Reading state information...
Step #1: make is already the newest version (4.1-6).
Step #1: 0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
Step #1: Removing intermediate container c5e2449f22b7
Step #1:  ---> 09a5405db18d
Step #1: Step 3/3 : ENTRYPOINT ["/usr/bin/make"]
Step #1:  ---> Running in c4c0d5876d7f
Step #1: Removing intermediate container c4c0d5876d7f
Step #1:  ---> 900f36f8e11b
Step #1: Successfully built 900f36f8e11b
Step #1: Successfully tagged make-docker:latest
Finished Step #1
Starting Step #2
Step #2: Already have image: make-docker
Step #2: docker pull gcr.io/agones-images/agones-build:db76ca0bfb && docker tag gcr.io/agones-images/agones-build:db76ca0bfb agones-build:db76ca0bfb
Step #2: db76ca0bfb: Pulling from agones-images/agones-build
Step #2: 54f7e8ac135a: Pulling fs layer
Step #2: d6b856b25aeb: Pulling fs layer
Step #2: b4d69f3225dc: Pulling fs layer
Step #2: 35ae38fba43f: Pulling fs layer
Step #2: 0b07bd5731b1: Pulling fs layer
Step #2: c9be458cecce: Pulling fs layer
Step #2: adf56d0b1592: Pulling fs layer
Step #2: cb7a3e76cb35: Pulling fs layer
Step #2: ad6bbe5d9e39: Pulling fs layer
Step #2: 1665e2e79d54: Pulling fs layer
Step #2: 6dd3f5bc4dfb: Pulling fs layer
Step #2: ef3428aedf60: Pulling fs layer
Step #2: 55ad8552b073: Pulling fs layer
Step #2: 07ce7491b54f: Pulling fs layer
Step #2: b19dd2ef50b3: Pulling fs layer
Step #2: a760ea671a67: Pulling fs layer
Step #2: 9053ef7eba9e: Pulling fs layer
Step #2: 70c2fe44a16c: Pulling fs layer
Step #2: 7e519e55b704: Pulling fs layer
Step #2: 35ae38fba43f: Waiting
Step #2: c30bdfa63c6d: Pulling fs layer
Step #2: c97c73228563: Pulling fs layer
Step #2: a510318ea9e1: Pulling fs layer
Step #2: c9be458cecce: Waiting
Step #2: adf56d0b1592: Waiting
Step #2: 9ad9cd8032e0: Pulling fs layer
Step #2: c65faf52f1a7: Pulling fs layer
Step #2: cb7a3e76cb35: Waiting
Step #2: 07ce7491b54f: Waiting
Step #2: ad6bbe5d9e39: Waiting
Step #2: 1665e2e79d54: Waiting
Step #2: 6dd3f5bc4dfb: Waiting
Step #2: b19dd2ef50b3: Waiting
Step #2: ef3428aedf60: Waiting
Step #2: a760ea671a67: Waiting
Step #2: 55ad8552b073: Waiting
Step #2: 9053ef7eba9e: Waiting
Step #2: a510318ea9e1: Waiting
Step #2: 0b07bd5731b1: Waiting
Step #2: 70c2fe44a16c: Waiting
Step #2: 7e519e55b704: Waiting
Step #2: c97c73228563: Waiting
Step #2: 9ad9cd8032e0: Waiting
Step #2: c30bdfa63c6d: Waiting
Step #2: c65faf52f1a7: Waiting
Step #2: 54f7e8ac135a: Verifying Checksum
Step #2: 54f7e8ac135a: Download complete
Step #2: 35ae38fba43f: Verifying Checksum
Step #2: 35ae38fba43f: Download complete
Step #2: d6b856b25aeb: Verifying Checksum
Step #2: d6b856b25aeb: Download complete
Step #2: 54f7e8ac135a: Pull complete
Step #2: c9be458cecce: Verifying Checksum
Step #2: c9be458cecce: Download complete
Step #2: 0b07bd5731b1: Verifying Checksum
Step #2: 0b07bd5731b1: Download complete
Step #2: b4d69f3225dc: Verifying Checksum
Step #2: b4d69f3225dc: Download complete
Step #2: adf56d0b1592: Verifying Checksum
Step #2: adf56d0b1592: Download complete
Step #2: 1665e2e79d54: Download complete
Step #2: ad6bbe5d9e39: Verifying Checksum
Step #2: ad6bbe5d9e39: Download complete
Step #2: ef3428aedf60: Download complete
Step #2: 6dd3f5bc4dfb: Verifying Checksum
Step #2: 6dd3f5bc4dfb: Download complete
Step #2: 55ad8552b073: Verifying Checksum
Step #2: 55ad8552b073: Download complete
Step #2: b19dd2ef50b3: Verifying Checksum
Step #2: b19dd2ef50b3: Download complete
Step #2: 07ce7491b54f: Verifying Checksum
Step #2: 07ce7491b54f: Download complete
Step #2: cb7a3e76cb35: Verifying Checksum
Step #2: cb7a3e76cb35: Download complete
Step #2: 70c2fe44a16c: Verifying Checksum
Step #2: 70c2fe44a16c: Download complete
Step #2: 9053ef7eba9e: Verifying Checksum
Step #2: 9053ef7eba9e: Download complete
Step #2: a760ea671a67: Download complete
Step #2: 7e519e55b704: Verifying Checksum
Step #2: 7e519e55b704: Download complete
Step #2: c97c73228563: Download complete
Step #2: a510318ea9e1: Verifying Checksum
Step #2: a510318ea9e1: Download complete
Step #2: 9ad9cd8032e0: Verifying Checksum
Step #2: 9ad9cd8032e0: Download complete
Step #2: c65faf52f1a7: Verifying Checksum
Step #2: c65faf52f1a7: Download complete
Step #2: c30bdfa63c6d: Verifying Checksum
Step #2: c30bdfa63c6d: Download complete
Step #2: d6b856b25aeb: Pull complete
Step #2: b4d69f3225dc: Pull complete
Step #2: 35ae38fba43f: Pull complete
Step #2: 0b07bd5731b1: Pull complete
Step #2: c9be458cecce: Pull complete
Step #2: adf56d0b1592: Pull complete
Step #2: cb7a3e76cb35: Pull complete
Step #2: ad6bbe5d9e39: Pull complete
Step #2: 1665e2e79d54: Pull complete
Step #2: 6dd3f5bc4dfb: Pull complete
Step #2: ef3428aedf60: Pull complete
Step #2: 55ad8552b073: Pull complete
Step #2: 07ce7491b54f: Pull complete
Step #2: b19dd2ef50b3: Pull complete
Step #2: a760ea671a67: Pull complete
Step #2: 9053ef7eba9e: Pull complete
Step #2: 70c2fe44a16c: Pull complete
Step #2: 7e519e55b704: Pull complete
Step #2: c30bdfa63c6d: Pull complete
Step #2: c97c73228563: Pull complete
Step #2: a510318ea9e1: Pull complete
Step #2: 9ad9cd8032e0: Pull complete
Step #2: c65faf52f1a7: Pull complete
Step #2: Digest: sha256:2d00d35b9783ae90c0f836eaebb1aca018edfa03510db7301ddb121a4cb39f82
Step #2: Status: Downloaded newer image for gcr.io/agones-images/agones-build:db76ca0bfb
Finished Step #2
Starting Step #3 - "lint"
Step #3 - "lint": Already have image: make-docker
Step #3 - "lint": mkdir -p ~/.kube/
Step #3 - "lint": mkdir -p /workspace/build//.config/gcloud
Step #3 - "lint": mkdir -p ~/.helm
Step #3 - "lint": docker run -t -e "TERM=xterm-256color" --rm -v /workspace/build//.config/gcloud:/root/.config/gcloud -v ~/.kube/:/root/.kube -v ~/.helm:/root/.helm -v /workspace:/go/src/agones.dev/agones -v /workspace/build//.gocache:/root/.cache/go-build -w /go/src/agones.dev/agones  agones-build:db76ca0bfb bash -c \
Step #3 - "lint": 	"golangci-lint run ./examples/... && golangci-lint run --deadline 15m ./..."
Step #3 - "lint": �[1mtest/e2e/fleetautoscaler_test.go:19�[0m: �[31mFile is not `goimports`-ed�[0m (goimports)
Step #3 - "lint": 	k8serrors "k8s.io/apimachinery/pkg/api/errors"
Step #3 - "lint": make: *** [lint] Error 1
Step #3 - "lint": Makefile:233: recipe for target 'lint' failed
Finished Step #3 - "lint"
ERROR
ERROR: build step 3 "make-docker" failed: exit status 2

@markmandel markmandel force-pushed the flaky/TestTlsWebhook branch from 4f20388 to 0dcf8ac Compare January 24, 2019 04:48
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 33ab0989-1f9e-4ee4-aab2-464cfd3731cb

The following development artifacts have been built, and will exist for the next 30 days:

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/504/head:pr_504 && git checkout pr_504
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.8.0-0dcf8ac

@@ -416,7 +416,17 @@ func TestTlsWebhook(t *testing.T) {
}

// since we're using statically-named service, perform a best-effort delete of a previous service
framework.KubeClient.CoreV1().Services(defaultNs).Delete(svc.ObjectMeta.Name, waitForDeletion) // nolint:errcheck
err = framework.KubeClient.CoreV1().Services(defaultNs).Delete(svc.ObjectMeta.Name, waitForDeletion)
Copy link
Contributor

Choose a reason for hiding this comment

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

needs DeepCopy() here to avoid data race

Copy link
Contributor

Choose a reason for hiding this comment

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

otherwise LGTM

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 deepcopying all the things.

Some more fixes for the flaky e2e tests.
@markmandel markmandel force-pushed the flaky/TestTlsWebhook branch from 0dcf8ac to 534d2f3 Compare January 24, 2019 05:16
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 5c8a1111-a787-47aa-a0ea-a7086d1b6bbc

The following development artifacts have been built, and will exist for the next 30 days:

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/504/head:pr_504 && git checkout pr_504
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.8.0-534d2f3

Copy link
Collaborator

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@markmandel markmandel merged commit 418bdb9 into googleforgames:master Jan 24, 2019
@markmandel markmandel deleted the flaky/TestTlsWebhook branch January 24, 2019 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup Refactoring code, fixing up documentation, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants