@@ -224,7 +224,6 @@ commands:
224224 name : Restore system tests node_modules cache
225225 keys :
226226 - v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}-system-tests-projects-node-modules-cache-{{ checksum "system_tests_cache_key" }}
227- - v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}-system-tests-projects-node-modules-cache-
228227
229228 update_cached_system_tests_deps :
230229 description : ' Update the cached node_modules for projects in "system-tests/projects/**"'
@@ -238,10 +237,10 @@ commands:
238237 - restore_cache :
239238 name : Restore cache state, to check for known modules cache existence
240239 keys :
241- - v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}-system-tests-projects-node-modules-cache-state -{{ checksum "system_tests_cache_key" }}
240+ - v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}-state-of- system-tests-projects-node-modules-cache-{{ checksum "system_tests_cache_key" }}
242241 - run :
243242 name : Send root honeycomb event for this CI build
244- command : cd system-tests/scripts && node ./send-root-honecomb -event.js
243+ command : cd system-tests/scripts && node ./send-root-honeycomb -event.js
245244 - run :
246245 name : Bail if specific cache exists
247246 command : |
@@ -261,11 +260,11 @@ commands:
261260 name : Save system tests node_modules cache
262261 key : v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}-system-tests-projects-node-modules-cache-{{ checksum "system_tests_cache_key" }}
263262 paths :
264- - ~/.cache /cy-system-tests-node-modules
263+ - /tmp /cy-system-tests-node-modules
265264 - run : touch /tmp/system_tests_node_modules_installed
266265 - save_cache :
267266 name : Save system tests node_modules cache state key
268- key : v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}-system-tests-projects-node-modules-cache-state -{{ checksum "system_tests_cache_key" }}
267+ key : v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}-state-of- system-tests-projects-node-modules-cache-{{ checksum "system_tests_cache_key" }}
269268 paths :
270269 - /tmp/system_tests_node_modules_installed
271270
@@ -285,7 +284,7 @@ commands:
285284 command : echo $PLATFORM > platform_key
286285 - restore_cache :
287286 name : Restore cache state, to check for known modules cache existence
288- key : v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}-node-modules-cache-state -{{ checksum "circle_cache_key" }}
287+ key : v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}-state-of- node-modules-cache-{{ checksum "circle_cache_key" }}
289288 - run :
290289 name : Bail if cache exists
291290 command : |
@@ -330,7 +329,7 @@ commands:
330329 - run : touch node_modules_installed
331330 - save_cache :
332331 name : Saving node-modules cache state key
333- key : v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}-node-modules-cache-state -{{ checksum "circle_cache_key" }}
332+ key : v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}-state-of- node-modules-cache-{{ checksum "circle_cache_key" }}
334333 paths :
335334 - node_modules_installed
336335 - save_cache :
@@ -429,6 +428,10 @@ commands:
429428 description : chrome channel to install
430429 type : string
431430 default : ' '
431+ experimentalSessionAndOrigin :
432+ description : experimental flag to apply
433+ type : boolean
434+ default : false
432435 steps :
433436 - restore_cached_workspace
434437 - when :
@@ -446,8 +449,13 @@ commands:
446449
447450 if [[ -v MAIN_RECORD_KEY ]]; then
448451 # internal PR
449- CYPRESS_RECORD_KEY=$MAIN_RECORD_KEY \
450- yarn cypress:run --record --parallel --group 5x-driver-<<parameters.browser>> --browser <<parameters.browser>>
452+ if <<parameters.experimentalSessionAndOrigin>>; then
453+ CYPRESS_RECORD_KEY=$MAIN_RECORD_KEY \
454+ yarn cypress:run-experimentalSessionAndOrigin --record --parallel --group 5x-driver-<<parameters.browser>>-experimentalSessionAndOrigin --browser <<parameters.browser>>
455+ else
456+ CYPRESS_RECORD_KEY=$MAIN_RECORD_KEY \
457+ yarn cypress:run --record --parallel --group 5x-driver-<<parameters.browser>> --browser <<parameters.browser>>
458+ fi
451459 else
452460 # external PR
453461 TESTFILES=$(circleci tests glob "cypress/e2e/**/*.cy.*" | circleci tests split --total=$CIRCLE_NODE_TOTAL)
@@ -456,7 +464,11 @@ commands:
456464 if [[ -z "$TESTFILES" ]]; then
457465 echo "Empty list of test files"
458466 fi
459- yarn cypress:run --browser <<parameters.browser>> --spec $TESTFILES
467+ if <<parameters.experimentalSessionAndOrigin>>; then
468+ yarn cypress:run-experimentalSessionAndOrigin --browser <<parameters.browser>> --spec $TESTFILES
469+ else
470+ yarn cypress:run --browser <<parameters.browser>> --spec $TESTFILES
471+ fi
460472 fi
461473 working_directory : packages/driver
462474 - verify-mocha-results
@@ -1054,6 +1066,9 @@ jobs:
10541066 - run :
10551067 name : Top level packages
10561068 command : yarn list --depth=0 || true
1069+ - run :
1070+ name : Check env canaries
1071+ command : node ./scripts/circle-env.js --check-canaries
10571072 - build-and-persist
10581073 - store-npm-logs
10591074
@@ -1156,24 +1171,18 @@ jobs:
11561171 parallelism : 1
11571172 steps :
11581173 - restore_cached_workspace
1159- # make sure mocha runs
1160- - run : yarn test-mocha
11611174 - when :
11621175 condition :
11631176 # several snapshots fails for windows due to paths.
11641177 # until these are fixed, run the tests that are working.
11651178 equal : [ *windows-executor, << parameters.executor >> ]
11661179 steps :
11671180 - run : yarn test-scripts scripts/**/*spec.js
1168- # make sure our snapshots are compared correctly
1169- - run : yarn test-mocha-snapshot
11701181 - unless :
11711182 condition :
11721183 equal : [ *windows-executor, << parameters.executor >> ]
11731184 steps :
11741185 - run : yarn test-scripts
1175- # make sure our snapshots are compared correctly
1176- - run : yarn test-mocha-snapshot
11771186 # make sure packages with TypeScript can be transpiled to JS
11781187 - run : yarn lerna run build-prod --stream
11791188 # run unit tests from each individual package
@@ -1425,6 +1434,44 @@ jobs:
14251434 - run-driver-integration-tests :
14261435 browser : electron
14271436
1437+ driver-integration-tests-chrome-experimentalSessionAndOrigin :
1438+ << : *defaults
1439+ resource_class : medium
1440+ parallelism : 5
1441+ steps :
1442+ - run-driver-integration-tests :
1443+ browser : chrome
1444+ install-chrome-channel : stable
1445+ experimentalSessionAndOrigin : true
1446+
1447+ driver-integration-tests-chrome-beta-experimentalSessionAndOrigin :
1448+ << : *defaults
1449+ resource_class : medium
1450+ parallelism : 5
1451+ steps :
1452+ - run-driver-integration-tests :
1453+ browser : chrome:beta
1454+ install-chrome-channel : beta
1455+ experimentalSessionAndOrigin : true
1456+
1457+ driver-integration-tests-firefox-experimentalSessionAndOrigin :
1458+ << : *defaults
1459+ resource_class : medium
1460+ parallelism : 5
1461+ steps :
1462+ - run-driver-integration-tests :
1463+ browser : firefox
1464+ experimentalSessionAndOrigin : true
1465+
1466+ driver-integration-tests-electron-experimentalSessionAndOrigin :
1467+ << : *defaults
1468+ resource_class : medium
1469+ parallelism : 5
1470+ steps :
1471+ - run-driver-integration-tests :
1472+ browser : electron
1473+ experimentalSessionAndOrigin : true
1474+
14281475 reporter-integration-tests :
14291476 << : *defaults
14301477 parallelism : 3
@@ -2149,6 +2196,7 @@ linux-workflow: &linux-workflow
21492196 jobs :
21502197 - node_modules_install
21512198 - build :
2199+ context : test-runner:env-canary
21522200 requires :
21532201 - node_modules_install
21542202 - check-ts :
@@ -2224,6 +2272,22 @@ linux-workflow: &linux-workflow
22242272 context : test-runner:cypress-record-key
22252273 requires :
22262274 - build
2275+ - driver-integration-tests-chrome-experimentalSessionAndOrigin :
2276+ context : test-runner:cypress-record-key
2277+ requires :
2278+ - build
2279+ - driver-integration-tests-chrome-beta-experimentalSessionAndOrigin :
2280+ context : test-runner:cypress-record-key
2281+ requires :
2282+ - build
2283+ - driver-integration-tests-firefox-experimentalSessionAndOrigin :
2284+ context : test-runner:cypress-record-key
2285+ requires :
2286+ - build
2287+ - driver-integration-tests-electron-experimentalSessionAndOrigin :
2288+ context : test-runner:cypress-record-key
2289+ requires :
2290+ - build
22272291 - run-frontend-shared-component-tests-chrome :
22282292 context : [test-runner:launchpad-tests, test-runner:percy]
22292293 percy : true
@@ -2324,6 +2388,10 @@ linux-workflow: &linux-workflow
23242388 - driver-integration-tests-chrome
23252389 - driver-integration-tests-chrome-beta
23262390 - driver-integration-tests-electron
2391+ - driver-integration-tests-firefox-experimentalSessionAndOrigin
2392+ - driver-integration-tests-chrome-experimentalSessionAndOrigin
2393+ - driver-integration-tests-chrome-beta-experimentalSessionAndOrigin
2394+ - driver-integration-tests-electron-experimentalSessionAndOrigin
23272395 - system-tests-non-root
23282396 - system-tests-firefox
23292397 - system-tests-electron
@@ -2437,6 +2505,7 @@ mac-workflow: &mac-workflow
24372505
24382506 - build :
24392507 name : darwin-build
2508+ context : test-runner:env-canary
24402509 executor : mac
24412510 resource_class : macos.x86.medium.gen2
24422511 requires :
@@ -2475,6 +2544,7 @@ windows-workflow: &windows-workflow
24752544
24762545 - build :
24772546 name : windows-build
2547+ context : test-runner:env-canary
24782548 executor : windows
24792549 resource_class : windows.medium
24802550 requires :
0 commit comments