[client] Clean up stale cacert.pem and cacerts.txt and use the one in certifi

- This will significantly reduce the size of swarming_bot.zip by removing
  2 nearly duplicate large files!
- Simplify zip_package.extract_resource() to be more content addressed,
  reducing spam.
- Fix a file handle temporal leak which could be more of an issue on
  Windows.
- Fix a leak as shown in task_runner_test.py.

Bug: 944944
Change-Id: I37d96ad0b02cdac066268a9f9cb6bf75c9ab05e7
Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-py/+/1591470
Commit-Queue: Marc-Antoine Ruel <maruel@chromium.org>
Reviewed-by: Jao-ke Chin-Lee <jchinlee@chromium.org>
Cr-Mirrored-From: https://chromium.googlesource.com/infra/luci/luci-py
Cr-Mirrored-Commit: ce028d2dc532b2ba22d09356f5799420b7057ffb
5 files changed
tree: 5a130ec0a368c53d65ef5e8af4edf69a304eef02
  1. example/
  2. libs/
  3. proto/
  4. tests/
  5. third_party/
  6. tools/
  7. utils/
  8. .gitignore
  9. auth.py
  10. cipd.py
  11. isolate.py
  12. isolate_format.py
  13. isolate_storage.py
  14. isolated_format.py
  15. isolateserver.py
  16. LICENSE
  17. local_caching.py
  18. LUCI_CONTEXT.md
  19. OWNERS
  20. PRESUBMIT.py
  21. README.md
  22. README.py
  23. run_isolated.py
  24. swarming.py
  25. trace_inputs.py
  26. WATCHLISTS
README.md

LUCI Python Client

This is the Python Client code for LUCI. It's part of the main python repo, and is also mirrored into a standalone client-py repo.

To contribute changes you need to clone the main python repo and then use git cl upload. The client-py repo mirror (which appears in Chromium's third_party directory) cannot be contributed to directly.

License

This project is licensed under Apache v2.0 license. See LICENSE for details.