Skip race tests on Mac The race tests failed on Mac with the following logs: FAIL go.chromium.org/build/siso [build failed] xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools. It requires additional setup in the build environment. Since race conditions are generally platform-independent, running race tests on Linux (where CGO is readily available) should be sufficient to catch generic race conditions. This CL modifies the recipe to skip `go test -race` on Mac and adds a test case to verify that race tests are skipped on Mac. Bug: b/451910833 Change-Id: I23e0656f47e83a45389dd100f83bd87d2df6ebb0 Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/7489039 Reviewed-by: Takuto Ikuta <tikuta@chromium.org> Commit-Queue: Yuke Liao <liaoyuke@google.com> Cr-Commit-Position: refs/heads/main@{#78477}
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>:deployedgit 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.