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

x/text: test results fail to be uploaded to ResultDB #73086

Closed
dmitshur opened this issue Mar 28, 2025 · 2 comments
Closed

x/text: test results fail to be uploaded to ResultDB #73086

dmitshur opened this issue Mar 28, 2025 · 2 comments
Labels
Builders x/build issues (builders, bots, dashboards) NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@dmitshur
Copy link
Contributor

dmitshur commented Mar 28, 2025

The x/text dashboard has turned red:

https://ci.chromium.org/p/golang/g/x-text-gotip-by-go/console

The go test execution itself passes, but LUCI builds (for example, https://ci.chromium.org/b/8719167695879841169) fail with:

Test result for ":golang.org/x/text/message#TestSprintf/%x/��\\x0f�" is invalid: test_id_structured: case_name: unicode replacement character (U+FFFD) at byte index 15
prpc: responding with InvalidArgument error (HTTP 400): test_results[19513]: test_id_structured: case_name: unicode replacement character (U+FFFD) at byte index 15
RPC failed permanently: rpc error: code = InvalidArgument desc = test_results[19513]: test_id_structured: case_name: unicode replacement character (U+FFFD) at byte index 15 {"host":"localhost:44025", "method":"ReportTestResults", "service":"luci.resultsink.v1.Sink"}
 result_adapter: rpc error: code = InvalidArgument desc = test_results[19513]: test_id_structured: case_name: unicode replacement character (U+FFFD) at byte index 15

The test_id_structured field was recently added to result_adapter in crrev.com/c/6395720. This is either a problem on the side of result_adapter and/or ResultDB in that it doesn't handle or escape certain inputs, or, it's possible that the subtest names in the golang.org/x/text/message package are using characters that aren't allowed, and it just happened not to be noticed until now.

CC @golang/release, @mpvl.

@dmitshur dmitshur added Builders x/build issues (builders, bots, dashboards) NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Mar 28, 2025
@gopherbot gopherbot added this to the Unreleased milestone Mar 28, 2025
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/661495 mentions this issue: message: quote fmt and val in subtest names

@dmitshur dmitshur added NeedsFix The path to resolution is known, but the work has not been done. and removed NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Apr 1, 2025
@dmitshur
Copy link
Contributor Author

dmitshur commented Apr 1, 2025

Fixed via crrev.com/c/6414930, which adds escaping for this character on the side of result_adapter.

Filed #73116 in case there's something the go command can do better in the future.

@dmitshur dmitshur closed this as completed Apr 1, 2025
@dmitshur dmitshur moved this to Done in Go Release Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Builders x/build issues (builders, bots, dashboards) NeedsFix The path to resolution is known, but the work has not been done.
Projects
Status: Done
Development

No branches or pull requests

2 participants