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

Test NodeJS image #3498

Merged
merged 12 commits into from
Nov 14, 2023
Merged

Test NodeJS image #3498

merged 12 commits into from
Nov 14, 2023

Conversation

Kalaiselvi84
Copy link
Contributor

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 #3481

Special notes for your reviewer:

@github-actions github-actions bot added the kind/cleanup Refactoring code, fixing up documentation, etc label Nov 9, 2023
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: b4106d42-ba70-4106-b983-fbfa16eaeefa

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 5771a8b5-796f-4423-bdda-a9d8d1b88935

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: c487619b-1123-4cc7-a14a-ab06586551e7

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

@markmandel
Copy link
Member

Looks like a legit error:

time="2023-11-10 02:25:15.752" level=info msg="Checking Fleet Ready replicas" expected=3 fleet=simple-fleet-1.0q5sw4 fleetStatus="{Replicas:3 ReadyReplicas:0 ReservedReplicas:0 AllocatedReplicas:0 Players:0xc000a58c50 Counters:map[] Lists:map[]}" test=TestFleetStrategyValidation
    examples_test.go:134: 
        	Error Trace:	/go/src/agones.dev/agones/test/e2e/examples_test.go:134
        	Error:      	Received unexpected error:
        	            	waiting for { [{default Dynamic <nil> 7654 0 UDP}] {false 25 0 30}  { 0 0} {{      0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []} {[] [] [{nodejs-simple us-docker.pkg.dev/agones-images/examples/nodejs-simple-server:0.9 [] []  [] [] [] {map[] map[] []} [] [] [] nil nil nil nil    nil false false false}] []  <nil> <nil>  map[]   <nil>  false false false <nil> nil []   nil  [] []  <nil> nil [] <nil> <nil> <nil> map[] [] <nil> nil <nil> [] []}} <nil> map[] map[] <nil>} GameServer instance readiness timed out (): waiting for GameServer 1699582568/nodejs-simple-dtzjt to be Ready: GameServer reached terminal state Unhealthy
        	Test:       	TestNodeJSGameServerReady
--- FAIL: TestNodeJSGameServerReady (128.44s)

@Kalaiselvi84
Copy link
Contributor Author

Looks like a legit error:

time="2023-11-10 02:25:15.752" level=info msg="Checking Fleet Ready replicas" expected=3 fleet=simple-fleet-1.0q5sw4 fleetStatus="{Replicas:3 ReadyReplicas:0 ReservedReplicas:0 AllocatedReplicas:0 Players:0xc000a58c50 Counters:map[] Lists:map[]}" test=TestFleetStrategyValidation
    examples_test.go:134: 
        	Error Trace:	/go/src/agones.dev/agones/test/e2e/examples_test.go:134
        	Error:      	Received unexpected error:
        	            	waiting for { [{default Dynamic <nil> 7654 0 UDP}] {false 25 0 30}  { 0 0} {{      0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []} {[] [] [{nodejs-simple us-docker.pkg.dev/agones-images/examples/nodejs-simple-server:0.9 [] []  [] [] [] {map[] map[] []} [] [] [] nil nil nil nil    nil false false false}] []  <nil> <nil>  map[]   <nil>  false false false <nil> nil []   nil  [] []  <nil> nil [] <nil> <nil> <nil> map[] [] <nil> nil <nil> [] []}} <nil> map[] map[] <nil>} GameServer instance readiness timed out (): waiting for GameServer 1699582568/nodejs-simple-dtzjt to be Ready: GameServer reached terminal state Unhealthy
        	Test:       	TestNodeJSGameServerReady
--- FAIL: TestNodeJSGameServerReady (128.44s)

I am not able to see this error in the log.🤔 are you receiving it in your local?
This test is passing in my local - https://screenshot.googleplex.com/3VGMdhnaQUhJMSE

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 84294d98-ef2d-4bce-84f5-5d13947868bb

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 00dc9d73-7b89-47f6-8359-7a1bff00d50f

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

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 183ce603-28df-4b92-9ed7-f7bc4b5641ab

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/3498/head:pr_3498 && git checkout pr_3498
  • 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.37.0-dev-d3a4537-amd64

Comment on lines 116 to 119
Health: agonesv1.Health{
InitialDelaySeconds: 300,
PeriodSeconds: 25,
},
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 do me a favour - can we remove the Health settings, and we can test without it?

Suggested change
Health: agonesv1.Health{
InitialDelaySeconds: 300,
PeriodSeconds: 25,
},

We shouldn't have to make them so long now, since it looks like it was a resource setting issue that we fixed below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing this health settings indicated that the GameServer reached a terminal 'Unhealthy' state upon testing- https://gist.github.com/Kalaiselvi84/8d7a212a93c04291d42f90476c0fcb7f

Copy link
Member

Choose a reason for hiding this comment

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

Even with the resource settings?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep! it fails with resource and without health.

Copy link
Member

Choose a reason for hiding this comment

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

Oh yeah it would! Because it does't make health calls very often!

Okay, let's try a small number - probably:

			Health: agonesv1.Health{
				InitialDelaySeconds: 30,
				PeriodSeconds:       30,
			},

Should be a good fit.

t.Parallel()
gs := &agonesv1.GameServer{
ObjectMeta: metav1.ObjectMeta{
GenerateName: "rust-simple-",
GenerateName: "cpp-simple-",
Copy link
Member

Choose a reason for hiding this comment

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

I just noticed this here switched from Rus to CPP - was that deliberate?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried to keep the e2e tests in the order you mentioned in the ticket - https://buganizer.corp.google.com/issues/309492114#comment1

Copy link
Member

Choose a reason for hiding this comment

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

The order doesn't matter at all. You can revert these changes 👍🏻

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 38dfcea2-1139-43a9-88d8-e8865e77bd31

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/3498/head:pr_3498 && git checkout pr_3498
  • 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.37.0-dev-490892f-amd64

@markmandel markmandel merged commit 75ad796 into googleforgames:main Nov 14, 2023
3 checks passed
@google-oss-prow google-oss-prow bot added the lgtm label Nov 14, 2023
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

@Kalaiselvi84 Kalaiselvi84 deleted the nodejs branch March 15, 2024 01:09
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 lgtm size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add e2e test for NodeJS example game server
3 participants