Repository navigation
ci: keep the raw go test output of e2e runs and upload it from failed Query Serving upgrade jobs - #22161
Draft
arthurschreiber wants to merge 1 commit into
Draft
ci: keep the raw go test output of e2e runs and upload it from failed Query Serving upgrade jobs#22161arthurschreiber wants to merge 1 commit into
arthurschreiber wants to merge 1 commit into
Conversation
… Query Serving upgrade jobs When a package fails in TestMain, before any test runs, gotestsum's rerun runs no tests and passes, and gotestsum then prints nothing from that package: the console log and the JUnit report never show why TestMain failed. Pass --jsonfile to gotestsum so the raw go test output, which keeps it, is written to _test/json/, and upload that directory from the two upgrade/downgrade Query Serving workflows when a job fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Arthur Schreiber <arthur@planetscale.com>
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The default Docker test path does not forward JSON_OUTPUT or preserve reports before deleting the temporary checkout, leaving raw JSON reporting incomplete.
1 open issue
What changed in this PR
This PR adds raw Go test output capture to the end-to-end test runner, helping diagnose package startup failures that gotestsum can omit from console and JUnit output.
Changes:
- Configure per-test, per-run JSON reports through
JSON_OUTPUTand gotestsum’s--jsonfile. - Upload reports from failed Query Serving upgrade/downgrade jobs with 14-day retention.
- Record the pinned upload action in the workflow lockfile. Capture in previous-release checkouts depends on the described backports.
| File | Description |
|---|---|
tools/e2e_go_test.sh |
Pass the optional JSON output path to gotestsum. |
test.go |
Create the JSON report directory and configure report paths. |
.github/workflows/upgrade_downgrade_test_query_serving_queries.yml |
Upload raw reports when a job fails. |
.github/workflows/upgrade_downgrade_test_query_serving_queries_2.yml |
Add matching failure-report uploads for Queries 2. |
.github/workflows/actions.lock |
Register the pinned upload action for both workflows. |
Review effort: Balanced
| // https://github.com/grpc/grpc/blob/master/doc/keepalive.md | ||
| "GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA": "0", | ||
| "JUNIT_OUTPUT": junitOutput, | ||
| "JSON_OUTPUT": jsonOutput, |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Since 2026-10-19, the
vtgate=N-1job ofUpgrade Downgrade Test - Query Serving (Queries)sometimes fails onpreparestmt, and the one ofQuery Serving (Queries 2)onvtgate_kill. It is about 20 runs so far; the first is run 39288167712. In each run, the first package of the job fails inTestMainafter 25-30 seconds, before any test runs, and the next push passes. The log never says why. When a package fails before any test runs, gotestsum's rerun runs no tests and passes. gotestsum then prints nothing from that package, so neither the console log nor the JUnit report has theTestMainoutput. The job fails only intools/assert_tests_ran.sh.This PR keeps that output:
test.gosetsJSON_OUTPUTto_test/json/report-<test>-<run>.json, besideJUNIT_OUTPUT, andtools/e2e_go_test.shpasses it to gotestsum as--jsonfile. That file is the rawgo test -jsonoutput of every run, including what gotestsum doesn't print._test/json/as an artifact when a job fails.The upgrade/downgrade jobs run
test.goandtools/e2e_go_test.shfrom the previous release's checkout, so they write the file only once this is backported to release-24.0 (and to release-23.0 for the release-24.0 branch's own upgrade jobs). Until then, the upload step finds nothing and skips.I checked the gap with a package whose
TestMainfails on its first run only.tools/e2e_go_test.shfails withgotestsum ran 0 tests; the console output and the JUnit report have none of the package's output, and the JSON file has it.Related Issue(s)
Checklist
Deployment Notes
None, CI only.
AI Disclosure
This PR was written primarily by Claude Code.
🤖 Generated with Claude Code