mirror of
https://github.com/nasa/openmct.git
synced 2025-06-11 03:41:37 +00:00
[CI] Parallelize visual test runs (#7618)
* rename suite and add parallelism * use test sharding * expect 2 parallel runs --------- Co-authored-by: Scott Bell <scott@traclabs.com>
This commit is contained in:
parent
b2b0837592
commit
42085a4b70
@ -10,6 +10,7 @@ executors:
|
|||||||
NODE_ENV: development # Needed to ensure 'dist' folder created and devDependencies installed
|
NODE_ENV: development # Needed to ensure 'dist' folder created and devDependencies installed
|
||||||
PERCY_POSTINSTALL_BROWSER: "true" # Needed to store the percy browser in cache deps
|
PERCY_POSTINSTALL_BROWSER: "true" # Needed to store the percy browser in cache deps
|
||||||
PERCY_LOGLEVEL: "debug" # Enable DEBUG level logging for Percy (Issue: https://github.com/nasa/openmct/issues/5742)
|
PERCY_LOGLEVEL: "debug" # Enable DEBUG level logging for Percy (Issue: https://github.com/nasa/openmct/issues/5742)
|
||||||
|
PERCY_PARALLEL_TOTAL: 2
|
||||||
ubuntu:
|
ubuntu:
|
||||||
machine:
|
machine:
|
||||||
image: ubuntu-2204:current
|
image: ubuntu-2204:current
|
||||||
@ -220,15 +221,20 @@ jobs:
|
|||||||
equal: [42, 42] # Always run codecov reports regardless of test failure https://discuss.circleci.com/t/make-custom-command-run-always-with-when-always/38957/2
|
equal: [42, 42] # Always run codecov reports regardless of test failure https://discuss.circleci.com/t/make-custom-command-run-always-with-when-always/38957/2
|
||||||
steps:
|
steps:
|
||||||
- generate_and_store_version_and_filesystem_artifacts
|
- generate_and_store_version_and_filesystem_artifacts
|
||||||
visual-a11y-tests:
|
visual-a11y:
|
||||||
parameters:
|
parameters:
|
||||||
suite:
|
suite:
|
||||||
type: string # ci or full
|
type: string # ci or full
|
||||||
executor: pw-focal-development
|
executor: pw-focal-development
|
||||||
|
parallelism: 2
|
||||||
steps:
|
steps:
|
||||||
- build_and_install:
|
- build_and_install:
|
||||||
node-version: lts/hydrogen
|
node-version: lts/iron
|
||||||
- run: npm run test:e2e:visual:<<parameters.suite>>
|
- run:
|
||||||
|
command: |
|
||||||
|
mkdir test-results
|
||||||
|
TESTFILES=$(circleci tests glob "e2e/**/*.spec.js")
|
||||||
|
echo "$TESTFILES" | circleci tests run --command="xargs npm run test:e2e:visual:<<parameters.suite>>" --verbose --split-by=timings
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: test-results/results.xml
|
path: test-results/results.xml
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
@ -254,8 +260,8 @@ workflows:
|
|||||||
name: e2e-stable
|
name: e2e-stable
|
||||||
suite: stable
|
suite: stable
|
||||||
- e2e-mobile
|
- e2e-mobile
|
||||||
- visual-a11y-tests:
|
- visual-a11y:
|
||||||
name: visual-a11y-test-ci
|
name: visual-a11y-ci
|
||||||
suite: ci
|
suite: ci
|
||||||
|
|
||||||
the-nightly: #These jobs do not run on PRs, but against master at night
|
the-nightly: #These jobs do not run on PRs, but against master at night
|
||||||
@ -274,8 +280,8 @@ workflows:
|
|||||||
- e2e-mobile
|
- e2e-mobile
|
||||||
- perf-test
|
- perf-test
|
||||||
- mem-test
|
- mem-test
|
||||||
- visual-a11y-tests:
|
- visual-a11y:
|
||||||
name: visual-a11y-test-nightly
|
name: visual-a11y-nightly
|
||||||
suite: full
|
suite: full
|
||||||
- e2e-couchdb
|
- e2e-couchdb
|
||||||
triggers:
|
triggers:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user