Skip to content

Commit

Permalink
Add buildkite analytics test collection to react and react-native e2e…
Browse files Browse the repository at this point in the history
… tests (bugsnag#2213)

* Add analytics test collection to react-native tests

* Add test collection for buildkite analytics to react-native-cli tests

* Re-add maze-options in pipeline files

* Use correct reports path

* Use correct reports path

* Remove BB only options from react-native builds
  • Loading branch information
Cawllec authored Oct 8, 2024
1 parent 456777b commit 57f0114
Show file tree
Hide file tree
Showing 10 changed files with 140 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .buildkite/basic/react-native-android-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ steps:
- --fail-fast
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down Expand Up @@ -106,6 +111,11 @@ steps:
- --fail-fast
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down
10 changes: 10 additions & 0 deletions .buildkite/basic/react-native-ios-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ steps:
- --fail-fast
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down Expand Up @@ -107,6 +112,11 @@ steps:
- --fail-fast
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
env:
RCT_NEW_ARCH_ENABLED: "1"
RN_VERSION: "{{matrix}}"
Expand Down
40 changes: 40 additions & 0 deletions .buildkite/full/react-native-android-pipeline.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ steps:
- --fail-fast
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
env:
SKIP_NAVIGATION_SCENARIOS: "true"
concurrency: 25
Expand Down Expand Up @@ -248,6 +253,11 @@ steps:
- --fail-fast
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
env:
SKIP_NAVIGATION_SCENARIOS: "true"
HERMES: "true"
Expand Down Expand Up @@ -277,6 +287,11 @@ steps:
- --fail-fast
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
env:
SKIP_NAVIGATION_SCENARIOS: "true"
HERMES: "true"
Expand Down Expand Up @@ -306,6 +321,11 @@ steps:
- --fail-fast
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
env:
SKIP_NAVIGATION_SCENARIOS: "true"
HERMES: "true"
Expand Down Expand Up @@ -333,6 +353,11 @@ steps:
- --fail-fast
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down Expand Up @@ -370,6 +395,11 @@ steps:
- --fail-fast
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down Expand Up @@ -405,6 +435,11 @@ steps:
- --no-tunnel
- --aws-public-ip
- features/react-native-navigation.feature
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down Expand Up @@ -440,6 +475,11 @@ steps:
- --no-tunnel
- --aws-public-ip
- features/react-native-navigation.feature
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down
30 changes: 30 additions & 0 deletions .buildkite/full/react-native-cli-pipeline.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ steps:
- --no-tunnel
- --aws-public-ip
- features/run-app-tests
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_CLI_BUILDKITE_ANALYTICS_TOKEN"
concurrency: 25
concurrency_group: 'bitbar'
concurrency_method: eager
Expand All @@ -187,6 +192,11 @@ steps:
- --no-tunnel
- --aws-public-ip
- features/run-app-tests
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_CLI_BUILDKITE_ANALYTICS_TOKEN"
concurrency: 25
concurrency_group: 'bitbar'
concurrency_method: eager
Expand All @@ -213,6 +223,11 @@ steps:
- --no-tunnel
- --aws-public-ip
- features/run-app-tests
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_CLI_BUILDKITE_ANALYTICS_TOKEN"
concurrency: 25
concurrency_group: 'bitbar'
concurrency_method: eager
Expand All @@ -237,6 +252,11 @@ steps:
- --device=IOS_14
- --a11y-locator
- features/run-app-tests
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_CLI_BUILDKITE_ANALYTICS_TOKEN"
concurrency: 5
concurrency_group: "browserstack-app"
concurrency_method: eager
Expand All @@ -258,6 +278,11 @@ steps:
- --device=IOS_14
- --a11y-locator
- features/run-app-tests
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_CLI_BUILDKITE_ANALYTICS_TOKEN"
concurrency: 5
concurrency_group: "browserstack-app"
concurrency_method: eager
Expand All @@ -279,6 +304,11 @@ steps:
- --device=IOS_14
- --a11y-locator
- features/run-app-tests
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_CLI_BUILDKITE_ANALYTICS_TOKEN"
concurrency: 5
concurrency_group: "browserstack-app"
concurrency_method: eager
40 changes: 40 additions & 0 deletions .buildkite/full/react-native-ios-pipeline.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ steps:
- --fail-fast
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
env:
SKIP_NAVIGATION_SCENARIOS: "true"
concurrency: 25
Expand All @@ -225,6 +230,11 @@ steps:
- --fail-fast
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
env:
SKIP_NAVIGATION_SCENARIOS: "true"
HERMES: "true"
Expand Down Expand Up @@ -252,6 +262,11 @@ steps:
- --fail-fast
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
env:
SKIP_NAVIGATION_SCENARIOS: "true"
HERMES: "true"
Expand Down Expand Up @@ -279,6 +294,11 @@ steps:
- --fail-fast
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
env:
SKIP_NAVIGATION_SCENARIOS: "true"
HERMES: "true"
Expand All @@ -305,6 +325,11 @@ steps:
- --fail-fast
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down Expand Up @@ -338,6 +363,11 @@ steps:
- --fail-fast
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
env:
RCT_NEW_ARCH_ENABLED: "1"
RN_VERSION: "{{matrix}}"
Expand Down Expand Up @@ -375,6 +405,11 @@ steps:
- --no-tunnel
- --aws-public-ip
- features/react-native-navigation.feature
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down Expand Up @@ -411,6 +446,11 @@ steps:
# - --no-tunnel
# - --aws-public-ip
# - features/react-native-navigation.feature
# test-collector#v1.10.2:
# files: "reports/TEST-*.xml"
# format: "junit"
# branch: "^main|next$$"
# api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
# env:
# RCT_NEW_ARCH_ENABLED: "1"
# RN_VERSION: "{{matrix}}"
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ services:
- ./test/react-native/features/:/app/features
- ./test/react-native/maze_output:/app/maze_output
- /var/run/docker.sock:/var/run/docker.sock
- ./reports/:/app/reports

react-native-cli-maze-runner:
image: 855461928731.dkr.ecr.us-west-1.amazonaws.com/maze-runner-releases:latest-v9-cli
Expand All @@ -207,6 +208,7 @@ services:
- ./test/react-native-cli/features/:/app/features/
- ./test/react-native-cli/maze_output:/app/maze_output
- /var/run/docker.sock:/var/run/docker.sock
- ./reports/:/app/reports

release:
build:
Expand Down
1 change: 1 addition & 0 deletions test/react-native-cli/features/support/maze.all.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--a11y-locator
3 changes: 3 additions & 0 deletions test/react-native-cli/features/support/maze.buildkite.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--format=junit
--out=reports
--format=pretty
1 change: 1 addition & 0 deletions test/react-native/features/support/maze.all.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--a11y-locator
3 changes: 3 additions & 0 deletions test/react-native/features/support/maze.buildkite.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--format=junit
--out=reports
--format=pretty

0 comments on commit 57f0114

Please sign in to comment.