@@ -148,8 +148,9 @@ const (
148
148
rayPRPipeline = "0183465f-a222-467a-b122-3b9ea3e68094"
149
149
150
150
// v2 pipelines
151
- rayV2PostmergePipeline = "0189e759-8c96-4302-b6b5-b4274406bf89"
152
- rayV2PremergePipeline = "0189942e-0876-4b8f-80a4-617f988ec59b"
151
+ rayV2PostmergePipeline = "0189e759-8c96-4302-b6b5-b4274406bf89"
152
+ rayV2PremergePipeline = "0189942e-0876-4b8f-80a4-617f988ec59b"
153
+ rayV2MicrocheckPipeline = "018f4f1e-1b73-4906-9802-92422e3badaa"
153
154
154
155
// dev only
155
156
rayDevPipeline = "5b097a97-ad35-4443-9552-f5c413ead11c"
@@ -209,49 +210,55 @@ var branchPipelineConfig = &config{
209
210
SkipTags : []string {"disabled" },
210
211
}
211
212
212
- var prPipelineConfig = & config {
213
- name : "ray-pr" ,
213
+ func prPipelineConfig (name string , extraEnv map [string ]string ) * config {
214
+ config := & config {
215
+ name : name ,
214
216
215
- ArtifactsBucket : "ray-ci-artifact-pr-public" ,
217
+ ArtifactsBucket : "ray-ci-artifact-pr-public" ,
216
218
217
- CITemp : "s3://ray-ci-artifact-pr-public/ci-temp/" ,
218
- CIWorkRepo : rayCIECR + "/rayproject/citemp" ,
219
- ForgePrefix : defaultForgePrefix ,
219
+ CITemp : "s3://ray-ci-artifact-pr-public/ci-temp/" ,
220
+ CIWorkRepo : rayCIECR + "/rayproject/citemp" ,
221
+ ForgePrefix : defaultForgePrefix ,
220
222
221
- BuilderQueues : map [string ]string {
222
- "builder" : "builder_queue_pr" ,
223
- "builder-arm64" : "builder_queue_arm64_pr" ,
224
- "builder-windows" : "builder_queue_windows_pr" ,
225
- },
223
+ BuilderQueues : map [string ]string {
224
+ "builder" : "builder_queue_pr" ,
225
+ "builder-arm64" : "builder_queue_arm64_pr" ,
226
+ "builder-windows" : "builder_queue_windows_pr" ,
227
+ },
226
228
227
- RunnerQueues : map [string ]string {
228
- "default" : "runner_queue_small_pr" ,
229
- "small" : "runner_queue_small_pr" ,
230
- "medium" : "runner_queue_medium_pr" ,
231
- "large" : "runner_queue_pr" ,
232
- "gpu" : "gpu_runner_queue_pr" ,
233
- "gpu-large" : "gpu_large_runner_queue_pr" ,
234
- "trainium" : "trainium_runner_queue_pr" ,
235
- "windows" : "windows_queue_pr" ,
236
- "macos" : "macos" ,
237
- "macos-arm64" : "macos-pr-arm64" ,
238
-
239
- "medium-arm64" : "runner_queue_arm64_medium_pr" ,
240
- },
229
+ RunnerQueues : map [string ]string {
230
+ "default" : "runner_queue_small_pr" ,
231
+ "small" : "runner_queue_small_pr" ,
232
+ "medium" : "runner_queue_medium_pr" ,
233
+ "large" : "runner_queue_pr" ,
234
+ "gpu" : "gpu_runner_queue_pr" ,
235
+ "gpu-large" : "gpu_large_runner_queue_pr" ,
236
+ "trainium" : "trainium_runner_queue_pr" ,
237
+ "windows" : "windows_queue_pr" ,
238
+ "macos" : "macos" ,
239
+ "macos-arm64" : "macos-pr-arm64" ,
241
240
242
- BuilderPriority : 1 ,
243
- RunnerPriority : 1 ,
241
+ "medium-arm64" : "runner_queue_arm64_medium_pr" ,
242
+ } ,
244
243
245
- Env : map [string ]string {
246
- "BUILDKITE_BAZEL_CACHE_URL" : rayBazelBuildCache ,
247
- "BUILDKITE_CACHE_READONLY" : "true" ,
248
- },
244
+ BuilderPriority : 1 ,
245
+ RunnerPriority : 1 ,
249
246
250
- HookEnvKeys : []string {"RAYCI_CHECKOUT_DIR" },
247
+ Env : map [string ]string {
248
+ "BUILDKITE_BAZEL_CACHE_URL" : rayBazelBuildCache ,
249
+ "BUILDKITE_CACHE_READONLY" : "true" ,
250
+ },
251
251
252
- TagFilterCommand : []string {"./ci/ci_tags_from_change.sh " },
252
+ HookEnvKeys : []string {"RAYCI_CHECKOUT_DIR " },
253
253
254
- SkipTags : []string {"disabled" , "skip-on-premerge" },
254
+ TagFilterCommand : []string {"./ci/ci_tags_from_change.sh" },
255
+
256
+ SkipTags : []string {"disabled" , "skip-on-premerge" },
257
+ }
258
+ for k , v := range extraEnv {
259
+ config .Env [k ] = v
260
+ }
261
+ return config
255
262
}
256
263
257
264
func ciDefaultConfig (envs Envs ) * config {
@@ -260,11 +267,16 @@ func ciDefaultConfig(envs Envs) *config {
260
267
case rayBranchPipeline , rayV2PostmergePipeline , rayCIPipeline :
261
268
return branchPipelineConfig
262
269
case rayPRPipeline , rayV2PremergePipeline , rayDevPipeline :
263
- return prPipelineConfig
270
+ return prPipelineConfig ("ray-pr" , nil )
271
+ case rayV2MicrocheckPipeline :
272
+ return prPipelineConfig (
273
+ "ray-pr-microcheck" ,
274
+ map [string ]string {"RAYCI_MICROCHECK_RUN" : "1" },
275
+ )
264
276
}
265
277
266
278
// By default, assume it is less privileged.
267
- return prPipelineConfig
279
+ return prPipelineConfig ( "ray-pr" , nil )
268
280
}
269
281
270
282
func defaultConfig (envs Envs ) * config {
0 commit comments