Remove pending stanza from post-run action
Also execute main.star to actually apply the changes, I forgot this in
my previous change.
The post_actions are only triggered when the LUCI recipe terminates, so
it will never match the pending stanza. Unfortunately this means a rerun
on the same patchset will not reset the Frontend-Verified vote when the
new run starts.
Change-Id: Id080f6c773dbe31f63e634bcc7bdcd418864179e
diff --git a/generated/commit-queue.cfg b/generated/commit-queue.cfg
index 460ec56..a018579 100644
--- a/generated/commit-queue.cfg
+++ b/generated/commit-queue.cfg
@@ -40,6 +40,42 @@
}
}
}
+ post_actions {
+ name: "success"
+ conditions {
+ mode: "DRY_RUN"
+ statuses: SUCCEEDED
+ }
+ conditions {
+ mode: "NEW_PATCHSET_RUN"
+ statuses: SUCCEEDED
+ }
+ vote_gerrit_labels {
+ votes {
+ name: "Frontend-Verified"
+ value: 1
+ }
+ }
+ }
+ post_actions {
+ name: "failure"
+ conditions {
+ mode: "DRY_RUN"
+ statuses: FAILED
+ statuses: CANCELLED
+ }
+ conditions {
+ mode: "NEW_PATCHSET_RUN"
+ statuses: FAILED
+ statuses: CANCELLED
+ }
+ vote_gerrit_labels {
+ votes {
+ name: "Frontend-Verified"
+ value: -1
+ }
+ }
+ }
}
config_groups {
name: "git-repo_repo"
diff --git a/repos/gerrit.star b/repos/gerrit.star
index 436cb82..a81311e 100644
--- a/repos/gerrit.star
+++ b/repos/gerrit.star
@@ -47,20 +47,6 @@
),
post_actions = [
cq.post_action_gerrit_label_votes(
- name = "pending",
- conditions = [
- cq.post_action_triggering_condition(
- mode = cq.MODE_DRY_RUN,
- statuses=[cq.STATUS_STARTED],
- ),
- cq.post_action_triggering_condition(
- mode = cq.MODE_NEW_PATCHSET_RUN,
- statuses=[cq.STATUS_STARTED],
- ),
- ],
- labels = {"Frontend-Verified": 0},
- ),
- cq.post_action_gerrit_label_votes(
name = "success",
conditions = [
cq.post_action_triggering_condition(