Skip to content

Commit

Permalink
ci: run e2e-react manually [INFENG-676] (#9310)
Browse files Browse the repository at this point in the history
  • Loading branch information
JComins000 authored May 6, 2024
1 parent 9cab46d commit f9a35d9
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ parameters:
params_basename:
type: string
default: params.json
ee:
type: boolean
default: false
e2e-react:
type: string
default: ""

all-filters: &all-filters
branches:
Expand Down
45 changes: 43 additions & 2 deletions .circleci/real_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ parameters:
do_nightly_tests:
type: boolean
default: false
ee:
type: boolean
default: false
e2e-react:
type: string
default: ""

release-and-rc-filters: &release-and-rc-filters
branches:
Expand Down Expand Up @@ -101,6 +107,11 @@ any-fork: &any-fork
only:
- /pull\/.*/

do-not-run-on-manual-trigger: &do-not-run-on-manual-trigger
unless:
equal: [ api, << pipeline.trigger_source >> ]


commands:
fix-circle-working-directory:
description: "Fix CIRCLE_WORKING_DIRECTORY"
Expand Down Expand Up @@ -1969,6 +1980,9 @@ jobs:
ee:
type: boolean
default: false
playwright-options:
type: string
default: ""
machine:
image: <<pipeline.parameters.machine-image>>
resource_class: xlarge
Expand Down Expand Up @@ -2009,7 +2023,7 @@ jobs:
- run:
environment:
PW_EE: << parameters.ee >>
command: npm run e2e --prefix webui/react
command: npm run e2e --prefix webui/react -- << parameters.playwright-options >>
- store_artifacts:
path: webui/react/src/e2e/playwright-report
- store_artifacts:
Expand Down Expand Up @@ -3998,6 +4012,7 @@ jobs:
workflows:
lint:
<<: *do-not-run-on-manual-trigger
jobs:
- build-proto
- check-py-bindings:
Expand All @@ -4014,6 +4029,7 @@ workflows:
- lint-secrets

previews:
<<: *do-not-run-on-manual-trigger
jobs:
- build-proto
- build-helm
Expand All @@ -4028,6 +4044,7 @@ workflows:
filters: *any-upstream

test-cli:
<<: *do-not-run-on-manual-trigger
jobs:
- test-cli:
matrix:
Expand All @@ -4037,6 +4054,7 @@ workflows:
- "python-39"
- "win/default"
test-unit:
<<: *do-not-run-on-manual-trigger
jobs:
- test-unit-react
- test-unit-harness-cpu
Expand Down Expand Up @@ -4081,6 +4099,7 @@ workflows:
- test-unit-storage

test-go:
<<: *do-not-run-on-manual-trigger
jobs:
- test-intg-master:
context: storage-unit-tests
Expand All @@ -4097,6 +4116,7 @@ workflows:
- go-coverage

package-and-deploy-oss:
<<: *do-not-run-on-manual-trigger
jobs:
# These jobs are important for docs and latest main and have been moved
# here from test-e2e. These jobs are OSS focused while test-e2e now only
Expand Down Expand Up @@ -4192,6 +4212,7 @@ workflows:
compute-agent-instance-type: t2.medium

test-e2e:
<<: *do-not-run-on-manual-trigger
jobs:
- build-proto
- build-helm
Expand Down Expand Up @@ -4778,7 +4799,10 @@ workflows:
- package-and-push-system-dev-ee

test-e2e-gke-shared-cluster:
unless: << pipeline.parameters.do_nightly_tests >>
unless:
or:
- << pipeline.parameters.do_nightly_tests >>
- equal: [ api, << pipeline.trigger_source >> ]
jobs:
- package-and-push-system-dev-small

Expand All @@ -4794,6 +4818,7 @@ workflows:
test-type: cpu

test-e2e-longrunning:
<<: *do-not-run-on-manual-trigger
jobs:
# Build and publish artifacts used in tests
- build-helm:
Expand Down Expand Up @@ -5575,6 +5600,22 @@ workflows:
- terminate-vpc-circleci:
context: ["gcp"]

manual-e2e-react:
when: << pipeline.parameters.e2e-react >>
jobs:
- build-go:
name: build-go
ee: << pipeline.parameters.ee >>
context: github-read
- test-e2e-react:
ee: << pipeline.parameters.ee >>
playwright-options: << pipeline.parameters.e2e-react >>
requires:
- build-go
context:
- playwright
- github-read

release:
jobs:
- build-helm:
Expand Down

0 comments on commit f9a35d9

Please sign in to comment.