cos-dkms: Load configs when instantiating Packages

This significantly reduces the number of times configs have to be
loaded, which results in a noticeable speedup, especially when loading
from a GCS bucket. As a crude measurement, this reduces the time to run
the Test*Transition unit tests from ~3 seconds to ~1 second.

BUG=None
TEST=presubmit

Change-Id: I73ac6375cdedb44dcfc6deac851b914b0b9d0623
Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/111403
Reviewed-by: Angel Adetula <angeladetula@google.com>
Cloud-Build: GCB Service account <228075978874@cloudbuild.gserviceaccount.com>
Tested-by: Kevin Berry <kpberry@google.com>
10 files changed
tree: 6f40bee0825e31320aeb4bafb6bb99c7c565c41e
  1. coverage/
  2. release/
  3. src/
  4. testing/
  5. .gitignore
  6. BUILD.bazel
  7. cloudbuild.yaml
  8. CONTRIBUTING.md
  9. deps.bzl
  10. go.mod
  11. go.sum
  12. LICENSE
  13. postsubmit-cloudbuild.yaml
  14. README.md
  15. run_builds.sh
  16. run_unit_tests.sh
  17. WORKSPACE
README.md

Tools for Container-Optimized OS

This is a repository of various tools developed for Container-Optimized OS. Examples include cos-gpu-installer, cos-toolbox, etc.

See CONTRIBUTING.md for how to contribute.