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

Adding explicit length of git revision in Makefile and E2E Can't Allocate test #440

Merged

Conversation

aLekSer
Copy link
Collaborator

@aLekSer aLekSer commented Dec 7, 2018

Output of git rev-parse short command could be different for different environments. For example on my laptop I got 8 chars which leads to errors on deployment to test-cluster using make install.
Namely:

ImagePullBackOff     agones-controller: gcr.io/agones-images/agones-controller:0.7.0-5e2ad5ee 

which should be gcr.io/agones-images/agones-controller:0.7.0-5e2ad5e.
Also adding separate test for "Can't allocate on fully sized fleet".

The docker images which are stored in docker registry currently has
format with hash of size 7 for instanse:
agones-controller:0.7.0-5e2ad5e
So on some platforms this git rev-parse command could results in 8 hex
symbols.
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: a6f2efa5-ec49-4c84-b7ee-ba420f93ce24

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/440/head:pr_440 && git checkout pr_440
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.7.0-e0aea88

Copy link
Member

@markmandel markmandel left a comment

Choose a reason for hiding this comment

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

A couple of small things to fixup, but overall looks great 👍

We usually merge our PRs into a single commit for each pull request - not sure if you want to pull the explicit length fix into another PR, or just include it in the comments in the single commit - I don't mind, up to you.

Otherwise, looks pretty good!

build/Makefile Show resolved Hide resolved
test/e2e/fleet_test.go Outdated Show resolved Hide resolved
@@ -318,14 +366,16 @@ func scaleFleet(f *v1alpha1.Fleet, scale int32) (*v1alpha1.Fleet, error) {
return framework.AgonesClient.StableV1alpha1().Fleets(defaultNs).Patch(f.ObjectMeta.Name, types.JSONPatchType, []byte(patch))
}

const replicasCount = 3
Copy link
Member

Choose a reason for hiding this comment

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

Let's move this up to the top with the rest of the consts - that's the usual go way.

Simple test which checks that we are able to add not more than
Replica count of gameservers per one fleet.
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 8103374b-c498-4ba1-8350-169a1e4c226a

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/440/head:pr_440 && git checkout pr_440
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.7.0-d3b5846

Copy link
Member

@markmandel markmandel 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 6efbe0b into googleforgames:master Dec 8, 2018
@markmandel markmandel added kind/feature New features for Agones kind/cleanup Refactoring code, fixing up documentation, etc area/build-tools Development tooling. I.e. pretty much everything in the `build` directory. labels Dec 20, 2018
@markmandel markmandel added this to the 0.7.0 milestone Dec 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build-tools Development tooling. I.e. pretty much everything in the `build` directory. kind/cleanup Refactoring code, fixing up documentation, etc kind/feature New features for Agones
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants