@@ -245,31 +245,31 @@ impl JobArchetype for StandardLibraryTests {
245
245
fn job ( & self , target : Target ) -> Job {
246
246
let graal_edition = self . graal_edition ;
247
247
let should_enable_cloud_tests = self . cloud_tests_enabled ;
248
+ // If cloud tests are enabled, we run only cloud related tests.
249
+ let test_scope =
250
+ if should_enable_cloud_tests { "std-cloud-related" } else { "standard-library" } ;
248
251
let job_name = format ! ( "Standard Library Tests ({graal_edition})" ) ;
249
- let run_steps_builder =
250
- RunStepsBuilder :: new ( "backend test standard-library" ) . customize ( move |step| {
251
- let main_step = step
252
- . with_secret_exposed_as (
253
- secret:: ENSO_LIB_S3_AWS_REGION ,
254
- crate :: libraries_tests:: s3:: env:: ENSO_LIB_S3_AWS_REGION ,
255
- )
256
- . with_secret_exposed_as (
257
- secret:: ENSO_LIB_S3_AWS_ACCESS_KEY_ID ,
258
- crate :: libraries_tests:: s3:: env:: ENSO_LIB_S3_AWS_ACCESS_KEY_ID ,
259
- )
260
- . with_secret_exposed_as (
261
- secret:: ENSO_LIB_S3_AWS_SECRET_ACCESS_KEY ,
262
- crate :: libraries_tests:: s3:: env:: ENSO_LIB_S3_AWS_SECRET_ACCESS_KEY ,
263
- ) ;
252
+ let run_command = format ! ( "backend test {test_scope}" ) ;
253
+ let run_steps_builder = RunStepsBuilder :: new ( run_command ) . customize ( move |step| {
254
+ let main_step = step
255
+ . with_secret_exposed_as (
256
+ secret:: ENSO_LIB_S3_AWS_REGION ,
257
+ crate :: libraries_tests:: s3:: env:: ENSO_LIB_S3_AWS_REGION ,
258
+ )
259
+ . with_secret_exposed_as (
260
+ secret:: ENSO_LIB_S3_AWS_ACCESS_KEY_ID ,
261
+ crate :: libraries_tests:: s3:: env:: ENSO_LIB_S3_AWS_ACCESS_KEY_ID ,
262
+ )
263
+ . with_secret_exposed_as (
264
+ secret:: ENSO_LIB_S3_AWS_SECRET_ACCESS_KEY ,
265
+ crate :: libraries_tests:: s3:: env:: ENSO_LIB_S3_AWS_SECRET_ACCESS_KEY ,
266
+ ) ;
264
267
265
- let updated_main_step = if should_enable_cloud_tests {
266
- enable_cloud_tests ( main_step)
267
- } else {
268
- main_step
269
- } ;
268
+ let updated_main_step =
269
+ if should_enable_cloud_tests { enable_cloud_tests ( main_step) } else { main_step } ;
270
270
271
- vec ! [ updated_main_step, step:: stdlib_test_reporter( target, graal_edition) ]
272
- } ) ;
271
+ vec ! [ updated_main_step, step:: stdlib_test_reporter( target, graal_edition) ]
272
+ } ) ;
273
273
let mut job = build_job_ensuring_cloud_tests_run_on_github (
274
274
run_steps_builder,
275
275
target,
0 commit comments