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

Allow env var overrides for e2e tests #1566

Merged
merged 1 commit into from
May 27, 2020

Conversation

markmandel
Copy link
Collaborator

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking

/kind bug

/kind cleanup
/kind documentation
/kind feature
/kind hotfix

What this PR does / Why we need it:

The ordering of env var parsing meant you couldn't override test values such as image with an environment variable, even though the intent of the code seems to indicate that is the desired result.

This change allows the use of environment variables can now be used!

Which issue(s) this PR fixes:

None

Special notes for your reviewer:
None

@markmandel markmandel added kind/bug These are bugs. area/tests Unit tests, e2e tests, anything to make sure things don't break labels May 17, 2020
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: ae8021ad-7d0e-4bd9-8240-7ba4e316725b

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@markmandel
Copy link
Collaborator Author

Doh, broke a thing:

Starting e2e integration test!
go test -mod=vendor -race -parallel=64 agones.dev/agones/test/e2e --kubeconfig /root/.kube/config \
	--gameserver-image=gcr.io/agones-images/udp-server:0.20 \
	--pullsecret= \
	--feature-gates="PlayerTracking=true&ContainerPortAllocation=true"
unknown flag: --kubeconfig
Usage of /tmp/go-build754818963/b001/e2e.test:
      --feature-gates string   Flag to pass in the url query list of feature flags to enable or disable
unknown flag: --kubeconfig
FAIL	agones.dev/agones/test/e2e	0.153s

I'll come back to this later.

@markmandel markmandel marked this pull request as draft May 18, 2020 00:08
The ordering of env var parsing meant you couldn't override test values
such as image with an environment variable, even though the intent of
the code seems to indicate that is the desired result.

This change allows the use of environment variables can now be used!
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 99d7d42b-4804-41fe-aad4-8e8d1c5f52d8

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@markmandel
Copy link
Collaborator Author

--- FAIL: TestFleetAggregatedPlayerStatus (103.13s)
    fleet_test.go:1270: Could not message GameServer: read udp 192.168.10.2:41816->35.247.4.172:7473: i/o timeout

Looks like it might be a bit of a flake. Might want to put a retry on that operation.

@markmandel markmandel marked this pull request as ready for review May 27, 2020 17:59
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 67710271-2678-44ee-ae8a-d4d75df5e9fa

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

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/1566/head:pr_1566 && git checkout pr_1566
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.6.0-9a8ea49

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: markmandel, roberthbailey

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:
  • OWNERS [markmandel,roberthbailey]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@roberthbailey roberthbailey merged commit f6d6b1a into googleforgames:master May 27, 2020
@markmandel markmandel deleted the tests/env branch May 27, 2020 20:04
@markmandel markmandel added this to the 1.7.0 milestone Jun 30, 2020
ilkercelikyilmaz pushed a commit to ilkercelikyilmaz/agones that referenced this pull request Oct 23, 2020
The ordering of env var parsing meant you couldn't override test values
such as image with an environment variable, even though the intent of
the code seems to indicate that is the desired result.

This change allows the use of environment variables can now be used!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/tests Unit tests, e2e tests, anything to make sure things don't break kind/bug These are bugs. lgtm size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants