Skip to content

Updates the upgrade test to print any fatal error messages to the job pod termination log#4252

Merged
markmandel merged 3 commits intoagones-dev:mainfrom
igooch:log-on-exit
Sep 2, 2025
Merged

Updates the upgrade test to print any fatal error messages to the job pod termination log#4252
markmandel merged 3 commits intoagones-dev:mainfrom
igooch:log-on-exit

Conversation

@igooch
Copy link
Copy Markdown
Collaborator

@igooch igooch commented Aug 18, 2025

What type of PR is this?

/kind cleanup

What this PR does / Why we need it:

The upgrade main.go is refactored to pass back any fatal errors, cancel context, and cleanup resources on a fatal error. This way we can see exactly what Fatal error caused the test to fail. This will not include all failure scenarios (i.e. our recent failure scenario of a finalizer not being removed from the ping service), but will still make it easier to debug.

Additional wait timeouts are added to prevent the test from hanging.

Which issue(s) this PR fixes:

NA

Special notes for your reviewer:

@github-actions github-actions bot added kind/cleanup Refactoring code, fixing up documentation, etc size/M labels Aug 18, 2025
@agones-bot
Copy link
Copy Markdown
Collaborator

Build Failed 😭

Build Id: e1078bc5-96e5-4126-a0a1-4f8923b9a5f5

Status: FAILURE

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

@igooch igooch force-pushed the log-on-exit branch 2 times, most recently from 12f7096 to e3f0ba9 Compare August 27, 2025 00:26
… pod termination log.

The package is refactored to pass back any fatal errors, cancel context, and cleanup resources on a fatal error.Additional wait timeouts are added to prevent the test from hanging.
@agones-bot
Copy link
Copy Markdown
Collaborator

Build Succeeded 🥳

Build Id: 22431f1a-4709-43ce-bb99-c935bb702b52

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/4252/head:pr_4252 && git checkout pr_4252
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.52.0-dev-1bbcba2

@igooch igooch requested a review from peterzhongyi August 27, 2025 16:23
Copy link
Copy Markdown
Collaborator

@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.

I trust your knowledge of this code way more than I trust mine -- I assume this is good to go 😄

job_pods=$(kubectl get pods -l job-name=upgrade-test-runner -o jsonpath="{.items[*].metadata.name}")
if [[ -z "$job_pods" ]]; then
echo "No pods found for job upgrade-test-runner. They might have failed to schedule or were deleted."

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(non blocking meta) - this bash script is at a point where it probably should be a go script 😄

@markmandel markmandel enabled auto-merge (squash) September 1, 2025 22:08
@agones-bot
Copy link
Copy Markdown
Collaborator

Build Failed 😭

Build Id: 18bf8c84-5a94-40cd-b03f-a93008f624d4

Status: FAILURE

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

@agones-bot
Copy link
Copy Markdown
Collaborator

Build Succeeded 🥳

Build Id: c2326dee-4752-41f5-9b99-4a1f4bb93a91

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/4252/head:pr_4252 && git checkout pr_4252
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.52.0-dev-7a43c06

@markmandel markmandel merged commit bd55784 into agones-dev:main Sep 2, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/cleanup Refactoring code, fixing up documentation, etc size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants