Skip to content

Commit 2a17efa

Browse files
brian-mannryanthemanueltgriesser
authored
feat: improve stability when recording (#25837)
Co-authored-by: Ryan Manuel <[email protected]> Co-authored-by: Tim Griesser <[email protected]>
1 parent 948bc02 commit 2a17efa

File tree

56 files changed

+1723
-464
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1723
-464
lines changed

.circleci/workflows.yml

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ mainBuildFilters: &mainBuildFilters
3030
- /^release\/\d+\.\d+\.\d+$/
3131
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
3232
- 'update-v8-snapshot-cache-on-develop'
33-
- 'lmiller/fixing-vite-windows'
33+
- 'fix/preflight'
3434

3535
# usually we don't build Mac app - it takes a long time
3636
# but sometimes we want to really confirm we are doing the right thing
@@ -41,6 +41,7 @@ macWorkflowFilters: &darwin-workflow-filters
4141
- equal: [ develop, << pipeline.git.branch >> ]
4242
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
4343
- equal: [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ]
44+
- equal: [ 'fix/preflight', << pipeline.git.branch >> ]
4445
- matches:
4546
pattern: /^release\/\d+\.\d+\.\d+$/
4647
value: << pipeline.git.branch >>
@@ -51,6 +52,7 @@ linuxArm64WorkflowFilters: &linux-arm64-workflow-filters
5152
- equal: [ develop, << pipeline.git.branch >> ]
5253
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
5354
- equal: [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ]
55+
- equal: [ 'fix/preflight', << pipeline.git.branch >> ]
5456
- matches:
5557
pattern: /^release\/\d+\.\d+\.\d+$/
5658
value: << pipeline.git.branch >>
@@ -71,6 +73,7 @@ windowsWorkflowFilters: &windows-workflow-filters
7173
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
7274
- equal: [ 'lmiller/fixing-vite-windows', << pipeline.git.branch >> ]
7375
- equal: [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ]
76+
- equal: [ 'fix/preflight', << pipeline.git.branch >> ]
7477
- matches:
7578
pattern: /^release\/\d+\.\d+\.\d+$/
7679
value: << pipeline.git.branch >>
@@ -136,7 +139,7 @@ commands:
136139
- run:
137140
name: Check current branch to persist artifacts
138141
command: |
139-
if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "release/"* && "$CIRCLE_BRANCH" != "lmiller/fixing-vite-windows" ]]; then
142+
if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "release/"* && "$CIRCLE_BRANCH" != "fix/preflight" && "$CIRCLE_BRANCH" != "update-v8-snapshot-cache-on-develop" ]]; then
140143
echo "Not uploading artifacts or posting install comment for this branch."
141144
circleci-agent step halt
142145
fi
@@ -1485,6 +1488,30 @@ jobs:
14851488
path: /tmp/cypress
14861489
- store-npm-logs
14871490

1491+
server-unit-tests-cloud-environment:
1492+
<<: *defaults
1493+
parameters:
1494+
<<: *defaultsParameters
1495+
resource_class:
1496+
type: string
1497+
default: medium
1498+
resource_class: << parameters.resource_class >>
1499+
parallelism: 1
1500+
steps:
1501+
- restore_cached_workspace
1502+
# TODO: Remove this once we switch off self-hosted M1 runners
1503+
- when:
1504+
condition:
1505+
equal: [ *darwin-arm64-executor, << parameters.executor >> ]
1506+
steps:
1507+
- run: rm -f /tmp/cypress/junit/*
1508+
- run: yarn workspace @packages/server test-unit cloud/environment_spec.ts
1509+
- verify-mocha-results:
1510+
expectedResultCount: 1
1511+
- store_test_results:
1512+
path: /tmp/cypress
1513+
- store-npm-logs
1514+
14881515
server-integration-tests:
14891516
<<: *defaults
14901517
parallelism: 1
@@ -2577,6 +2604,7 @@ linux-x64-workflow: &linux-x64-workflow
25772604
context:
25782605
- test-runner:upload
25792606
- test-runner:commit-status-checks
2607+
- test-runner:build-binary
25802608
requires:
25812609
- build
25822610
# various testing scenarios, like building full binary
@@ -2677,6 +2705,7 @@ linux-arm64-workflow: &linux-arm64-workflow
26772705
context:
26782706
- test-runner:upload
26792707
- test-runner:commit-status-checks
2708+
- test-runner:build-binary
26802709
executor: linux-arm64
26812710
resource_class: arm.medium
26822711
requires:
@@ -2694,6 +2723,12 @@ linux-arm64-workflow: &linux-arm64-workflow
26942723
resource_class: arm.medium
26952724
requires:
26962725
- linux-arm64-build
2726+
- server-unit-tests-cloud-environment:
2727+
name: linux-arm64-server-unit-tests-cloud-environment
2728+
executor: linux-arm64
2729+
resource_class: arm.medium
2730+
requires:
2731+
- linux-arm64-build
26972732

26982733
darwin-x64-workflow: &darwin-x64-workflow
26992734
jobs:
@@ -2717,6 +2752,7 @@ darwin-x64-workflow: &darwin-x64-workflow
27172752
- test-runner:sign-mac-binary
27182753
- test-runner:upload
27192754
- test-runner:commit-status-checks
2755+
- test-runner:build-binary
27202756
executor: mac
27212757
resource_class: macos.x86.medium.gen2
27222758
requires:
@@ -2740,6 +2776,12 @@ darwin-x64-workflow: &darwin-x64-workflow
27402776
resource_class: macos.x86.medium.gen2
27412777
requires:
27422778
- darwin-x64-build
2779+
- server-unit-tests-cloud-environment:
2780+
name: darwin-x64-driver-server-unit-tests-cloud-environment
2781+
executor: mac
2782+
resource_class: macos.x86.medium.gen2
2783+
requires:
2784+
- darwin-x64-build
27432785

27442786
darwin-arm64-workflow: &darwin-arm64-workflow
27452787
jobs:
@@ -2762,6 +2804,7 @@ darwin-arm64-workflow: &darwin-arm64-workflow
27622804
- test-runner:sign-mac-binary
27632805
- test-runner:upload
27642806
- test-runner:commit-status-checks
2807+
- test-runner:build-binary
27652808
executor: darwin-arm64
27662809
resource_class: cypress-io/latest_m1
27672810
requires:
@@ -2779,6 +2822,12 @@ darwin-arm64-workflow: &darwin-arm64-workflow
27792822
resource_class: cypress-io/latest_m1
27802823
requires:
27812824
- darwin-arm64-build
2825+
- server-unit-tests-cloud-environment:
2826+
name: darwin-arm64-server-unit-tests-cloud-environment
2827+
executor: darwin-arm64
2828+
resource_class: cypress-io/latest_m1
2829+
requires:
2830+
- darwin-arm64-build
27822831

27832832
windows-workflow: &windows-workflow
27842833
jobs:
@@ -2819,6 +2868,13 @@ windows-workflow: &windows-workflow
28192868
requires:
28202869
- windows-build
28212870

2871+
- server-unit-tests-cloud-environment:
2872+
name: windows-server-unit-tests-cloud-environment
2873+
executor: windows
2874+
resource_class: windows.medium
2875+
requires:
2876+
- windows-build
2877+
28222878
- create-build-artifacts:
28232879
name: windows-create-build-artifacts
28242880
executor: windows
@@ -2827,6 +2883,7 @@ windows-workflow: &windows-workflow
28272883
- test-runner:sign-windows-binary
28282884
- test-runner:upload
28292885
- test-runner:commit-status-checks
2886+
- test-runner:build-binary
28302887
requires:
28312888
- windows-build
28322889
- test-binary-against-kitchensink-chrome:

cli/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ _Released 02/28/2023 (PENDING)_
88
- It is now possible to set `hostOnly` cookies with [`cy.setCookie()`](https://docs.cypress.io/api/commands/setcookie) for a given domain. Addresses [#16856](https://github.com/cypress-io/cypress/issues/16856) and [#17527](https://github.com/cypress-io/cypress/issues/17527).
99
- Added a Public API for third party component libraries to define a Framework Definition, embedding their library into the Cypress onboarding workflow. Learn more [here](https://docs.cypress.io/guides/component-testing/third-party-definitions). Implemented in [#25780](https://github.com/cypress-io/cypress/pull/25780) and closes [#25638](https://github.com/cypress-io/cypress/issues/25638).
1010
- Added a Debug Page tutorial slideshow for projects that are not connected to Cypress Cloud. Addresses [#25768](https://github.com/cypress-io/cypress/issues/25768).
11+
- Improved various error message around interactions with the Cypress cloud. Implemented in [#25837](https://github.com/cypress-io/cypress/pull/25837)
1112
- Updated the "new" status badge for the Debug page navigation link to be less noticeable when the navigation is collapsed. Addresses [#25739](https://github.com/cypress-io/cypress/issues/25739).
1213

1314
**Bugfixes:**
1415

16+
- Fixed various bugs when recording to the cloud. Fixed in [#25837](https://github.com/cypress-io/cypress/pull/25837)
1517
- Fixed an issue where cookies were being duplicated with the same hostname, but a prepended dot. Fixed an issue where cookies may not be expiring correctly. Fixes [#25174](https://github.com/cypress-io/cypress/issues/25174), [#25205](https://github.com/cypress-io/cypress/issues/25205) and [#25495](https://github.com/cypress-io/cypress/issues/25495).
1618
- Fixed an issue where cookies weren't being synced when the application was stable. Fixed in [#25855](https://github.com/cypress-io/cypress/pull/25855). Fixes [#25835](https://github.com/cypress-io/cypress/issues/25835).
1719
- Added missing TypeScript type definitions for the [`cy.reload()`](https://docs.cypress.io/api/commands/reload) command. Addressed in [#25779](https://github.com/cypress-io/cypress/pull/25779).

guides/error-handling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ CANNOT_TRASH_ASSETS: (arg1: string) => {
6868
return errTemplate`\
6969
Warning: We failed to trash the existing run results.
7070
71-
This error will not alter the exit code.
71+
This error will not affect or change the exit code.
7272
7373
${details(arg1)}`
7474
},

packages/errors/__snapshot-html__/CANNOT_REMOVE_OLD_BROWSER_PROFILES.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/errors/__snapshot-html__/CANNOT_TRASH_ASSETS.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/errors/__snapshot-html__/CLOUD_API_RESPONSE_FAILED_RETRYING - lastTry.html

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/errors/__snapshot-html__/CLOUD_API_RESPONSE_FAILED_RETRYING.html

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/errors/__snapshot-html__/CLOUD_CANNOT_CREATE_RUN_OR_INSTANCE.html

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/errors/__snapshot-html__/CLOUD_CANNOT_PROCEED_IN_PARALLEL.html

Lines changed: 4 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/errors/__snapshot-html__/CLOUD_CANNOT_PROCEED_IN_SERIAL.html

Lines changed: 4 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/errors/__snapshot-html__/CLOUD_CANNOT_UPLOAD_RESULTS.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/errors/__snapshot-html__/CLOUD_INVALID_RUN_REQUEST.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)