Skip to content

Commit f2b0cea

Browse files
committed
reconfigure percy parallelism, finalize percy after running visual jobs, remove separate desktop-gui-visual-tests job
1 parent fb8bf35 commit f2b0cea

File tree

1 file changed

+18
-36
lines changed

1 file changed

+18
-36
lines changed

circle.yml

+18-36
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,9 @@ jobs:
740740
command: |
741741
CYPRESS_KONFIG_ENV=production \
742742
CYPRESS_RECORD_KEY=$PACKAGES_RECORD_KEY \
743+
PERCY_PARALLEL_NONCE=$CIRCLE_WORKFLOW_ID \
744+
PERCY_PARALLEL_TOTAL=-1 \
745+
yarn percy exec -- \
743746
yarn cypress:run --record --parallel --group 2x-desktop-gui
744747
working_directory: packages/desktop-gui
745748
- verify-mocha-results
@@ -749,38 +752,6 @@ jobs:
749752
path: /tmp/artifacts
750753
- store-npm-logs
751754

752-
desktop-gui-visual-tests:
753-
<<: *defaults
754-
parallelism: 1
755-
steps:
756-
- attach_workspace:
757-
at: ~/
758-
- run:
759-
command: yarn build-prod
760-
working_directory: packages/desktop-gui
761-
- run:
762-
name: Desktop GUI server
763-
command: yarn start
764-
working_directory: packages/desktop-gui
765-
background: true
766-
- run:
767-
# will use PERCY_TOKEN environment variable if available
768-
# to tie Percy builds together, use environment variables
769-
# https://docs.percy.io/docs/parallel-test-suites
770-
# we can use workflow id and list number of jobs with Percy screenshots
771-
# if we allow Percy snapshots in more jobs, use the same
772-
# PERCY_* variables in all of them
773-
command: |
774-
CYPRESS_KONFIG_ENV=production \
775-
PERCY_PARALLEL_NONCE=$CIRCLE_WORKFLOW_ID \
776-
PERCY_PARALLEL_TOTAL=1 \
777-
yarn percy exec -- \
778-
yarn cypress:run --spec cypress/integration/settings_spec.js,cypress/integration/specs_list_spec.js
779-
working_directory: packages/desktop-gui
780-
- verify-mocha-results
781-
# we don't really need any artifacts - we are only interested in visual screenshots
782-
- store-npm-logs
783-
784755
desktop-gui-component-tests:
785756
<<: *defaults
786757
parallelism: 1
@@ -807,7 +778,7 @@ jobs:
807778
command: |
808779
CYPRESS_KONFIG_ENV=production \
809780
PERCY_PARALLEL_NONCE=$CIRCLE_WORKFLOW_ID \
810-
PERCY_PARALLEL_TOTAL=1 \
781+
PERCY_PARALLEL_TOTAL=-1 \
811782
yarn percy exec -- \
812783
yarn cypress:run --spec 'src/**/*_spec.jsx'
813784
working_directory: packages/desktop-gui
@@ -866,6 +837,13 @@ jobs:
866837
command: node index.js
867838
working_directory: packages/launcher
868839

840+
finalize-percy:
841+
<<: *defaults
842+
steps:
843+
- run:
844+
name: "finalizes percy builds"
845+
command: npx percy finalize --all
846+
869847
build-binary:
870848
<<: *defaults
871849
shell: /bin/bash --login
@@ -1582,9 +1560,6 @@ linux-workflow: &linux-workflow
15821560
- desktop-gui-integration-tests-2x:
15831561
requires:
15841562
- build
1585-
- desktop-gui-visual-tests:
1586-
requires:
1587-
- build
15881563
- desktop-gui-component-tests:
15891564
requires:
15901565
- build
@@ -1597,6 +1572,13 @@ linux-workflow: &linux-workflow
15971572
- run-launcher:
15981573
requires:
15991574
- build
1575+
1576+
- percy-finalize:
1577+
requires:
1578+
- desktop-gui-integration-tests-2x
1579+
- desktop-gui-component-tests
1580+
- cli-visual-tests
1581+
16001582
# various testing scenarios, like building full binary
16011583
# and testing it on a real project
16021584
- test-against-staging:

0 commit comments

Comments
 (0)