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

Faster subsequent Rust SDK conformance builds #1122

Merged
merged 1 commit into from
Oct 18, 2019

Conversation

aLekSer
Copy link
Collaborator

@aLekSer aLekSer commented Oct 16, 2019

Add save-cache target for Rust. Fixed Rust SDK test subsequent call was downloading and rebuilding all dependencies.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 39410f45-e42e-41a4-b4be-715d972f5af7

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: c31be20a-b775-480a-89d6-00dc1633be94

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

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: da07b335-e1e1-45d9-be96-34302d1f4a8e

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/1122/head:pr_1122 && git checkout pr_1122
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.1.0-d39ad37

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 24cfff87-7786-4966-a776-d4a6e9193703

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/1122/head:pr_1122 && git checkout pr_1122
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.1.0-bd72be0

@aLekSer
Copy link
Collaborator Author

aLekSer commented Oct 16, 2019

Now second build of Rust SDK Conformance with using restore-cache took 6 seconds:

Step #22 - "sdk-conformance": + cargo build
Step #22 - "sdk-conformance": Compiling agones v0.1.0 (/go/src/agones.dev/agones/sdks/rust)
Step #22 - "sdk-conformance": warning: use of deprecated item 'std::error::Error::cause': replaced by Error::source, which can support downcasting
Step #22 - "sdk-conformance": --> /go/src/agones.dev/agones/sdks/rust/src/errors.rs:16:1
Step #22 - "sdk-conformance": Compiling rust-simple v0.1.0 (/go/src/agones.dev/agones/test/sdk/rust)
Step #22 - "sdk-conformance": warning: variable does not need to be mutable
Step #22 - "sdk-conformance": --> src/main.rs:24:19
[... warning ommitted ] 
Step #24: | [134 files][ 10.4 GiB/ 10.5 GiB] 37.9 MiB/s / / [135 files][ 10.5 GiB/ 10.5 GiB] 39.4 MiB/s - Copying file://agonessdk-1.1.0-519f278-linux-arch_64.tar.gz [Content-Type=application/x-tar]...
Step #22 - "sdk-conformance": Finished dev [unoptimized + debuginfo] target(s) in 6.02s

Previously it takes Finished dev [unoptimized + debuginfo] target(s) in 52.34s without downloading.
Also we become not dependent on availability of crates.io now.

@aLekSer
Copy link
Collaborator Author

aLekSer commented Oct 16, 2019

About 3 minutes are still spent on building docker image each time from scratch:
docker build --tag=agones-build-sdk-rust:dd588212ce /workspace/build/build-sdk-images/rust --build-arg BASE_IMAGE=agones-build-sdk-base:0ea0db43e9 .

So I think we could add gcr.io prefix to the above tag and add these targets here:

push: push-controller-image push-agones-sdk-image push-ping-image push-allocator-image

in order to avoid rebuilding all these additional images.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 9861d539-ed2e-4180-832a-a69a889e164a

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/1122/head:pr_1122 && git checkout pr_1122
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.1.0-3df0b4d

@roberthbailey
Copy link
Member

This PR now has conflicts so I can't update it and merge.

@aLekSer
Copy link
Collaborator Author

aLekSer commented Oct 18, 2019

@roberthbailey I will update this branch in an hour time, thanks for reviewing.

@roberthbailey
Copy link
Member

Excellent. I'm trying to get through a bit of the PR backlog today. :)

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: e177ec74-0b6d-49d6-a243-3a482ad9c05e

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/1122/head:pr_1122 && git checkout pr_1122
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.1.0-dc2bb39

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

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

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 6cff52a into googleforgames:master Oct 18, 2019
@markmandel markmandel added this to the 1.1.0 milestone Oct 22, 2019
@markmandel markmandel added area/tests Unit tests, e2e tests, anything to make sure things don't break kind/cleanup Refactoring code, fixing up documentation, etc labels Oct 22, 2019
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/cleanup Refactoring code, fixing up documentation, etc lgtm size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants