OLD | NEW |
1 syntax = "proto2"; | 1 syntax = "proto2"; |
2 | 2 |
3 // This message describes a Commit Queue configuration. The config file cq.cfg | 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 | 4 // should be stored in the config directory located on the branch that this CQ |
5 // should commit to. | 5 // should commit to. |
6 message Config { | 6 message Config { |
7 // Required. Version of the config format. | 7 // Required. Version of the config format. |
8 optional int32 version = 1; | 8 optional int32 version = 1; |
9 | 9 |
10 // Required. Name of the CQ. May only contain characters [a-zA-Z0-9_]. It is | 10 // Required. Name of the CQ. May only contain characters [a-zA-Z0-9_]. It is |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // This verifier is used to check tree status before committing a CL. If the | 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. | 87 // tree is closed, then the verifier will wait until it is reopened. |
88 optional TreeStatusLgtmVerifier tree_status = 2; | 88 optional TreeStatusLgtmVerifier tree_status = 2; |
89 | 89 |
90 // This verifier triggers a set of tryjobs that are to be run on builders on | 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 | 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 | 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. | 93 // result is too old (>1 day) it is ignored. |
94 optional TryJobVerifier try_job = 3; | 94 optional TryJobVerifier try_job = 3; |
95 | 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 { | 96 message ReviewerLgtmVerifier { |
101 // Required. Name of the project, whose committer list to use. This allows | 97 // 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 | 98 // 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 | 99 // 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 | 100 // retrieving such a list. We are working on removing the need to modify CQ |
105 // code. | 101 // code. |
106 optional string committer_list = 1; | 102 optional string committer_list = 1; |
107 | 103 |
108 // Number of seconds to wait for LGTM on CQ. Default value is 0. | 104 // Number of seconds to wait for LGTM on CQ. Default value is 0. |
109 optional int32 max_wait_secs = 2; | 105 optional int32 max_wait_secs = 2; |
110 | 106 |
111 // Message to be posted to code review site when no LGTM is found. Default | 107 // 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 " | 108 // 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 " | 109 // "accepted.\nEven if an LGTM may have been provided, it was from a " |
114 // "non-committer,\n_not_ a full super star committer.\nSee " | 110 // "non-committer,\n_not_ a full super star committer.\nSee " |
115 // "http://www.chromium.org/getting-involved/become-a-committer\nNote that " | 111 // "http://www.chromium.org/getting-involved/become-a-committer\nNote that " |
116 // "this has nothing to do with OWNERS files." | 112 // "this has nothing to do with OWNERS files." |
117 optional string no_lgtm_msg = 3; | 113 optional string no_lgtm_msg = 3; |
118 } | 114 } |
119 | 115 |
120 message TreeStatusLgtmVerifier { | 116 message TreeStatusLgtmVerifier { |
121 // Required. URL of the project tree status app. | 117 // Required. URL of the project tree status app. |
122 optional string tree_status_url = 1; | 118 optional string tree_status_url = 1; |
123 } | 119 } |
124 | 120 |
125 message TryJobVerifier { | 121 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 { | 122 message Builder { |
133 // Name of the builder. | 123 // Name of the builder. |
134 optional string name = 1; | 124 optional string name = 1; |
135 | 125 |
136 // When true, the builder is triggered by CQ. Otherwise, it is expected to | 126 // When true, the builder is triggered by CQ. Otherwise, it is expected to |
137 // be triggered from another tryjob. Default value is true. | 127 // be triggered from another tryjob. Default value is true. |
138 optional bool triggered = 2; | 128 optional bool triggered = 2; |
139 | 129 |
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 | 130 // 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 | 131 // 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 | 132 // 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. | 133 // used to test new builders and estimate their capacity requirements. |
147 optional float experiment_percentage = 4; | 134 optional float experiment_percentage = 4; |
148 } | 135 } |
149 | 136 |
150 message Bucket { | 137 message Bucket { |
151 // Name of the bucket. This is typically the same as a master name. | 138 // Name of the bucket. This is typically the same as a master name. |
152 optional string name = 1; | 139 optional string name = 1; |
153 | 140 |
154 // Builders on which tryjobs should be triggered. | 141 // Builders on which tryjobs should be triggered. |
155 repeated Builder builders = 2; | 142 repeated Builder builders = 2; |
156 } | 143 } |
157 | 144 |
158 // Buckets on which tryjobs are triggered/watched. | 145 // Buckets on which tryjobs are triggered/watched. |
159 repeated Bucket buckets = 1; | 146 repeated Bucket buckets = 1; |
160 } | 147 } |
161 | |
162 message PresubmitCheckVerifier { | |
163 // After this timeout in seconds, the presubmit process will be killed. | |
164 optional int32 timeout = 1; | |
165 } | |
166 } | 148 } |
OLD | NEW |