@@ -35,12 +35,19 @@ var_3_all_major: &all_nodeversion_major ['14', '16']
35
35
# https://circleci.com/blog/deep-diving-into-circleci-workspaces/
36
36
var_4 : &workspace_location .
37
37
# Filter to only release branches on a given job.
38
- var_5 : &only_release_branches
38
+ var_5_only_releases : &only_release_branches
39
39
filters :
40
40
branches :
41
41
only :
42
42
- main
43
43
- /\d+\.\d+\.x/
44
+ var_5_only_snapshots : &only_snapshot_branches
45
+ filters :
46
+ branches :
47
+ only :
48
+ - main
49
+ # This is needed to run this steps on Renovate PRs that amend the snapshots package.json
50
+ - /^pull\/.*/
44
51
45
52
var_6 : &only_pull_requests
46
53
filters :
@@ -50,7 +57,6 @@ var_6: &only_pull_requests
50
57
51
58
# All e2e test suites
52
59
var_7 : &all_e2e_subsets ['npm', 'esbuild', 'yarn']
53
- var_8 : &all_e2e_build_types ['e2e', 'snapshot']
54
60
55
61
# Executor Definitions
56
62
# https://circleci.com/docs/2.0/reusing-config/#authoring-reusable-executors
@@ -329,10 +335,9 @@ jobs:
329
335
executor : bazel-executor
330
336
parallelism : 8
331
337
parameters :
332
- build_type :
333
- type : enum
334
- enum : *all_e2e_build_types
335
- default : ' e2e'
338
+ snapshots :
339
+ type : boolean
340
+ default : false
336
341
subset :
337
342
type : enum
338
343
enum : *all_e2e_subsets
@@ -343,8 +348,8 @@ jobs:
343
348
- setup_bazel_rbe
344
349
- run : mkdir /mnt/ramdisk/e2e
345
350
- run :
346
- name : Test << parameters.build_type >> << parameters.subset >>
347
- command : yarn bazel test --define=E2E_TEMP=/mnt/ramdisk/e2e --define=E2E_SHARD_TOTAL=${CIRCLE_NODE_TOTAL} --define=E2E_SHARD_INDEX=${CIRCLE_NODE_INDEX} --config=<< parameters.build_type >> //tests/legacy-cli:e2e.<< parameters.subset >>
351
+ name : Execute CLI E2E Tests with << parameters.subset >>
352
+ command : yarn bazel test --define=E2E_TEMP=/mnt/ramdisk/e2e --define=E2E_SHARD_TOTAL=${CIRCLE_NODE_TOTAL} --define=E2E_SHARD_INDEX=${CIRCLE_NODE_INDEX} --config=e2e //tests/legacy-cli:e2e<<# parameters.snapshots >>.snapshots<</ parameters.snapshots >> .<< parameters.subset >>
348
353
no_output_timeout : 40m
349
354
- store_artifacts :
350
355
path : dist/testlogs/tests/legacy-cli/e2e.<< parameters.subset >>
@@ -548,12 +553,7 @@ workflows:
548
553
- run : circleci-agent step halt
549
554
requires :
550
555
- build
551
- filters :
552
- branches :
553
- only :
554
- - main
555
- # This is needed to run this steps on Renovate PRs that amend the snapshots package.json
556
- - /^pull\/.*/
556
+ << : *only_snapshot_branches
557
557
558
558
# Bazel jobs
559
559
# These jobs only really depend on Setup, but the build job is very quick to run (~35s) and
@@ -582,12 +582,7 @@ workflows:
582
582
matrix :
583
583
parameters :
584
584
subset : *all_e2e_subsets
585
- build_type : ' e2e'
586
- filters :
587
- branches :
588
- ignore :
589
- - main
590
- - /\d+\.\d+\.x/
585
+ snapshots : false
591
586
requires :
592
587
- bazel-build
593
588
@@ -596,7 +591,7 @@ workflows:
596
591
matrix :
597
592
parameters :
598
593
subset : *all_e2e_subsets
599
- build_type : ' snapshot '
594
+ snapshots : true
600
595
pre-steps :
601
596
- when :
602
597
condition :
@@ -609,12 +604,7 @@ workflows:
609
604
- run : circleci-agent step halt
610
605
requires :
611
606
- bazel-build
612
- filters :
613
- branches :
614
- only :
615
- - main
616
- # This is needed to run this steps on Renovate PRs that amend the snapshots package.json
617
- - /^pull\/.*/
607
+ << : *only_snapshot_branches
618
608
619
609
- bazel-test-browsers :
620
610
requires :
0 commit comments