mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[APM] Limit cypress recording only when apm:cypress-record
label is applied to the PR (#152099)
Part of https://github.com/elastic/kibana/issues/150682 run cypress recording PRs that have the label `apm:cypress-record` any ideas about the label/naming are welcome :D --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
f688b37c89
commit
09902b1055
2 changed files with 5 additions and 3 deletions
|
@ -12,8 +12,8 @@ APM_CYPRESS_RECORD_KEY="$(retry 5 5 vault read -field=CYPRESS_RECORD_KEY secret/
|
|||
export JOB=kibana-apm-cypress
|
||||
IS_FLAKY_TEST_RUNNER=${CLI_COUNT:-0}
|
||||
|
||||
# Disable parallel tests and dashboard recording when running them in the flaky test runner
|
||||
if [[ "$IS_FLAKY_TEST_RUNNER" -ne 1 ]]; then
|
||||
#Enabling cypress dashboard recording when PR is labeled with `apm:cypress-record` and we are not using the flaky test runner
|
||||
if [[ "$IS_FLAKY_TEST_RUNNER" -ne 1 ]] && is_pr_with_label "apm:cypress-record"; then
|
||||
CYPRESS_ARGS="--record --key "$APM_CYPRESS_RECORD_KEY" --parallel --ci-build-id "${BUILDKITE_BUILD_ID}""
|
||||
else
|
||||
CYPRESS_ARGS=""
|
||||
|
|
|
@ -72,7 +72,9 @@ node x-pack/plugins/apm/scripts/test/api --runner --basic --updateSnapshots
|
|||
|
||||
The E2E tests are located in [`x-pack/plugins/apm/ftr_e2e`](../ftr_e2e).
|
||||
|
||||
Test runs are recorded to the [Cypress Dashboard](https://dashboard.cypress.io). Tests run on buildkite PR pipeline are parallelized (4 parallel jobs) and are orchestrated by the Cypress dashboard service. It can be configured in [.buildkite/pipelines/pull_request/apm_cypress.yml](https://github.com/elastic/kibana/blob/main/.buildkite/pipelines/pull_request/apm_cypress.yml) with the property `parallelism`.
|
||||
When PR is labeled with `apm:cypress-record`, test runs are recorded to the [Cypress Dashboard](https://dashboard.cypress.io).
|
||||
|
||||
Tests run on buildkite PR pipeline are parallelized (4 parallel jobs) and are orchestrated by the Cypress dashboard service. It can be configured in [.buildkite/pipelines/pull_request/apm_cypress.yml](https://github.com/elastic/kibana/blob/main/.buildkite/pipelines/pull_request/apm_cypress.yml) with the property `parallelism`.
|
||||
|
||||
```yml
|
||||
...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue