1
+ use core:: panic;
2
+
1
3
use crate :: prelude:: * ;
2
4
3
5
use crate :: ci_gen:: not_default_branch;
@@ -307,6 +309,10 @@ fn build_job_ensuring_cloud_tests_run_on_github(
307
309
cloud_tests_enabled : bool ,
308
310
) -> Job {
309
311
if cloud_tests_enabled {
312
+ if target. 0 != OS :: Linux {
313
+ panic ! ( "If the Cloud tests are enabled, they require GitHub hosted runner for Cloud auth, so they only run on Linux." ) ;
314
+ }
315
+
310
316
run_steps_builder. build_job ( job_name, RunnerLabel :: LinuxLatest )
311
317
} else {
312
318
run_steps_builder. build_job ( job_name, target)
@@ -320,6 +326,9 @@ const GRAAL_EDITION_FOR_EXTRA_TESTS: graalvm::Edition = graalvm::Edition::Commun
320
326
321
327
impl JobArchetype for SnowflakeTests {
322
328
fn job ( & self , target : Target ) -> Job {
329
+ if target. 0 != OS :: Linux {
330
+ panic ! ( "Snowflake tests currently require GitHub hosted runner for Cloud auth, so they only run on Linux." ) ;
331
+ }
323
332
let job_name = "Snowflake Tests" ;
324
333
let mut job = RunStepsBuilder :: new ( "backend test std-snowflake" )
325
334
. customize ( move |step| {
@@ -358,7 +367,7 @@ impl JobArchetype for SnowflakeTests {
358
367
step:: extra_stdlib_test_reporter( target, GRAAL_EDITION_FOR_EXTRA_TESTS ) ,
359
368
]
360
369
} )
361
- . build_job ( job_name, target )
370
+ . build_job ( job_name, RunnerLabel :: LinuxLatest )
362
371
. with_permission ( Permission :: Checks , Access :: Write ) ;
363
372
job. env ( env:: GRAAL_EDITION , GRAAL_EDITION_FOR_EXTRA_TESTS ) ;
364
373
job
0 commit comments