[go] Update deps.

Use a mirror of github.com/google/google-api-go-client instead of
code.googlesource.com/google-api-go-client, which is no longer
updated.

Also add 2 new dependencies:
- github.com/mostynb/zstdpool-syncpool needed by bazelbuild/remote-apis-sdks
- github.com/stoewer/go-strcase will be needed by google/cel-go

cel-go is pinned at older version because newer version breaks tests
in infra/cros/cmd/tclint, see https://ci.chromium.org/ui/p/infra/builders/try/infra-try-xenial-64/b8858917479251106464/overview

Updated repos:
https://code.googlesource.com/gocloud.git/+log/2a980a2cbae5..1648ea06bbb0
https://chromium.googlesource.com/external/github.com/census-ecosystem/opencensus-go-exporter-stackdriver.git/+log/0fc2674ae49b..cb914a5a03d2
https://chromium.googlesource.com/external/github.com/VividCortex/godaemon.git/+log/15e3f4925a21..eda977734e72
https://chromium.googlesource.com/external/github.com/VividCortex/mysqlerr.git/+log/3680c4030f59..4c396ae82aac
https://chromium.googlesource.com/external/github.com/antlr/antlr4.git/+log/eafcc9369e99..c79b0fd80c9d
https://chromium.googlesource.com/external/github.com/bazelbuild/buildtools.git/+log/f0f162f0456b..174cbb4ba7d1
https://chromium.googlesource.com/external/github.com/bazelbuild/remote-apis.git/+log/1e9ccef3705c..9e72daff42c9
https://chromium.googlesource.com/external/github.com/bazelbuild/remote-apis-sdks.git/+log/4fdf72c06792..311330267bcd
https://chromium.googlesource.com/external/github.com/chromedp/cdproto.git/+log/d1f6fc58448b..be40c824ad18
https://chromium.googlesource.com/external/github.com/chromedp/chromedp.git/+log/446edaac6368..e91e61c19c74
https://chromium.googlesource.com/external/github.com/disintegration/imaging.git/+log/9821411d12d9..d40f48ce0f09
https://chromium.googlesource.com/external/github.com/go-sql-driver/mysql.git/+log/f6dcc3d870a8..a341cd15c45e
https://chromium.googlesource.com/external/github.com/golang/lint.git/+log/738671d3881b..83fdc39ff7b5
https://chromium.googlesource.com/external/github.com/gomodule/redigo.git/+log/c4a82d62aa08..8a8dbfb3ecbd
https://chromium.googlesource.com/external/github.com/google/pprof.git/+log/ae444373da19..b9804c9f04c2
https://chromium.googlesource.com/external/github.com/kisielk/errcheck.git/+log/3b58ac754354..7e1276f76cf6
https://chromium.googlesource.com/external/github.com/klauspost/compress.git/+log/38619d37ca03..bb5ba3d9301e
https://chromium.googlesource.com/external/github.com/klauspost/cpuid.git/+log/242d0b0aa207..d1038c4e95c2
https://chromium.googlesource.com/external/github.com/pkg/errors.git/+log/614d223910a1..5dd12d0cfe7f
https://chromium.googlesource.com/external/github.com/pkg/sftp.git/+log/7230c61342c8..ae8947fdf92a
https://chromium.googlesource.com/external/github.com/spf13/cobra.git/+log/08c51e585ca7..7df62f7668c7
https://chromium.googlesource.com/external/github.com/yosuke-furukawa/json5.git/+log/1c306d9836a4..cf7bb3f354ff
https://chromium.googlesource.com/external/github.com/census-instrumentation/opencensus-go.git/+log/4ee1fc64985b..e736602bcaf5
https://chromium.googlesource.com/external/github.com/google/starlark-go.git/+log/a7839910dcbe..e81fc95f7bd5
https://go.googlesource.com/build.git/+log/b6220de1adc0..0a4bf693f613
https://go.googlesource.com/crypto.git/+log/c8d3bf9c5392..eec23a3978ad
https://chromium.googlesource.com/external/github.com/golang/image.git/+log/e162460cd6b5..35266b937fa6
https://go.googlesource.com/lint.git/+log/738671d3881b..83fdc39ff7b5
https://go.googlesource.com/mod.git/+log/3bfbaada29be..bc388b264a24
https://go.googlesource.com/net.git/+log/c7110b5ffcbb..6772e930b67b
https://go.googlesource.com/oauth2.git/+log/0b49973bad19..08078c50e5b5
https://go.googlesource.com/sync.git/+log/67f06af15bc9..09787c993a3a
https://go.googlesource.com/sys.git/+log/69691e467435..0d417f636930
https://go.googlesource.com/term.git/+log/7de9c90e9dd1..2321bbc49cbf
https://go.googlesource.com/text.git/+log/c27b9fd57aec..75a595aef632
https://go.googlesource.com/time.git/+log/3af7569d3a1e..7e3f01d25324
https://go.googlesource.com/tools.git/+log/bef1c476418a..84d76fe3206d
https://chromium.googlesource.com/external/github.com/google/google-api-go-client.git/+log/6d9b0fabdde2..2f0a0dcd5be7
https://chromium.googlesource.com/external/github.com/golang/appengine.git/+log/5d1c1d03f870..07f9b0860d07
https://chromium.googlesource.com/external/github.com/googleapis/go-genproto.git/+log/6486ece9c497..8c77b98c765d
https://chromium.googlesource.com/external/github.com/grpc/grpc-go.git/+log/4a0125ac5808..53788aa5dcb4
https://chromium.googlesource.com/external/github.com/DHowett/go-plist.git/+log/2d98b15cd319..1454fab16a06

R=tandrii@chromium.org

No-Tree-Checks: true
Change-Id: Ica608e1f19d1cb15241ce4b6a64660b61a12898c
Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/2605705
Commit-Queue: Vadim Shtayura <vadimsh@chromium.org>
Reviewed-by: Jason Clinton <jclinton@chromium.org>
Reviewed-by: Andrii Shyshkalov <tandrii@google.com>
Cr-Commit-Position: refs/heads/master@{#37290}
3 files changed
tree: e4315755e9b11ab4eaaac64af551a00ddc453dec
  1. 3pp/
  2. appengine/
  3. appengine_module/
  4. bootstrap/
  5. build/
  6. chromeperf/
  7. cipd/
  8. crdx/
  9. doc/
  10. docker/
  11. glyco/
  12. go/
  13. infra/
  14. node/
  15. packages/
  16. python_pb2/
  17. recipes/
  18. test/
  19. utils/
  20. .gitattributes
  21. .gitignore
  22. .style.yapf
  23. .yapfignore
  24. codereview.settings
  25. CONTRIBUTING.md
  26. DEPS
  27. LICENSE
  28. navbar.md
  29. OWNERS
  30. PRESUBMIT.py
  31. README.md
  32. run.py
  33. test.py
  34. WATCHLISTS
  35. WHITESPACE
README.md

infra.git repository

Testing 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.

Entry points

  • run.py: wrapper script to run programs contained in subdirectories without having to deal with sys.path modifications.
  • test.py: multi-purpose script to run tests.
  • packages/infra_libs/: generally useful functions and classes
  • infra/services/: standalone programs intended to be run as daemons.
  • infra/tools: command-line tools, intended to be run by developers.
  • appengine/: many Chrome-infra-managed AppEngine applications
  • infra/experimental: for, well, experimental stuff. Once they are stabilized and reviewed, they should be moved in a more permanent place.

Miscellaneous technical stuff

  • bootstrap/: utilities to set up a proper Python virtual environment.
  • infra/path_hacks: submodules of this modules give access to modules in the build/ repository. from infra.path_hacks.common import <stg> is actually getting <stg> from build/scripts/common.
  • utils/: purpose? utils?
  • Need to bump infra/deployed to pick up changes?
    • git push origin <updated hash>:deployed
    • mail chrome-troopers@, include:
      • previously deployed hash (for quick rollback)
      • the hash you just pushed
      • the list of CLs that made this push necessary
      • the output of the git push command

Integrating tests with test.py

If you've added a new module, run your tests with test.py:

  1. Create a .coveragerc file in the root directory of the module you want to test. Take a look at another .coveragerc to see what to include in that.
  2. Create a “test” directory in the root directory of the module you want to test. Move your *_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.

Style

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.