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

Update Rust document #3336

Merged
merged 24 commits into from
Aug 26, 2023
Merged

Conversation

Kalaiselvi84
Copy link
Contributor

@Kalaiselvi84 Kalaiselvi84 commented Aug 21, 2023

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
/kind release

What this PR does / Why we need it:

Which issue(s) this PR fixes:

Closes #1932

Special notes for your reviewer:

@github-actions github-actions bot added the kind/documentation Documentation for Agones label Aug 21, 2023
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: add8c93f-9ead-4e21-9c7f-a8a22499923d

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

## Prerequisites

- [Rust >= 1.50](https://www.rust-lang.org/tools/install)

## Usage

Add this crate to `dependencies` section in your Cargo.toml. Specify a directory where this README.md is located to the `path`.
Add [`this crate`](https://crates.io/crates/agones) to `dependencies` section in your Cargo.toml.
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
Add [`this crate`](https://crates.io/crates/agones) to `dependencies` section in your Cargo.toml.
Add <a href="https://crates.io/crates/agones" data-proofer-ignore>this crate</a> to `dependencies` section in your Cargo.toml.

100% seen below before - crates.io hates people scraping them.

========================================================================
site/docs/guides/client-sdks/rust/index.html
  Non-OK status: 404 --- site/docs/guides/client-sdks/rust/index.html --> https://crates.io/crates/agones

Copy link
Contributor Author

Choose a reason for hiding this comment

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

followed your input👍🏻

@@ -63,7 +63,7 @@ and copy it into a release issue. Fill in relevant values, found inside {}
- [ ] Post to the [agonesdev](https://twitter.com/agonesdev) Twitter account.
- [ ] Run `git checkout main`.
- [ ] Run `make sdk-update-version release_stage=after version={version}` file. This command will update the version number in the sdks/install files to {version}+1-dev.
- [ ] Update the `agones` crate version in `sdks/rust/Cargo.toml` to {version}, then run `cargo publish --dry-run` and, if successful, proceed with `cargo publish`
- [ ] Update the `agones` crate version in `sdks/rust/Cargo.toml` to {version}. First, run `cargo login` to authenticate with `crates.io`. Afterward, execute `cargo publish --dry-run`. If that is successful, proceed with `cargo publish`.
Copy link
Member

Choose a reason for hiding this comment

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

Optional:

sdk-shell:
$(MAKE) ensure-build-sdk-image SDK_FOLDER=$(SDK_FOLDER)
docker run --rm -it $(common_mounts) -v ~/.ssh:/tmp/.ssh:ro $(DOCKER_RUN_ARGS) \
--entrypoint=/root/shell.sh $(SDK_IMAGE_TAG)
# SDK shell for node
sdk-shell-node:
$(MAKE) sdk-shell SDK_FOLDER=node
# SDK shell for csharp
sdk-shell-csharp:
$(MAKE) sdk-shell SDK_FOLDER=csharp
# Publish csharp SDK to NuGet
sdk-publish-csharp: RELEASE_VERSION ?= $(base_version)
sdk-publish-csharp:
$(MAKE) run-sdk-command-csharp COMMAND=publish VERSION=$(RELEASE_VERSION) DOCKER_RUN_ARGS="$(DOCKER_RUN_ARGS) -it"

Could also make a make sdk-shell-rust target and use that command line to do the publishing of the Rust crate (rather than install tools locally).

Not sure if that's how you are doing the node deployments?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added sdk-shell-rust target but how can we test it? If we execute this target, will it be added in the Agones crate again?

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 6adbb760-0532-4b5d-88ec-ef8837cdbb4c

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 0490c059-0db4-4eaa-9cba-fab030a8e066

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

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 56667775-3c09-43ed-969d-e0c37c12c7ce

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/3336/head:pr_3336 && git checkout pr_3336
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.35.0-dev-5b9521c-amd64

@google-oss-prow google-oss-prow bot added size/M and removed size/S labels Aug 22, 2023
@Kalaiselvi84 Kalaiselvi84 marked this pull request as ready for review August 22, 2023 22:20
@google-oss-prow google-oss-prow bot requested a review from aLekSer August 22, 2023 22:20
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: f2b45224-1d77-4eba-b811-439dbef87f47

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

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 98b04a0c-7be4-49f8-b9db-10f87995cae6

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/3336/head:pr_3336 && git checkout pr_3336
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.35.0-dev-c3e2c99-amd64

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.

Love it. Couple of small nits, but otherwise this is good to go.

@@ -0,0 +1,35 @@
#!/usr/bin/env bash

# Copyright 2020 Google LLC All Rights Reserved.
Copy link
Member

Choose a reason for hiding this comment

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

Nit:

Suggested change
# Copyright 2020 Google LLC All Rights Reserved.
# Copyright 2023 Google LLC All Rights Reserved.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

Copy link
Member

Choose a reason for hiding this comment

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

To be consistent, let's call it publish.sh

Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed it


# Publish the Rust SDK to crates.io
sdk-publish-rust:
$(MAKE) run-sdk-command-rust VERSION=$(RELEASE_VERSION) DOCKER_RUN_ARGS="$(DOCKER_RUN_ARGS) -it" COMMAND=./publish-rust
Copy link
Member

Choose a reason for hiding this comment

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

Nit (and see comment above for naming):

Suggested change
$(MAKE) run-sdk-command-rust VERSION=$(RELEASE_VERSION) DOCKER_RUN_ARGS="$(DOCKER_RUN_ARGS) -it" COMMAND=./publish-rust
$(MAKE) run-sdk-command-rust VERSION=$(RELEASE_VERSION) DOCKER_RUN_ARGS="$(DOCKER_RUN_ARGS) -it" COMMAND=publish

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!

@markmandel
Copy link
Member

This okay to me moved to ready for review ?

@Kalaiselvi84 Kalaiselvi84 marked this pull request as ready for review August 24, 2023 21:53
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.

Aaah! Conflict 😄 but good to go when it's fixed.

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

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

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 Aug 24, 2023
@google-oss-prow
Copy link

New changes are detected. LGTM label has been removed.

@markmandel markmandel enabled auto-merge (squash) August 24, 2023 23:05
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: d965ada1-7636-4076-8565-2d44385ed420

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

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 1abcde39-f0ab-4197-a114-795c6f391875

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/3336/head:pr_3336 && git checkout pr_3336
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.35.0-dev-c23eaeb-amd64

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 18baccaa-4d3f-478f-978f-fec213c03bda

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/3336/head:pr_3336 && git checkout pr_3336
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.35.0-dev-129599f-amd64

@markmandel markmandel merged commit 176431c into googleforgames:main Aug 26, 2023
2 checks passed
@Kalaiselvi84 Kalaiselvi84 deleted the update-rust-file branch March 15, 2024 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make a rust SDK crate
3 participants