@@ -30,8 +30,7 @@ mainBuildFilters: &mainBuildFilters
30
30
- /^release\/\d+\.\d+\.\d+$/
31
31
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
32
32
- ' update-v8-snapshot-cache-on-develop'
33
- - ' jordanpowell88/angular-tsconfig'
34
- - ' fix/chrome_crash_recovery'
33
+ - ' revert-runner'
35
34
36
35
# usually we don't build Mac app - it takes a long time
37
36
# but sometimes we want to really confirm we are doing the right thing
@@ -42,8 +41,7 @@ macWorkflowFilters: &darwin-workflow-filters
42
41
- equal : [ develop, << pipeline.git.branch >> ]
43
42
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
44
43
- equal : [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ]
45
- - equal : ['jordanpowell88/angular-tsconfig', << pipeline.git.branch >> ]
46
- - equal : [ 'mschile/issue-26900_browserCriClient', << pipeline.git.branch >> ]
44
+ - equal : [ 'revert-runner', << pipeline.git.branch >> ]
47
45
- matches :
48
46
pattern : /^release\/\d+\.\d+\.\d+$/
49
47
value : << pipeline.git.branch >>
@@ -54,8 +52,7 @@ linuxArm64WorkflowFilters: &linux-arm64-workflow-filters
54
52
- equal : [ develop, << pipeline.git.branch >> ]
55
53
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
56
54
- equal : [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ]
57
- - equal : [ 'jordanpowell88/angular-tsconfig', << pipeline.git.branch >> ]
58
- - equal : [ 'mschile/issue-26900_browserCriClient', << pipeline.git.branch >> ]
55
+ - equal : [ 'revert-runner', << pipeline.git.branch >> ]
59
56
- matches :
60
57
pattern : /^release\/\d+\.\d+\.\d+$/
61
58
value : << pipeline.git.branch >>
@@ -75,7 +72,7 @@ windowsWorkflowFilters: &windows-workflow-filters
75
72
- equal : [ develop, << pipeline.git.branch >> ]
76
73
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
77
74
- equal : [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ]
78
- - equal : [ 'chore/use_cloud_m1_runners ', << pipeline.git.branch >> ]
75
+ - equal : [ 'revert-runner ', << pipeline.git.branch >> ]
79
76
- matches :
80
77
pattern : /^release\/\d+\.\d+\.\d+$/
81
78
value : << pipeline.git.branch >>
@@ -122,11 +119,8 @@ executors:
122
119
environment :
123
120
PLATFORM : windows
124
121
125
- # see https://circleci.com/docs/configuration-reference/#macos-execution-environment
126
122
darwin-arm64 : &darwin-arm64-executor
127
- macos :
128
- xcode : " 14.2.0"
129
- resource_class : macos.m1.large.gen1
123
+ machine : true
130
124
environment :
131
125
PLATFORM : darwin
132
126
@@ -145,7 +139,7 @@ commands:
145
139
- run :
146
140
name : Check current branch to persist artifacts
147
141
command : |
148
- if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "release/"* && "$CIRCLE_BRANCH" != "update-v8-snapshot-cache-on-develop" && "$CIRCLE_BRANCH" != "jordanpowell88/angular-tsconfig " ]]; then
142
+ if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "release/"* && "$CIRCLE_BRANCH" != "update-v8-snapshot-cache-on-develop" && "$CIRCLE_BRANCH" != "revert-runner " ]]; then
149
143
echo "Not uploading artifacts or posting install comment for this branch."
150
144
circleci-agent step halt
151
145
fi
@@ -435,7 +429,7 @@ commands:
435
429
node_version=$(cat .node-version)
436
430
source ./scripts/ensure-node.sh
437
431
echo "Installing Yarn"
438
- npm install yarn -g # ensure yarn is installed with the correct node engine
432
+ npm install yarn --location=global # ensure yarn is installed with the correct node engine
439
433
yarn check-node-version
440
434
- run :
441
435
name : Check Node
@@ -1361,7 +1355,13 @@ jobs:
1361
1355
steps :
1362
1356
- restore_cached_workspace
1363
1357
- restore_cached_system_tests_deps
1358
+ # TODO: Remove this once we switch off self-hosted M1 runners
1364
1359
- when :
1360
+ condition :
1361
+ equal : [ *darwin-arm64-executor, << parameters.executor >> ]
1362
+ steps :
1363
+ - run : rm -f /tmp/cypress/junit/*
1364
+ - unless :
1365
1365
condition :
1366
1366
or :
1367
1367
- equal : [ *linux-arm64-executor, << parameters.executor >> ] # TODO: Figure out how to support linux-arm64 when we get to linux arm64 build: https://github.com/cypress-io/cypress/issues/23557
@@ -1370,21 +1370,21 @@ jobs:
1370
1370
name : Run v8 integration tests
1371
1371
command : |
1372
1372
source ./scripts/ensure-node.sh
1373
- yarn test-integration --scope "'@tooling/packherd'"
1373
+ yarn test-integration --scope "'@tooling/{ packherd,v8-snapshot,electron-mksnapshot} '"
1374
1374
- verify-mocha-results :
1375
- expectedResultCount : 1
1376
- - unless :
1375
+ expectedResultCount : 3
1376
+ - when :
1377
1377
condition :
1378
1378
or :
1379
- - equal : [ *linux-arm64-executor, << parameters.executor >> ] # TODO: Figure out how to support linux-arm64 when we get to linux arm64 build: https://github.com/cypress-io/cypress/issues/23557
1379
+ - equal : [ *linux-arm64-executor, << parameters.executor >> ]
1380
1380
steps :
1381
1381
- run :
1382
1382
name : Run v8 integration tests
1383
1383
command : |
1384
1384
source ./scripts/ensure-node.sh
1385
- yarn test-integration --scope "'@tooling/{ packherd,v8-snapshot,electron-mksnapshot} '"
1385
+ yarn test-integration --scope "'@tooling/packherd'"
1386
1386
- verify-mocha-results :
1387
- expectedResultCount : 3
1387
+ expectedResultCount : 1
1388
1388
- store_test_results :
1389
1389
path : /tmp/cypress
1390
1390
- store-npm-logs
@@ -1520,6 +1520,12 @@ jobs:
1520
1520
parallelism : 1
1521
1521
steps :
1522
1522
- restore_cached_workspace
1523
+ # TODO: Remove this once we switch off self-hosted M1 runners
1524
+ - when :
1525
+ condition :
1526
+ equal : [ *darwin-arm64-executor, << parameters.executor >> ]
1527
+ steps :
1528
+ - run : rm -f /tmp/cypress/junit/*
1523
1529
- run : yarn workspace @packages/server test-unit cloud/environment_spec.ts
1524
1530
- verify-mocha-results :
1525
1531
expectedResultCount : 1
@@ -2859,11 +2865,13 @@ darwin-arm64-workflow: &darwin-arm64-workflow
2859
2865
- node_modules_install :
2860
2866
name : darwin-arm64-node-modules-install
2861
2867
executor : darwin-arm64
2868
+ resource_class : cypress-io/m1-macstadium
2862
2869
only-cache-for-root-user : true
2863
2870
2864
2871
- build :
2865
2872
name : darwin-arm64-build
2866
2873
executor : darwin-arm64
2874
+ resource_class : cypress-io/m1-macstadium
2867
2875
requires :
2868
2876
- darwin-arm64-node-modules-install
2869
2877
@@ -2875,23 +2883,26 @@ darwin-arm64-workflow: &darwin-arm64-workflow
2875
2883
- test-runner:commit-status-checks
2876
2884
- test-runner:build-binary
2877
2885
executor : darwin-arm64
2878
- resource_class : large
2886
+ resource_class : cypress-io/m1-macstadium
2879
2887
requires :
2880
2888
- darwin-arm64-build
2881
2889
2882
2890
- v8-integration-tests :
2883
2891
name : darwin-arm64-v8-integration-tests
2884
2892
executor : darwin-arm64
2893
+ resource_class : cypress-io/m1-macstadium
2885
2894
requires :
2886
2895
- darwin-arm64-build
2887
2896
- driver-integration-memory-tests :
2888
2897
name : darwin-arm64-driver-integration-memory-tests
2889
2898
executor : darwin-arm64
2899
+ resource_class : cypress-io/m1-macstadium
2890
2900
requires :
2891
2901
- darwin-arm64-build
2892
2902
- server-unit-tests-cloud-environment :
2893
2903
name : darwin-arm64-server-unit-tests-cloud-environment
2894
2904
executor : darwin-arm64
2905
+ resource_class : cypress-io/m1-macstadium
2895
2906
requires :
2896
2907
- darwin-arm64-build
2897
2908
0 commit comments