pw_presubmit: Depend on the cq module
Without this dependency the cq module initialize() method isn't called,
so '$recipe_engine/cq' properties are never processed. Adding the
dependency fixes this.
Also change one use of 'api.cv' to 'api.cq' so the dependency cleaner
won't complain.
Bug: b/295020927
Change-Id: I3bfc5d3064619663c7dd3c227b159923da25a4c7
Reviewed-on: https://pigweed-review.googlesource.com/c/infra/recipes/+/168314
Reviewed-by: Ted Pudlik <tpudlik@google.com>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/recipes/pw_presubmit.py b/recipes/pw_presubmit.py
index e88b857..02fe46d 100644
--- a/recipes/pw_presubmit.py
+++ b/recipes/pw_presubmit.py
@@ -29,6 +29,7 @@
'pigweed/pw_presubmit',
'pigweed/util',
'recipe_engine/buildbucket',
+ 'recipe_engine/cq',
'recipe_engine/cv',
'recipe_engine/file',
'recipe_engine/futures',
@@ -335,7 +336,7 @@
api.test('one_step_no_exit_passing_in_ci')
+ properties(step=['step1'], exit_tryjob_early_if_failing_in_ci=True)
+ api.checkout.try_test_data()
- + api.cv(run_mode=api.cv.DRY_RUN)
+ + api.cv(run_mode=api.cq.DRY_RUN)
+ api.buildbucket.simulated_search_results(
[api.builder_status.passed()],
step_name='checking CI status.buildbucket.search',