commit | 80dd3b18dc8fcb182ad6133e1767923fed5cd207 | [log] [tgz] |
---|---|---|
author | Dmitri Shuralyov <dmitshur@google.com> | Tue May 23 13:32:37 2023 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue May 23 13:32:37 2023 |
tree | c9fe91747eda1c859445e3067820e5d96ac031cc | |
parent | 836e5a434c49d4877ccbcc60fa2a2b31d409318e [diff] |
[result_adapter] don't produce invalid test IDs on Unicode test names It's currently not possible to use result_adapter on Go tests that have at least one printable Unicode character that isn't also a printable ASCII character. This is crbug.com/1446084. The long term fix is in allowing such characters on the ResultDB side. Add a workaround to result_adapter that does simple escaping of test IDs that would otherwise be considered invalid: a Unicode letter like 'ሴ' is written as "(U+1234)". No existing test IDs are affected, only ones that couldn't have been previously uploaded. Doing this unblocks uploading results of testing the Go standard library to ResultDB. For go.dev/issue/59990. Bug: 1446084 Change-Id: Ia7bce4a84cbc20075457e9dab63f0a489fef7add Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/4549680 Reviewed-by: Robbie Iannucci <iannucci@chromium.org> Commit-Queue: Dmitri Shuralyov <dmitshur@google.com> Cr-Commit-Position: refs/heads/main@{#56944}
Welcome to the Chrome Infra repository!
Wondering where to start? Check out General Chrome Infrastructure documentation. In particular, to check out this repo and the rest of the infrastructure code, follow the instructions here. The rest of this page is specific to this repo.
sys.path
modifications.git push origin <updated hash>:deployed
git push
commandIf you've added a new module, run your tests with test.py:
*_test.py
files to this directory.Double-check that your tests are getting picked up when you want them to be: ./test.py test <path-to-package>
.
Tests still not getting picked up by test.py? Double-check to make sure you have __init__.py
files in each directory of your module so Python recognizes it as a package.
The preferred style is PEP8 with two-space indent; that is, the Chromium Python style, except functions use lowercase_with_underscores
. Use yapf (git cl format
) to autoformat new code.