Skip to content

Commit

Permalink
chore: temporarily patch windows build to install dependencies as cac…
Browse files Browse the repository at this point in the history
…hing is currently broken (#30350)
  • Loading branch information
AtofStryker authored Oct 3, 2024
1 parent 619a9ab commit 02be8e5
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/cache-version.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Bump this version to force CI to re-create the cache from scratch.

09-30-24
09-30-24-windows-patch-server-2022
71 changes: 70 additions & 1 deletion .circleci/workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,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: [ 'misc/remove_marionette_for_geckodriver', << pipeline.git.branch >> ]
- equal: [ 'chore/patch_windows_build', << pipeline.git.branch >> ]
- matches:
pattern: /^release\/\d+\.\d+\.\d+$/
value: << pipeline.git.branch >>
Expand Down Expand Up @@ -623,6 +623,9 @@ commands:
browser:
description: browser shortname to target
type: string
executor:
description: the executor in use. Only used if Windows for workaround purposes
type: executor
percy:
description: enable percy
type: boolean
Expand All @@ -637,6 +640,16 @@ commands:
default: ''
steps:
- restore_cached_workspace
# this is a temporary work around while we wait for circle to resolve issues with packages
# with an @ character in windows during save_cache.
# @see https://github.com/cypress-io/cypress/issues/30343 for more details.
- when:
condition:
equal: [ *windows-executor, << parameters.executor >> ]
steps:
- run:
name: reinstall dependencies to work around cache issue (Windows only)
command: rm -rf node_modules && yarn
- windows-install-chrome:
browser: <<parameters.browser>>
- run:
Expand Down Expand Up @@ -1370,6 +1383,16 @@ jobs:
resource_class: << parameters.resource_class >>
steps:
- restore_cached_workspace
# this is a temporary work around while we wait for circle to resolve issues with packages
# with an @ character in windows during save_cache.
# @see https://github.com/cypress-io/cypress/issues/30343 for more details.
- when:
condition:
equal: [ *windows-executor, << parameters.executor >> ]
steps:
- run:
name: reinstall dependencies to work around cache issue (Windows only)
command: rm -rf node_modules && yarn
- run:
name: Top level packages
command: yarn list --depth=0 || true
Expand Down Expand Up @@ -1483,6 +1506,16 @@ jobs:
steps:
- restore_cached_workspace
- restore_cached_system_tests_deps
# this is a temporary work around while we wait for circle to resolve issues with packages
# with an @ character in windows during save_cache.
# @see https://github.com/cypress-io/cypress/issues/30343 for more details.
- when:
condition:
equal: [ *windows-executor, << parameters.executor >> ]
steps:
- run:
name: reinstall dependencies to work around cache issue (Windows only)
command: rm -rf node_modules && yarn
# TODO: Remove this once we switch off self-hosted M1 runners
- when:
condition:
Expand Down Expand Up @@ -1528,6 +1561,16 @@ jobs:
parallelism: 1
steps:
- restore_cached_workspace
# this is a temporary work around while we wait for circle to resolve issues with packages
# with an @ character in windows during save_cache.
# @see https://github.com/cypress-io/cypress/issues/30343 for more details.
- when:
condition:
equal: [ *windows-executor, << parameters.executor >> ]
steps:
- run:
name: reinstall dependencies to work around cache issue (Windows only)
command: rm -rf node_modules && yarn
- run:
name: Driver memory tests in Electron
environment:
Expand Down Expand Up @@ -1648,6 +1691,16 @@ jobs:
equal: [ *darwin-arm64-executor, << parameters.executor >> ]
steps:
- run: rm -f /tmp/cypress/junit/*
# this is a temporary work around while we wait for circle to resolve issues with packages
# with an @ character in windows during save_cache.
# @see https://github.com/cypress-io/cypress/issues/30343 for more details.
- when:
condition:
equal: [ *windows-executor, << parameters.executor >> ]
steps:
- run:
name: reinstall dependencies to work around cache issue (Windows only)
command: rm -rf node_modules && yarn
- run: yarn workspace @packages/server test-unit cloud/environment_spec.ts
- verify-mocha-results:
expectedResultCount: 1
Expand Down Expand Up @@ -1793,6 +1846,7 @@ jobs:
steps:
- run-new-ui-tests:
browser: chrome
executor: << parameters.executor >>
percy: << parameters.percy >>
package: frontend-shared
type: ct
Expand All @@ -1808,6 +1862,7 @@ jobs:
steps:
- run-new-ui-tests:
browser: chrome
executor: << parameters.executor >>
percy: << parameters.percy >>
package: launchpad
type: ct
Expand All @@ -1828,6 +1883,7 @@ jobs:
steps:
- run-new-ui-tests:
browser: chrome
executor: << parameters.executor >>
percy: << parameters.percy >>
package: launchpad
type: e2e
Expand All @@ -1846,6 +1902,7 @@ jobs:
steps:
- run-new-ui-tests:
browser: chrome
executor: << parameters.executor >>
percy: << parameters.percy >>
package: app
type: ct
Expand All @@ -1865,6 +1922,7 @@ jobs:
steps:
- run-new-ui-tests:
browser: chrome
executor: << parameters.executor >>
percy: << parameters.percy >>
package: app
type: e2e
Expand Down Expand Up @@ -1921,6 +1979,7 @@ jobs:
steps:
- run-new-ui-tests:
browser: chrome
executor: << parameters.executor >>
percy: << parameters.percy >>
package: reporter
type: ct
Expand Down Expand Up @@ -2203,6 +2262,16 @@ jobs:
resource_class: << parameters.resource_class >>
steps:
- restore_cached_workspace
# this is a temporary work around while we wait for circle to resolve issues with packages
# with an @ character in windows during save_cache.
# @see https://github.com/cypress-io/cypress/issues/30343 for more details.
- when:
condition:
equal: [ *windows-executor, << parameters.executor >> ]
steps:
- run:
name: reinstall dependencies to work around cache issue (Windows only)
command: rm -rf node_modules && yarn
- check-if-binary-exists
- build-and-package-binary
- build-cypress-npm-package:
Expand Down

5 comments on commit 02be8e5

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 02be8e5 Oct 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.15.1/linux-x64/develop-02be8e5d37df467e0f366926e09e6fa6b37199ee/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 02be8e5 Oct 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.15.1/linux-arm64/develop-02be8e5d37df467e0f366926e09e6fa6b37199ee/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 02be8e5 Oct 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.15.1/darwin-arm64/develop-02be8e5d37df467e0f366926e09e6fa6b37199ee/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 02be8e5 Oct 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.15.1/win32-x64/develop-02be8e5d37df467e0f366926e09e6fa6b37199ee/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 02be8e5 Oct 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.15.1/darwin-x64/develop-02be8e5d37df467e0f366926e09e6fa6b37199ee/cypress.tgz

Please sign in to comment.