mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-25 01:49:06 -05:00
chore: revert circle M1 runners for MacStadium VM (#27328)
* Revert "chore: use cloud hosted m1 runners for apple silicon devices (#27257)"
This reverts commit 78ad0d53ef.
* chore: reverted runner and trying new m1 runner on macstadium [run ci]
[run ci]
run ci
run ci
chore: bump cache (uising person over admin) [run ci]
chore: test build artifacts [run ci]
bump cache [run ci]
update cache
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
# Bump this version to force CI to re-create the cache from scratch.
|
||||
|
||||
06-07-23
|
||||
07-19-23
|
||||
+34
-23
@@ -30,8 +30,7 @@ mainBuildFilters: &mainBuildFilters
|
||||
- /^release\/\d+\.\d+\.\d+$/
|
||||
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
|
||||
- 'update-v8-snapshot-cache-on-develop'
|
||||
- 'jordanpowell88/angular-tsconfig'
|
||||
- 'fix/chrome_crash_recovery'
|
||||
- 'revert-runner'
|
||||
|
||||
# usually we don't build Mac app - it takes a long time
|
||||
# but sometimes we want to really confirm we are doing the right thing
|
||||
@@ -42,8 +41,7 @@ macWorkflowFilters: &darwin-workflow-filters
|
||||
- equal: [ develop, << pipeline.git.branch >> ]
|
||||
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
|
||||
- equal: [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ]
|
||||
- equal: ['jordanpowell88/angular-tsconfig', << pipeline.git.branch >> ]
|
||||
- equal: [ 'mschile/issue-26900_browserCriClient', << pipeline.git.branch >> ]
|
||||
- equal: [ 'revert-runner', << pipeline.git.branch >> ]
|
||||
- matches:
|
||||
pattern: /^release\/\d+\.\d+\.\d+$/
|
||||
value: << pipeline.git.branch >>
|
||||
@@ -54,8 +52,7 @@ linuxArm64WorkflowFilters: &linux-arm64-workflow-filters
|
||||
- equal: [ develop, << pipeline.git.branch >> ]
|
||||
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
|
||||
- equal: [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ]
|
||||
- equal: [ 'jordanpowell88/angular-tsconfig', << pipeline.git.branch >> ]
|
||||
- equal: [ 'mschile/issue-26900_browserCriClient', << pipeline.git.branch >> ]
|
||||
- equal: [ 'revert-runner', << pipeline.git.branch >> ]
|
||||
- matches:
|
||||
pattern: /^release\/\d+\.\d+\.\d+$/
|
||||
value: << pipeline.git.branch >>
|
||||
@@ -75,7 +72,7 @@ windowsWorkflowFilters: &windows-workflow-filters
|
||||
- equal: [ develop, << pipeline.git.branch >> ]
|
||||
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
|
||||
- equal: [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ]
|
||||
- equal: [ 'chore/use_cloud_m1_runners', << pipeline.git.branch >> ]
|
||||
- equal: [ 'revert-runner', << pipeline.git.branch >> ]
|
||||
- matches:
|
||||
pattern: /^release\/\d+\.\d+\.\d+$/
|
||||
value: << pipeline.git.branch >>
|
||||
@@ -122,11 +119,8 @@ executors:
|
||||
environment:
|
||||
PLATFORM: windows
|
||||
|
||||
# see https://circleci.com/docs/configuration-reference/#macos-execution-environment
|
||||
darwin-arm64: &darwin-arm64-executor
|
||||
macos:
|
||||
xcode: "14.2.0"
|
||||
resource_class: macos.m1.large.gen1
|
||||
machine: true
|
||||
environment:
|
||||
PLATFORM: darwin
|
||||
|
||||
@@ -145,7 +139,7 @@ commands:
|
||||
- run:
|
||||
name: Check current branch to persist artifacts
|
||||
command: |
|
||||
if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "release/"* && "$CIRCLE_BRANCH" != "update-v8-snapshot-cache-on-develop" && "$CIRCLE_BRANCH" != "jordanpowell88/angular-tsconfig" ]]; then
|
||||
if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "release/"* && "$CIRCLE_BRANCH" != "update-v8-snapshot-cache-on-develop" && "$CIRCLE_BRANCH" != "revert-runner" ]]; then
|
||||
echo "Not uploading artifacts or posting install comment for this branch."
|
||||
circleci-agent step halt
|
||||
fi
|
||||
@@ -435,7 +429,7 @@ commands:
|
||||
node_version=$(cat .node-version)
|
||||
source ./scripts/ensure-node.sh
|
||||
echo "Installing Yarn"
|
||||
npm install yarn -g # ensure yarn is installed with the correct node engine
|
||||
npm install yarn --location=global # ensure yarn is installed with the correct node engine
|
||||
yarn check-node-version
|
||||
- run:
|
||||
name: Check Node
|
||||
@@ -1361,18 +1355,12 @@ jobs:
|
||||
steps:
|
||||
- restore_cached_workspace
|
||||
- restore_cached_system_tests_deps
|
||||
# TODO: Remove this once we switch off self-hosted M1 runners
|
||||
- when:
|
||||
condition:
|
||||
or:
|
||||
- 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
|
||||
equal: [ *darwin-arm64-executor, << parameters.executor >> ]
|
||||
steps:
|
||||
- run:
|
||||
name: Run v8 integration tests
|
||||
command: |
|
||||
source ./scripts/ensure-node.sh
|
||||
yarn test-integration --scope "'@tooling/packherd'"
|
||||
- verify-mocha-results:
|
||||
expectedResultCount: 1
|
||||
- run: rm -f /tmp/cypress/junit/*
|
||||
- unless:
|
||||
condition:
|
||||
or:
|
||||
@@ -1385,6 +1373,18 @@ jobs:
|
||||
yarn test-integration --scope "'@tooling/{packherd,v8-snapshot,electron-mksnapshot}'"
|
||||
- verify-mocha-results:
|
||||
expectedResultCount: 3
|
||||
- when:
|
||||
condition:
|
||||
or:
|
||||
- equal: [ *linux-arm64-executor, << parameters.executor >> ]
|
||||
steps:
|
||||
- run:
|
||||
name: Run v8 integration tests
|
||||
command: |
|
||||
source ./scripts/ensure-node.sh
|
||||
yarn test-integration --scope "'@tooling/packherd'"
|
||||
- verify-mocha-results:
|
||||
expectedResultCount: 1
|
||||
- store_test_results:
|
||||
path: /tmp/cypress
|
||||
- store-npm-logs
|
||||
@@ -1520,6 +1520,12 @@ jobs:
|
||||
parallelism: 1
|
||||
steps:
|
||||
- restore_cached_workspace
|
||||
# TODO: Remove this once we switch off self-hosted M1 runners
|
||||
- when:
|
||||
condition:
|
||||
equal: [ *darwin-arm64-executor, << parameters.executor >> ]
|
||||
steps:
|
||||
- run: rm -f /tmp/cypress/junit/*
|
||||
- run: yarn workspace @packages/server test-unit cloud/environment_spec.ts
|
||||
- verify-mocha-results:
|
||||
expectedResultCount: 1
|
||||
@@ -2859,11 +2865,13 @@ darwin-arm64-workflow: &darwin-arm64-workflow
|
||||
- node_modules_install:
|
||||
name: darwin-arm64-node-modules-install
|
||||
executor: darwin-arm64
|
||||
resource_class: cypress-io/m1-macstadium
|
||||
only-cache-for-root-user: true
|
||||
|
||||
- build:
|
||||
name: darwin-arm64-build
|
||||
executor: darwin-arm64
|
||||
resource_class: cypress-io/m1-macstadium
|
||||
requires:
|
||||
- darwin-arm64-node-modules-install
|
||||
|
||||
@@ -2875,23 +2883,26 @@ darwin-arm64-workflow: &darwin-arm64-workflow
|
||||
- test-runner:commit-status-checks
|
||||
- test-runner:build-binary
|
||||
executor: darwin-arm64
|
||||
resource_class: large
|
||||
resource_class: cypress-io/m1-macstadium
|
||||
requires:
|
||||
- darwin-arm64-build
|
||||
|
||||
- v8-integration-tests:
|
||||
name: darwin-arm64-v8-integration-tests
|
||||
executor: darwin-arm64
|
||||
resource_class: cypress-io/m1-macstadium
|
||||
requires:
|
||||
- darwin-arm64-build
|
||||
- driver-integration-memory-tests:
|
||||
name: darwin-arm64-driver-integration-memory-tests
|
||||
executor: darwin-arm64
|
||||
resource_class: cypress-io/m1-macstadium
|
||||
requires:
|
||||
- darwin-arm64-build
|
||||
- server-unit-tests-cloud-environment:
|
||||
name: darwin-arm64-server-unit-tests-cloud-environment
|
||||
executor: darwin-arm64
|
||||
resource_class: cypress-io/m1-macstadium
|
||||
requires:
|
||||
- darwin-arm64-build
|
||||
|
||||
|
||||
@@ -69,6 +69,8 @@ async function prepareCircleCache () {
|
||||
.replace(/(.*?)\/node_modules/, '$1_node_modules')
|
||||
.replace(BASE_DIR, CACHE_DIR)
|
||||
|
||||
// self-hosted M1 doesn't always clear this directory between runs, so remove it
|
||||
await fsExtra.remove(dest)
|
||||
await fsExtra.move(src, dest)
|
||||
}),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user