Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: Add e2e-tests-dev task #21546

Merged
merged 16 commits into from
Mar 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 94 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ jobs:
root: .
paths:
- sandbox/*/storybook-static
test-runner-sandboxes:
test-runner-production:
parameters:
parallelism:
type: integer
Expand All @@ -434,6 +434,27 @@ jobs:
template: $(yarn get-template << pipeline.parameters.workflow >> test-runner)
- store_test_results:
path: test-results
test-runner-dev:
parameters:
parallelism:
type: integer
default: 2
executor:
class: large
name: sb_playwright
parallelism: << parameters.parallelism >>
steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
- run:
name: Running Test Runner in Dev mode
command: yarn task --task test-runner-dev --template $(yarn get-template << pipeline.parameters.workflow >> test-runner-dev) --no-link --start-from=never --junit
- report-workflow-on-failure:
template: $(yarn get-template << pipeline.parameters.workflow >> test-runner-dev)
- store_test_results:
path: test-results
chromatic-sandboxes:
parameters:
parallelism:
Expand All @@ -454,7 +475,7 @@ jobs:
template: $(yarn get-template << pipeline.parameters.workflow >> chromatic)
- store_test_results:
path: test-results
e2e-sandboxes:
e2e-production:
parameters:
parallelism:
type: integer
Expand All @@ -478,6 +499,30 @@ jobs:
- store_artifacts: # this is where playwright puts more complex stuff
path: code/playwright-results/
destination: playwright
e2e-dev:
parameters:
parallelism:
type: integer
default: 2
executor:
class: medium
name: sb_playwright
parallelism: << parameters.parallelism >>
steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
- run:
name: Running E2E Tests
command: yarn task --task e2e-tests-dev --template $(yarn get-template << pipeline.parameters.workflow >> e2e-tests-dev) --no-link --start-from=never --junit
- report-workflow-on-failure:
template: $(yarn get-template << pipeline.parameters.workflow >> e2e-tests-dev)
- store_test_results:
path: test-results
- store_artifacts: # this is where playwright puts more complex stuff
path: code/playwright-results/
destination: playwright

workflows:
ci:
Expand All @@ -500,21 +545,31 @@ workflows:
- script-unit-tests:
requires:
- build
- chromatic-internal-storybooks:
requires:
- build
- create-sandboxes:
requires:
- build
- build-sandboxes:
requires:
- create-sandboxes
- test-runner-sandboxes:
- chromatic-sandboxes:
requires:
- build-sandboxes
- chromatic-sandboxes:
- e2e-production:
requires:
- build-sandboxes
- e2e-sandboxes:
- e2e-dev:
requires:
- create-sandboxes
- test-runner-production:
requires:
- build-sandboxes
# TODO: reenable once we find out the source of flakyness
# - test-runner-dev:
# requires:
# - create-sandboxes
pr:
when:
equal: [pr, << pipeline.parameters.workflow >>]
Expand Down Expand Up @@ -553,18 +608,25 @@ workflows:
parallelism: 9
requires:
- create-sandboxes
- test-runner-sandboxes:
- chromatic-sandboxes:
parallelism: 9
requires:
- build-sandboxes
- chromatic-sandboxes:
- e2e-production:
parallelism: 9
requires:
- build-sandboxes
- e2e-sandboxes:
- e2e-dev:
requires:
- create-sandboxes
- test-runner-production:
parallelism: 9
requires:
- build-sandboxes
# TODO: reenable once we find out the source of flakyness
# - test-runner-dev:
# requires:
# - create-sandboxes
merged:
when:
equal: [merged, << pipeline.parameters.workflow >>]
Expand Down Expand Up @@ -603,18 +665,27 @@ workflows:
parallelism: 18
requires:
- create-sandboxes
- test-runner-sandboxes:
- chromatic-sandboxes:
parallelism: 18
requires:
- build-sandboxes
- chromatic-sandboxes:
- e2e-production:
parallelism: 18
requires:
- build-sandboxes
- e2e-sandboxes:
- e2e-dev:
parallelism: 4
requires:
- create-sandboxes
- test-runner-production:
parallelism: 18
requires:
- build-sandboxes
# TODO: reenable once we find out the source of flakyness
# - test-runner-dev:
# parallelism: 4
# requires:
# - create-sandboxes
daily:
when:
equal: [daily, << pipeline.parameters.workflow >>]
Expand All @@ -640,15 +711,24 @@ workflows:
parallelism: 30
requires:
- create-sandboxes
- test-runner-sandboxes:
- chromatic-sandboxes:
parallelism: 30
requires:
- build-sandboxes
- chromatic-sandboxes:
- e2e-production:
parallelism: 30
requires:
- build-sandboxes
- e2e-sandboxes:
- e2e-dev:
parallelism: 4
requires:
- create-sandboxes
- test-runner-production:
parallelism: 30
requires:
- build-sandboxes
# TODO: reenable once we find out the source of flakyness
# - test-runner-dev:
# parallelism: 4
# requires:
# - create-sandboxes
Loading