@@ -29,7 +29,7 @@ mainBuildFilters: &mainBuildFilters
29
29
only :
30
30
- develop
31
31
- 10.0-release
32
- - other-projects-cleanup
32
+ - fix-darwin-win32-node-modules-install
33
33
34
34
# usually we don't build Mac app - it takes a long time
35
35
# but sometimes we want to really confirm we are doing the right thing
@@ -38,7 +38,7 @@ macWorkflowFilters: &mac-workflow-filters
38
38
when :
39
39
or :
40
40
- equal : [ develop, << pipeline.git.branch >> ]
41
- - equal : [ renovate/cypress-request-2.x , << pipeline.git.branch >> ]
41
+ - equal : [ fix-darwin-win32-node-modules-install , << pipeline.git.branch >> ]
42
42
- matches :
43
43
pattern : " -release$"
44
44
value : << pipeline.git.branch >>
@@ -48,7 +48,7 @@ windowsWorkflowFilters: &windows-workflow-filters
48
48
or :
49
49
- equal : [ master, << pipeline.git.branch >> ]
50
50
- equal : [ develop, << pipeline.git.branch >> ]
51
- - equal : [ test-binary-downstream-windows , << pipeline.git.branch >> ]
51
+ - equal : [ fix-darwin-win32-node-modules-install , << pipeline.git.branch >> ]
52
52
- matches :
53
53
pattern : " -release$"
54
54
value : << pipeline.git.branch >>
@@ -167,9 +167,12 @@ commands:
167
167
- run :
168
168
name : Generate Circle Cache Key
169
169
command : node scripts/circle-cache.js --action cacheKey > circle_cache_key
170
+ - run :
171
+ name : Generate platform key
172
+ command : echo $PLATFORM > platform_key
170
173
- restore_cache :
171
174
name : Restore cache state, to check for known modules cache existence
172
- key : v{{ .Environment.CACHE_VERSION }}-node-modules-cache-{{ checksum "circle_cache_key" }}
175
+ key : v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}- node-modules-cache-{{ checksum "circle_cache_key" }}
173
176
- run :
174
177
name : Move node_modules back from /tmp
175
178
command : |
@@ -190,22 +193,28 @@ commands:
190
193
- run :
191
194
name : Generate Circle Cache key for system tests
192
195
command : ./system-tests/scripts/cache-key.sh > system_tests_cache_key
196
+ - run :
197
+ name : Generate platform key
198
+ command : echo $PLATFORM > platform_key
193
199
- restore_cache :
194
200
name : Restore system tests node_modules cache
195
201
keys :
196
- - v{{ .Environment.CACHE_VERSION }}-system-tests-projects-node-modules-cache-{{ checksum "system_tests_cache_key" }}
197
- - v{{ .Environment.CACHE_VERSION }}-system-tests-projects-node-modules-cache-
202
+ - v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}- system-tests-projects-node-modules-cache-{{ checksum "system_tests_cache_key" }}
203
+ - v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}- system-tests-projects-node-modules-cache-
198
204
199
205
update_cached_system_tests_deps :
200
206
description : ' Update the cached node_modules for projects in "system-tests/projects/**"'
201
207
steps :
202
208
- run :
203
209
name : Generate Circle Cache key for system tests
204
210
command : ./system-tests/scripts/cache-key.sh > system_tests_cache_key
211
+ - run :
212
+ name : Generate platform key
213
+ command : echo $PLATFORM > platform_key
205
214
- restore_cache :
206
215
name : Restore cache state, to check for known modules cache existence
207
216
keys :
208
- - v{{ .Environment.CACHE_VERSION }}-system-tests-projects-node-modules-cache-state-{{ checksum "system_tests_cache_key" }}
217
+ - v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}- system-tests-projects-node-modules-cache-state-{{ checksum "system_tests_cache_key" }}
209
218
- run :
210
219
name : Send root honeycomb event for this CI build
211
220
command : cd system-tests/scripts && node ./send-root-honecomb-event.js
@@ -219,20 +228,20 @@ commands:
219
228
- restore_cache :
220
229
name : Restore system tests node_modules cache
221
230
keys :
222
- - v{{ .Environment.CACHE_VERSION }}-system-tests-projects-node-modules-cache-{{ checksum "system_tests_cache_key" }}
223
- - v{{ .Environment.CACHE_VERSION }}-system-tests-projects-node-modules-cache-
231
+ - v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}- system-tests-projects-node-modules-cache-{{ checksum "system_tests_cache_key" }}
232
+ - v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}- system-tests-projects-node-modules-cache-
224
233
- run :
225
234
name : Update system-tests node_modules cache
226
235
command : yarn workspace @tooling/system-tests projects:yarn:install
227
236
- save_cache :
228
237
name : Save system tests node_modules cache
229
- key : v{{ .Environment.CACHE_VERSION }}-system-tests-projects-node-modules-cache-{{ checksum "system_tests_cache_key" }}
238
+ key : v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}- system-tests-projects-node-modules-cache-{{ checksum "system_tests_cache_key" }}
230
239
paths :
231
240
- ~/.cache/cy-system-tests-node-modules
232
241
- run : touch /tmp/system_tests_node_modules_installed
233
242
- save_cache :
234
243
name : Save system tests node_modules cache state key
235
- key : v{{ .Environment.CACHE_VERSION }}-system-tests-projects-node-modules-cache-state-{{ checksum "system_tests_cache_key" }}
244
+ key : v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}- system-tests-projects-node-modules-cache-state-{{ checksum "system_tests_cache_key" }}
236
245
paths :
237
246
- /tmp/system_tests_node_modules_installed
238
247
@@ -247,9 +256,12 @@ commands:
247
256
- run :
248
257
name : Generate Circle Cache Key
249
258
command : node scripts/circle-cache.js --action cacheKey > circle_cache_key
259
+ - run :
260
+ name : Generate platform key
261
+ command : echo $PLATFORM > platform_key
250
262
- restore_cache :
251
263
name : Restore cache state, to check for known modules cache existence
252
- key : v{{ .Environment.CACHE_VERSION }}-node-modules-cache-state-{{ checksum "circle_cache_key" }}
264
+ key : v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}- node-modules-cache-state-{{ checksum "circle_cache_key" }}
253
265
- run :
254
266
name : Bail if cache exists
255
267
command : |
@@ -261,7 +273,7 @@ commands:
261
273
- restore_cache :
262
274
name : Restore weekly yarn cache
263
275
keys :
264
- - v{{ .Environment.CACHE_VERSION }}-deps-root-weekly-{{ checksum "cache_date" }}
276
+ - v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}- deps-root-weekly-{{ checksum "cache_date" }}
265
277
- run :
266
278
name : Install Node Modules
267
279
command : |
@@ -274,7 +286,7 @@ commands:
274
286
steps :
275
287
- save_cache :
276
288
name : Saving node modules for root, cli, and all globbed workspace packages
277
- key : v{{ .Environment.CACHE_VERSION }}-node-modules-cache-{{ checksum "circle_cache_key" }}
289
+ key : v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}- node-modules-cache-{{ checksum "circle_cache_key" }}
278
290
paths :
279
291
- node_modules
280
292
- cli/node_modules
@@ -285,18 +297,18 @@ commands:
285
297
steps :
286
298
- save_cache :
287
299
name : Saving node modules for root, cli, and all globbed workspace packages
288
- key : v{{ .Environment.CACHE_VERSION }}-node-modules-cache-{{ checksum "circle_cache_key" }}
300
+ key : v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}- node-modules-cache-{{ checksum "circle_cache_key" }}
289
301
paths :
290
302
- /tmp/node_modules_cache
291
303
- run : touch /tmp/node_modules_installed
292
304
- save_cache :
293
305
name : Saving node-modules cache state key
294
- key : v{{ .Environment.CACHE_VERSION }}-node-modules-cache-state-{{ checksum "circle_cache_key" }}
306
+ key : v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}- node-modules-cache-state-{{ checksum "circle_cache_key" }}
295
307
paths :
296
308
- /tmp/node_modules_installed
297
309
- save_cache :
298
310
name : Save weekly yarn cache
299
- key : v{{ .Environment.CACHE_VERSION }}-deps-root-weekly-{{ checksum "cache_date" }}
311
+ key : v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}- deps-root-weekly-{{ checksum "cache_date" }}
300
312
paths :
301
313
- ~/.yarn
302
314
@@ -1185,6 +1197,7 @@ jobs:
1185
1197
working_directory : ~/cypress
1186
1198
environment :
1187
1199
<< : *defaultsEnvironment
1200
+ PLATFORM : linux
1188
1201
machine :
1189
1202
# using `machine` gives us a Linux VM that can run Docker
1190
1203
image : ubuntu-2004:202111-02
@@ -1613,7 +1626,7 @@ jobs:
1613
1626
- run :
1614
1627
name : Check current branch to persist artifacts
1615
1628
command : |
1616
- if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "other-projects-cleanup " ]]; then
1629
+ if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "fix-darwin-win32-node-modules-install " ]]; then
1617
1630
echo "Not uploading artifacts or posting install comment for this branch."
1618
1631
circleci-agent step halt
1619
1632
fi
0 commit comments