Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: third_party/cq_client/cq.proto

Issue 1153333003: Added tools to retrieve CQ builders from a CQ config (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Addressed comments Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/cq_client/__init__.py ('k') | third_party/cq_client/cq_pb2.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 syntax = "proto2";
2
3 // This message describes a Commit Queue configuration. The config file cq.cfg
4 // should be stored in the config directory located on the branch that this CQ
5 // should commit to.
6 message Config {
7 // Required. Version of the config format.
8 optional int32 version = 1;
9
10 // Required. Name of the CQ. May only contain characters [a-zA-Z0-9_]. It is
11 // used for various purposes, including, but not limited to match the project
12 // name for CLs on Rietveld, name of the project in the status app, internal
13 // name for logging etc. CQ name should not be confused with the project name
14 // in LUCI as there may be multiple CQs per project.
15 optional string cq_name = 2;
16
17 // List of verifiers that verify if the CL is ready to be committed.
18 optional Verifiers verifiers = 3;
19
20 // URL of the CQ status app to push updates to.
21 optional string cq_status_url = 4;
22
23 // When true, hash of the commit is not posted by CQ. This is used for
24 // projects using gnumbd as latter publishes actual hash later. Default value
25 // is false.
26 optional bool hide_ref_in_committed_msg = 5;
27
28 // Delay between commit bursts in seconds. Default value is 480.
29 optional int32 commit_burst_delay = 6;
30
31 // Maximum number of commits done sequentially, before waiting for
32 // commit_burst_delay. Default value is 4.
33 optional int32 max_commit_burst = 7;
34
35 // Defines whether a CQ is used in production. Allows to disable CQ for a
36 // given branch. Default is true.
37 optional bool in_production = 8;
38
39 // Configuration options for Rietveld code review.
40 optional Rietveld rietveld = 9;
41
42 // This can be used to override the Git repository URL used to checkout and
43 // commit changes on CQ host. This should only be used in case, when the
44 // source repository is not supported by luci-config (e.g. GitHub).
45 optional string git_repo_url = 10;
46
47 // Target ref to commit to. This can be used to specify a different ref than
48 // the one where the luci config is located. This is useful, e.g. for projects
49 // that use gnumbd where CQ should commit into a pending ref.
50 optional string target_ref = 11;
51
52 // Deprecated. URL of the SVN repository. We are deprecating SVN support.
53 optional string svn_repo_url = 12;
54
55 // Deprecated. Should be set to true, when the project's SVN repository does
56 // not have server-side hooks configured.
57 optional bool server_hooks_missing = 13;
58
59 // Deprecated. Specifies a list of verifiers that are run on a local checkout
60 // with patch applied. The only remaining use case for this is PRESUBMIT_CHECK
61 // verifier, which we are deprecating as well.
62 optional Verifiers verifiers_with_patch = 14;
63 }
64
65 message Rietveld {
66 // Required. URL of the codereview site.
67 optional string url = 1;
68
69 // List of regular expressions used to check if CL's base URL should be
70 // processed by this CQ. This may be useful if a single branch has multiple
71 // sub-directories that are handled by different CQs. When no regular
72 // expressions are specified, the regular expression '.*', which matches any
73 // directory, is used.
74 repeated string project_bases = 2;
75 }
76
77 // Verifiers are various types of checks that a Commit Queue performs on a CL.
78 // All verifiers must pass in order for a CL to be landed. Configuration file
79 // describes types of verifiers that should be applied to each CL and their
80 // parameters.
81 message Verifiers {
82 // This verifier is used to ensure that an LGTM was posted to the code review
83 // site from a valid project committer.
84 optional ReviewerLgtmVerifier reviewer_lgtm = 1;
85
86 // This verifier is used to check tree status before committing a CL. If the
87 // tree is closed, then the verifier will wait until it is reopened.
88 optional TreeStatusLgtmVerifier tree_status = 2;
89
90 // This verifier triggers a set of tryjobs that are to be run on builders on
91 // Buildbot. It automatically retries failed try-jobs and only allows CL to
92 // land if each builder has succeeded in the latest retry. If a given tryjob
93 // result is too old (>1 day) it is ignored.
94 optional TryJobVerifier try_job = 3;
95
96 // Deprecated. This verifier is only used by some legacy CQs that run
97 // presubmit on the CQ host. Please use a presubmit builder instead.
98 optional PresubmitCheckVerifier presubmit_check = 4;
99
100 message ReviewerLgtmVerifier {
101 // Required. Name of the project, whose committer list to use. This allows
102 // to reuse committer lists. Note that if you are adding a new list, then
103 // currently you will need to make changes to the CQ code to add support for
104 // retrieving such a list. We are working on removing the need to modify CQ
105 // code.
106 optional string committer_list = 1;
107
108 // Number of seconds to wait for LGTM on CQ. Default value is 0.
109 optional int32 max_wait_secs = 2;
110
111 // Message to be posted to code review site when no LGTM is found. Default
112 // value is "No LGTM from a valid reviewer yet. Only full committers are "
113 // "accepted.\nEven if an LGTM may have been provided, it was from a "
114 // "non-committer,\n_not_ a full super star committer.\nSee "
115 // "http://www.chromium.org/getting-involved/become-a-committer\nNote that "
116 // "this has nothing to do with OWNERS files."
117 optional string no_lgtm_msg = 3;
118 }
119
120 message TreeStatusLgtmVerifier {
121 // Required. URL of the project tree status app.
122 optional string tree_status_url = 1;
123 }
124
125 message TryJobVerifier {
126 message Property {
127 optional string name = 1;
128 // TODO(sergiyb): Change type to Any on switching to protobuf3.
129 optional string value = 2;
130 }
131
132 message Builder {
133 // Name of the builder.
134 optional string name = 1;
135
136 // When true, the builder is triggered by CQ. Otherwise, it is expected to
137 // be triggered from another tryjob. Default value is true.
138 optional bool triggered = 2;
139
140 // Arbitrary properties passed to the tryjob.
141 repeated Property properties = 3;
142
143 // When this field is present, it marks given builder as experimental. It
144 // is only executed on a given percentage of the CLs and the outcome does
145 // not affect the decicion whether a CL can land or not. This is typically
146 // used to test new builders and estimate their capacity requirements.
147 optional float experiment_percentage = 4;
148 }
149
150 message Bucket {
151 // Name of the bucket. This is typically the same as a master name.
152 optional string name = 1;
153
154 // Builders on which tryjobs should be triggered.
155 repeated Builder builders = 2;
156 }
157
158 // Buckets on which tryjobs are triggered/watched.
159 repeated Bucket buckets = 1;
160 }
161
162 message PresubmitCheckVerifier {}
163 }
OLDNEW
« no previous file with comments | « third_party/cq_client/__init__.py ('k') | third_party/cq_client/cq_pb2.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698