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

Add conformance test implementation for C# SDK #3392

Merged
merged 11 commits into from
Sep 22, 2023

Conversation

yoshd
Copy link
Contributor

@yoshd yoshd commented Sep 20, 2023

What type of PR is this?

/kind feature

What this PR does / Why we need it:

Which issue(s) this PR fixes:

Closes #2803

Special notes for your reviewer:

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 602ee5bd-289c-41f6-8ee5-22492eda9bce

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 71cc5f6b-7930-49e1-8c2d-3bc70f8a2752

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 1fc3a87b-4e5c-41ab-be82-f682ff67ddd2

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: a1161430-157f-433a-ad71-2456d0758756

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

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.

You know - i swore we had one of these! Thanks for writing this!

DOCKER_RUN_ARGS="$(DOCKER_RUN_ARGS) -e RUN_ASYNC=true" $(MAKE) run-sdk-conformance-test SDK_FOLDER=csharp GRPC_PORT=9005 HTTP_PORT=9105
# run with feature flags enabled
$(MAKE) run-sdk-conformance-test SDK_FOLDER=csharp GRPC_PORT=9005 HTTP_PORT=9105 FEATURE_GATES=PlayerTracking=true TESTS=$(DEFAULT_CONFORMANCE_TESTS),$(ALPHA_CONFORMANCE_TESTS)
# run with feature flags enabled and with RUN_ASYNC=true
Copy link
Member

Choose a reason for hiding this comment

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

You don't need RUN_ASYNC -- it was Rust specific.

You can likely copy from run-sdk-conformance-test-go instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for taking the time to review !
fixed: f645e0c

@@ -0,0 +1,164 @@
using Agones;
Copy link
Member

Choose a reason for hiding this comment

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

Apache licence please 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you. Fixed 2dfe70a

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: c2792957-b5cd-4f46-9134-2092751851ad

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

@markmandel
Copy link
Member

Found where the build was failing

Step #20 - "tests": Starting test execution, please wait...
Step #20 - "tests": A total of 1 test files matched the specified pattern.
Step #20 - "tests": Testhost process for source(s) '/go/src/agones.dev/agones/sdks/csharp/test/bin/Release/netcoreapp3.1/Agones.Test.dll' exited with error: You must install or update .NET to run this application.
Step #20 - "tests": App: /root/.nuget/packages/microsoft.testplatform.testhost/15.9.0/lib/netstandard1.5/testhost.dll
Step #20 - "tests": Architecture: x64
Step #20 - "tests": Framework: 'Microsoft.NETCore.App', version '3.1.0' (x64)
Step #20 - "tests": .NET location: /usr/share/dotnet/
Step #20 - "tests": The following frameworks were found:
Step #20 - "tests":   7.0.10 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Step #20 - "tests": Learn about framework resolution:
Step #20 - "tests": https://aka.ms/dotnet/app-launch-failed
Step #20 - "tests": To install missing framework, download:
Step #20 - "tests": https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=3.1.0&arch=x64&rid=debian.11-x64
Step #20 - "tests": . Please check the diagnostic logs for more information.
Step #20 - "tests": 
Step #20 - "tests": Test Run Aborted.
Step #20 - "tests": make[1]: *** [includes/sdk.mk:88: run-sdk-command] Error 1
Step #20 - "tests": make: *** [includes/sdk.mk:84: run-sdk-command-csharp] Error 2

@yoshd
Copy link
Contributor Author

yoshd commented Sep 21, 2023

Found where the build was failing

Thank you for finding that.
It seems to be solved by installing both dotnet-sdk-7.0 and dotnet-sdk-3.1.
(Removing the old dotnet-sdk will be resolved in #3397)

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 41a54195-b244-4cd7-a241-189103f808d1

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/3392/head:pr_3392 && git checkout pr_3392
  • 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-72ff621-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.

Thanks!

@google-oss-prow google-oss-prow bot added the lgtm label Sep 21, 2023
@markmandel markmandel enabled auto-merge (squash) September 21, 2023 22:46
@google-oss-prow google-oss-prow bot removed the lgtm label Sep 21, 2023
@google-oss-prow
Copy link

New changes are detected. LGTM label has been removed.

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

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

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

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 3c925c37-5435-4e38-9a56-15f034bba1cc

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/3392/head:pr_3392 && git checkout pr_3392
  • 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-a5d1e66-amd64

@markmandel markmandel merged commit c93f709 into googleforgames:main Sep 22, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved kind/feature New features for Agones size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Csharp SDK] Conformance test implementation
3 participants