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

Docs: Fix using GOPATH in the guides, added shortcode ghrelease #1165

Merged
merged 1 commit into from
Nov 5, 2019

Conversation

aLekSer
Copy link
Collaborator

@aLekSer aLekSer commented Oct 30, 2019

Switch from local path to github link.
Added shortcode ghrelease which added a link to download zip file.
Closes #1151.

@aLekSer aLekSer changed the title Fix using GOPATH in the guides Docs: Fix using GOPATH in the guides Oct 30, 2019
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: f7b889e9-5430-4fea-9769-183353367ac2

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/1165/head:pr_1165 && git checkout pr_1165
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.2.0-16ef330

@@ -94,3 +95,5 @@ $ curl -X PUT "http://localhost:59358/metadata/label" -H "accept: application/js
$ curl -GET "http://localhost:59358/gameserver" -H "accept: application/json"}"
{"object_meta":{"creation_timestamp":"-62135596800","labels":{"agones.dev/sdk-foo":"bar"}},"spec":{"health":{}},"status":{"state":"Ready"}}
```

It is assumed that you have downloaded and unzipped SDK server binary according to your OS type (in this example sdk-server.linux.amd64).
Copy link
Member

Choose a reason for hiding this comment

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

I'm not clear on why this is at the very bottom of the page (or here at all). At the top of the page it talks about downloading the sdkserver and also using it, so presumably if you got this far you already know that downloading is required.

Copy link
Collaborator Author

@aLekSer aLekSer Oct 30, 2019

Choose a reason for hiding this comment

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

Yes, I thought of someone who would read from the middle. However this might be obvious, so I will remove this section.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed this and lines above, used {{< release-version >}}

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 2f317173-3a2c-4a65-bc46-a43b87826d5a

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/1165/head:pr_1165 && git checkout pr_1165
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.2.0-0eba665

@aLekSer
Copy link
Collaborator Author

aLekSer commented Oct 30, 2019

Also update log output to be consistent with what we have now

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 95a4a047-5121-40c1-8929-a8f6c8c52faa

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/1165/head:pr_1165 && git checkout pr_1165
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.2.0-cc1153e

that you can see exactly what the SDK in your game server is doing, and can
confirm everything works.

To do this you will need to download the latest agonessdk-server-{VERSION}.zip from
To do this you will need to download the latest `agonessdk-server-{{< release-version >}}.zip` from
Copy link
Member

Choose a reason for hiding this comment

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

Should this be release-branch instead of release-version? Right now the rendered site replaces this with 1.2.0 and the github links with "master" (which I assume will change the 1.1.0 once this publishes). They should both point to 1.1.0 since that is the latest release.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

According as of release PR to https://github.com/googleforgames/agones/pull/1161/files:

release_branch = "release-1.1.0"
release_version = "1.1.0"

File is agonessdk-server-1.1.0.zip.
master is set as ENV variable in includes/website.mk.
I will try to deploy this and attach it here.

that you can see exactly what the SDK in your game server is doing, and can
confirm everything works.

To do this you will need to download the latest agonessdk-server-{VERSION}.zip from
To do this you will need to download the latest `agonessdk-server-{{< release-version >}}.zip` from
Copy link
Member

Choose a reason for hiding this comment

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

nit: remove "the latest" since this will now point to a specific zip file name.

that you can see exactly what the SDK in your game server is doing, and can
confirm everything works.

To do this you will need to download the latest agonessdk-server-{VERSION}.zip from
To do this you will need to download the latest `agonessdk-server-{{< release-version >}}.zip` from
[releases](https://github.com/googleforgames/agones/releases), and unzip it.
Copy link
Member

Choose a reason for hiding this comment

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

Can we point to the specific release instead of making users find it on this page?

Maybe something like https://github.com/googleforgames/agones/releases/tag/v{{< release-branch >}}?

Copy link
Collaborator Author

@aLekSer aLekSer Oct 31, 2019

Choose a reason for hiding this comment

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

Yes that would be definitely a better solution.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 9f2cc6a6-ad18-426f-858b-13d9e4dd9472

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

@aLekSer
Copy link
Collaborator Author

aLekSer commented Oct 31, 2019

With this version make site-test fails with:

Non-OK status: 404 --- site/docs/guides/client-sdks/local/index.html --> https://github.com/googleforgames/agones/releases/download/v1.2.0/agonessdk-server-1.2.0.zip
Step #16 - "tests": 

Need some enhanced way to keep reference checks calm.

@roberthbailey
Copy link
Member

There's a data-proofer attribute you can add to links to make tests pass even if the links don't yet resolve.

@aLekSer aLekSer force-pushed the docs/fix-local-paths branch 2 times, most recently from d5ab49f to 740d70b Compare October 31, 2019 19:57
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: f53d081e-c408-489c-a335-0347e514c8ac

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/1165/head:pr_1165 && git checkout pr_1165
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.2.0-d5ab49f

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 1a4e1ca4-f316-43d9-a68d-2953b34f6178

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/1165/head:pr_1165 && git checkout pr_1165
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.2.0-740d70b

@markmandel
Copy link
Member

Not sure it's useful here, but we have a github link shortcode:
https://github.com/googleforgames/agones/blob/master/site/layouts/shortcodes/ghlink.html

But I think you are mostly pointing at raw/releases, so probably not so useful.

@aLekSer aLekSer changed the title Docs: Fix using GOPATH in the guides Docs: Fix using GOPATH in the guides, added shortcode ghreleases Nov 1, 2019
@aLekSer aLekSer changed the title Docs: Fix using GOPATH in the guides, added shortcode ghreleases Docs: Fix using GOPATH in the guides, added shortcode ghrelease Nov 1, 2019
@aLekSer
Copy link
Collaborator Author

aLekSer commented Nov 1, 2019

Thanks for the comments, I have joined both suggestions and the result was introducing a new shortcode ghrelease which would make a proper <a> tag with data-proofer-ignore in it.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 2078e6aa-d9ad-4941-8b50-4e3dba25f9b6

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/1165/head:pr_1165 && git checkout pr_1165
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.2.0-5aed24f

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: a51c0ea3-ab74-4976-865a-8c7add66b855

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/1165/head:pr_1165 && git checkout pr_1165
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.2.0-cd88dd1

@roberthbailey roberthbailey self-assigned this Nov 4, 2019
@roberthbailey
Copy link
Member

/assign @markmandel

Mark - can you take a quick glance (since you are more of an expert on the website) and merge if you are comfortable with the change?

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 2f927657-f70f-4095-8bf9-6a97b6283d8b

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/1165/head:pr_1165 && git checkout pr_1165
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.2.0-4a6902d

@@ -0,0 +1 @@
<a href="{{$.Page.Site.Params.github_repo}}/releases/download/v{{$.Page.Site.Params.release_version}}/{{ .Get 0 }}-{{$.Page.Site.Params.release_version}}.zip" data-proofer-ignore >{{ .Get 0 }}-{{$.Page.Site.Params.release_version}}.zip</a>
Copy link
Member

Choose a reason for hiding this comment

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

Should this always be data-proofer-ignore ? I would think this should be an optional attribute, like ghlink has.

We will want this link tested long term.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's correct. I thought of the situation when we don't created release archives, but have updated the version. I will update this PR.

Copy link
Collaborator Author

@aLekSer aLekSer Nov 5, 2019

Choose a reason for hiding this comment

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

Resolved an issue, resulting make site-server web page contains future version:

<a href="https://github.com/googleforgames/agones/releases/download/v1.2.0/agonessdk-server-1.2.0.zip" data-proofer-ignore="">agonessdk-server-1.2.0.zip</a>

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 60b536c7-59c2-47b5-a35b-c7182db71b4c

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

@aLekSer
Copy link
Collaborator Author

aLekSer commented Nov 5, 2019

@markmandel Something went wrong with formatting:


Step #21: time="2019-11-05 14:34:37.885" level=info msg="sending message" fields.msg=CRASH gs=udp-serverc77fb state=Scheduled test=TestGameServerRestartBeforeReadyCrash
...
Step #21: time="2019-11-05 14:35:16.957" level=info msg="sending message" fields.msg=CRASH gs=udp-serverc77fb state=Scheduled test=TestGameServerRestartBeforeReadyCrash
...
Step #21: time="2019-11-05 14:35:47.960" level=info msg="sending message" fields.msg=READY gs=udp-serverc77fb state=Scheduled test=TestGameServerRestartBeforeReadyCrash
....
Step #21: time="2019-11-05 14:38:47.970" level=info msg="sending message" fields.msg=READY gs=udp-serverc77fb state=Unhealthy test=TestGameServerRestartBeforeReadyCrash
Step #21: time="2019-11-05 14:38:47.979" level=info msg="sending message" fields.msg=READY gs=udp-serverc77fb state=Unhealthy test=TestGameServerRestartBeforeReadyCrash
Step #21: --- FAIL: TestGameServerRestartBeforeReadyCrash (271.91s)
Step #21: gameserver_test.go:304:
Step #21: Error Trace: gameserver_test.go:304
Step #21: Error: Could not make GameServer Ready: %v
Step #21: Test: TestGameServerRestartBeforeReadyCrash
Step #21: Messages: timed out waiting for the condition
Step #21: FAIL

func FailNowf(t TestingT, failureMessage string, msg string, args ...interface{}) bool
Could be something like:

assert.FailNowf(t, "Could not make GameServer Ready", "Error description: %v", err.Error())

Add ghrelase shotcode which uses one param - file prefix.
Switch from local path to github link.
Closes googleforgames#1151.
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 306e8692-c340-4908-9238-9678b05a25e2

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/1165/head:pr_1165 && git checkout pr_1165
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.2.0-ab4e1d0

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!

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aLekSer, 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

@markmandel markmandel merged commit 5a1b769 into googleforgames:master Nov 5, 2019
@roberthbailey roberthbailey added this to the 1.2.0 milestone Nov 8, 2019
@markmandel markmandel added kind/cleanup Refactoring code, fixing up documentation, etc kind/documentation Documentation for Agones labels Dec 4, 2019
ilkercelikyilmaz pushed a commit to ilkercelikyilmaz/agones that referenced this pull request Oct 23, 2020
Add ghrelase shotcode which uses one param - file prefix.
Switch from local path to github link.
Closes googleforgames#1151.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved kind/cleanup Refactoring code, fixing up documentation, etc kind/documentation Documentation for Agones lgtm size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quickstart: Create a Fleet Autoscaler with Webhook Policy
5 participants