Skip to content

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

@dmitshur

Description

@dmitshur

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Buildersx/build issues (builders, bots, dashboards)NeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions