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

upgrade xonotic version #2669

Merged
merged 4 commits into from
Jul 22, 2022
Merged

Conversation

mridulji
Copy link
Contributor

@mridulji mridulji commented Jul 12, 2022

What type of PR is this?

Uncomment only one /kind <> line, press 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: This PR upgrades the xonotic version to 0.8.5 provided in the examples.
Which issue(s) this PR fixes:

Closes #2664

Special notes for your reviewer:

  • Updated golang version in this example to resolve build failure.
  • Added go.mod file to support newer version on golang
  • Updated base image debian:stretch to debian:bullseye

@mridulji mridulji requested a review from markmandel July 12, 2022 18:07
@mridulji mridulji changed the title upgrade xonotic, golang and debian version upgrade xonotic version Jul 12, 2022
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 172601d2-4649-46c8-8007-0d6e4ef59470

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/googleforgames/agones.git pull/2669/head:pr_2669 && git checkout pr_2669
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.tag=1.25.0-87568ff-amd64

@@ -0,0 +1,19 @@
module agones.dev/agones/examples/xonotic
Copy link
Member

Choose a reason for hiding this comment

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

Can you still run make build from this directory to build this locally outside of the docker container?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Before making these changes, I am not able to build image but go build -o wrapper . command creating the binary locally.
image

After making changes, I am able to build it both ways.

google.golang.org/protobuf v1.26.0 // indirect
)

replace agones.dev/agones v0.0.0-dev => ../../
Copy link
Member

Choose a reason for hiding this comment

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

@markmandel - what do you think about building this from head vs. a specific agones release? STK is currently built against 1.8.0, which is pretty old but also makes it clear the last time we updated it as well as making the build reproducible.

Copy link
Member

Choose a reason for hiding this comment

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

🤔 hmnn, that's a good question.

The benefit I see of running against the development branch is that you can build out an example against something that is currently being worked on and not released.

That being said - pointing to a specific version (like we do in STK) is probably a better experience for the end user, so we should probably be consistent and do the same here.

It would also make the Docker build simpler as we don't have to force building from project root and copying in files (basically copy what we do in STK).

If we need to have in-development features, we can worry about it when it happens.

The only conflict I have - in simple-game-server we do probably want to continue building against a development version, as editing that binary is often necessary to implementing and testing new features. So that's likely the exception to the above rule.

Sound good?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pointing to a specific version (like we do in STK) is probably a better experience

I also feel that xonotic is pretty much similar STK example.

If we need to have in-development features, we can worry about it when it happens.

Should we target to agones v1.8.0 (Works fine, just tested) or any other specific version?

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 use what is latest - 1.24.0. Then we know when this example was built.

@SaitejaTamma SaitejaTamma added kind/feature New features for Agones area/examples Examples. Usually found in the `examples` directory labels Jul 13, 2022
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: e68f48f5-5ab3-4f36-abbd-f29484f1e742

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/googleforgames/agones.git pull/2669/head:pr_2669 && git checkout pr_2669
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.tag=1.25.0-2a4ea06-amd64

@@ -41,6 +41,10 @@ image_tag = $(REPOSITORY)/xonotic-example:0.8
build:
cd $(root_path) && docker build -f $(project_path)/Dockerfile --tag=$(image_tag) .
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
cd $(root_path) && docker build -f $(project_path)/Dockerfile --tag=$(image_tag) .
docker build -f $(project_path)/Dockerfile --tag=$(image_tag) .

We no longer need all of Agones to build it, so we can avoid a big Docker context pull now!

STK example:

build:
docker build -f $(project_path)/Dockerfile --tag=$(image_tag) .

Other than that, I think this is good to go (I should test making it, but I'll do that one this is complete).

Not for this PR - but I noticed that make build doesn't build the windows image -- we should probably track that work somewhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the suggestion 😃. Please see if it looks good now.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: af499f85-5af1-48bc-b317-c3aafd5d4e0b

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/googleforgames/agones.git pull/2669/head:pr_2669 && git checkout pr_2669
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.tag=1.25.0-24332bd-amd64

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

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

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:

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

@google-oss-prow google-oss-prow bot removed the lgtm label Jul 22, 2022
@google-oss-prow
Copy link

New changes are detected. LGTM label has been removed.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: ea112731-4f1d-40fd-b05e-b9546475661f

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/googleforgames/agones.git pull/2669/head:pr_2669 && git checkout pr_2669
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.tag=1.25.0-ebbd3de-amd64

@markmandel markmandel merged commit f0a4ec9 into googleforgames:main Jul 22, 2022
@markmandel markmandel added this to the 1.25.0 milestone Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/examples Examples. Usually found in the `examples` directory kind/feature New features for Agones size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade Xonotic to 0.8.5
5 participants