Skip to content

Commit

Permalink
Merge pull request #528 from bugsnag/release/v2.10.1
Browse files Browse the repository at this point in the history
Release v2.10.1
  • Loading branch information
yousif-bugsnag authored Nov 12, 2024
2 parents 6bf8145 + 6fbfd02 commit 2d3f196
Show file tree
Hide file tree
Showing 38 changed files with 1,613 additions and 3,195 deletions.
5 changes: 5 additions & 0 deletions .buildkite/browser-pipeline.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ steps:
artifacts#v1.5.0:
upload:
- "./test/browser/maze_output/failed/**/*"
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "BROWSER_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
concurrency: 2
concurrency_group: "browserstack"

Expand Down
10 changes: 10 additions & 0 deletions .buildkite/browser-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ steps:
artifacts#v1.5.0:
upload:
- "./test/browser/maze_output/failed/**/*"
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "BROWSER_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
concurrency: 25
concurrency_group: "bitbar"
matrix:
Expand All @@ -78,6 +83,11 @@ steps:
artifacts#v1.5.0:
upload:
- "./test/browser/maze_output/failed/**/*"
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "BROWSER_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
concurrency: 2
concurrency_group: "browserstack"
matrix:
Expand Down
20 changes: 20 additions & 0 deletions .buildkite/react-native-navigation-pipeline.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ steps:
- --appium-version=1.22
- --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_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down Expand Up @@ -177,6 +182,11 @@ steps:
- --appium-version=1.22
- --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_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down Expand Up @@ -215,6 +225,11 @@ steps:
- --appium-version=1.22
- --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_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down Expand Up @@ -252,6 +267,11 @@ steps:
- --appium-version=1.22
- --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_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down
20 changes: 20 additions & 0 deletions .buildkite/react-native-navigation-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ steps:
- --appium-version=1.22
- --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_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down Expand Up @@ -176,6 +181,11 @@ steps:
- --appium-version=1.22
- --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_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down Expand Up @@ -214,6 +224,11 @@ steps:
- --appium-version=1.22
- --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_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down Expand Up @@ -251,6 +266,11 @@ steps:
- --appium-version=1.22
- --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_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down
20 changes: 20 additions & 0 deletions .buildkite/react-native-pipeline.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ steps:
- --appium-version=1.22
- --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_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down Expand Up @@ -173,6 +178,11 @@ steps:
- --appium-version=1.22
- --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_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
env:
RCT_NEW_ARCH_ENABLED: "1"
retry:
Expand Down Expand Up @@ -207,6 +217,11 @@ steps:
- --appium-version=1.22
- --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_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down Expand Up @@ -240,6 +255,11 @@ steps:
- --appium-version=1.22
- --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_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
env:
RCT_NEW_ARCH_ENABLED: "1"
retry:
Expand Down
20 changes: 20 additions & 0 deletions .buildkite/react-native-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ steps:
- --appium-version=1.22
- --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_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down Expand Up @@ -154,6 +159,11 @@ steps:
- --appium-version=1.22
- --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_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
env:
RCT_NEW_ARCH_ENABLED: "1"
retry:
Expand Down Expand Up @@ -185,6 +195,11 @@ steps:
- --appium-version=1.22
- --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_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
retry:
manual:
permit_on_passed: true
Expand Down Expand Up @@ -214,6 +229,11 @@ steps:
- --appium-version=1.22
- --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_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
env:
RCT_NEW_ARCH_ENABLED: "1"
retry:
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## [v2.10.1] (2024-11-12)

### Fixed

- (react-native) Prevent duplicate app start spans from being started [#524](https://github.com/bugsnag/bugsnag-js-performance/pull/524)

### Changed

- (browser) Update Span and Trace ID generator code to allow for modified `Array.from` API [#518](https://github.com/bugsnag/bugsnag-js-performance/pull/518)

## [v2.10.0] (2024-09-26)

### Added
Expand Down
34 changes: 28 additions & 6 deletions bin/generate-react-native-fixture
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ const DEPENDENCIES = [
`react-native-file-access@${reactNativeFileAccessVersion}`
]

const reactNavigationVersion = parseFloat(reactNativeVersion) <= 0.64 ? '6.1.18' : 'latest'
const reactNavigationNativeStackVersion = parseFloat(reactNativeVersion) <= 0.64 ? '6.11.0' : 'latest'
const reactNativeScreensVersion = parseFloat(reactNativeVersion) <= 0.64 ? '3.14.0' : 'latest'
const reactNativeSafeAreaContextVersion = parseFloat(reactNativeVersion) <= 0.64 ? '4.1.0' : 'latest'
const reactNavigationVersion = '6.1.18'
const reactNavigationNativeStackVersion = '6.11.0'
const reactNativeScreensVersion = parseFloat(reactNativeVersion) <= 0.64 ? '3.14.0' : '3.35.0'
const reactNativeSafeAreaContextVersion = parseFloat(reactNativeVersion) <= 0.64 ? '4.1.0' : '4.14.0'
const REACT_NAVIGATION_DEPENDENCIES = [
`@react-navigation/native@${reactNavigationVersion}`,
`@react-navigation/native-stack@${reactNavigationNativeStackVersion}`,
Expand Down Expand Up @@ -98,7 +98,7 @@ if (!process.env.SKIP_GENERATE_FIXTURE) {
}

// create the test fixture
const RNInitArgs = ['@react-native-community/cli@latest', 'init', 'reactnative', '--package-name', 'com.bugsnag.fixtures.reactnative.performance', '--directory', fixtureDir, '--version', reactNativeVersion, '--npm', '--skip-install']
const RNInitArgs = ['@react-native-community/cli@latest', 'init', 'reactnative', '--package-name', 'com.bugsnag.fixtures.reactnative.performance', '--directory', fixtureDir, '--version', reactNativeVersion, '--pm', 'npm', '--skip-install']
execFileSync('npx', RNInitArgs, { stdio: 'inherit' })

replaceGeneratedFixtureFiles()
Expand Down Expand Up @@ -127,7 +127,8 @@ if (process.env.BUILD_IOS === 'true' || process.env.BUILD_IOS === '1') {
fs.rmSync(`${fixtureDir}/reactnative.xcarchive`, { recursive: true, force: true })

// install pods
execFileSync('pod', ['install'], { cwd: `${fixtureDir}/ios`, stdio: 'inherit' })
execFileSync('bundle', ['install'], { cwd: `${fixtureDir}/ios`, stdio: 'inherit' })
execFileSync('bundle', ['exec', 'pod', 'install'], { cwd: `${fixtureDir}/ios`, stdio: 'inherit' })

// build the iOS app
const archiveArgs = [
Expand Down Expand Up @@ -222,6 +223,9 @@ function configureRN064Fixture(fixtureDir) {
let yogaCpp = fs.readFileSync(yogaCppPath, 'utf8')
yogaCpp = yogaCpp.replace('node->getLayout().hadOverflow() |', 'node->getLayout().hadOverflow() ||')
fs.writeFileSync(yogaCppPath, yogaCpp)

// copy gemfile
fs.copyFileSync(resolve(ROOT_DIR, 'test/react-native/features/fixtures/app/Gemfile'), resolve(fixtureDir, 'Gemfile'))
}

/** Pack and install local packages from this repo */
Expand Down Expand Up @@ -302,4 +306,22 @@ function replaceGeneratedFixtureFiles() {
resolve(fixtureDir, `android/app/src/main/java/com/bugsnag/fixtures/reactnative/performance/MainActivity.${fileExtension}`)
)
}

// disable Flipper
let podfileContents = fs.readFileSync(`${fixtureDir}/ios/Podfile`, 'utf8')
if (podfileContents.includes('use_flipper!')) {
podfileContents = podfileContents.replace(/use_flipper!/, '# use_flipper!')
} else if (podfileContents.includes(':flipper_configuration')) {
podfileContents = podfileContents.replace(/:flipper_configuration/, '# :flipper_configuration')
}

fs.writeFileSync(`${fixtureDir}/ios/Podfile`, podfileContents)

// pin xcodeproj version to < 1.26.0
const gemfilePath = resolve(fixtureDir, 'Gemfile')
if (fs.existsSync(gemfilePath)) {
let gemfileContents = fs.readFileSync(gemfilePath, 'utf8')
gemfileContents += `\ngem 'xcodeproj', '< 1.26.0'`
fs.writeFileSync(gemfilePath, gemfileContents)
}
}
19 changes: 9 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ x-common-environment: &common-environment
MAZE_ASPECTO_REPEATER_API_KEY:
MAZE_BUGSNAG_API_KEY:
MAZE_REPEATER_API_KEY:
MAZE_NO_FAIL_FAST:

services:
license-finder:
Expand All @@ -40,8 +41,6 @@ services:
BITBAR_ACCESS_KEY:
HOST: "${HOST:-maze-runner}"
API_HOST: "${API_HOST:-maze-runner}"
env_file:
- ${DOCKER_ENV_FILE:-test/browser/features/fixtures/null_env}
networks:
default:
aliases:
Expand All @@ -52,6 +51,7 @@ services:
volumes:
- ./test/browser/maze_output:/app/test/browser/maze_output
- /var/run/docker.sock:/var/run/docker.sock
- ./reports/:/app/test/browser/reports/

browser-maze-runner-bs:
build:
Expand All @@ -62,18 +62,17 @@ services:
USE_CDN_BUILD:
environment: &browser-maze-runner-environment
<<: *common-environment
BROWSER_STACK_BROWSERS_USERNAME:
BROWSER_STACK_BROWSERS_ACCESS_KEY:
BROWSER_STACK_USERNAME:
BROWSER_STACK_ACCESS_KEY:
HOST: "${HOST:-maze-runner}"
API_HOST: "${API_HOST:-maze-runner}"
env_file:
- ${DOCKER_ENV_FILE:-test/browser/features/fixtures/null_env}
networks:
default:
aliases:
- maze-runner
volumes:
- ./test/browser/maze_output:/app/test/browser/maze_output
- ./reports/:/app/test/browser/reports/

browser-maze-runner-legacy:
build:
Expand All @@ -84,17 +83,16 @@ services:
USE_CDN_BUILD:
environment:
<<: *common-environment
BROWSER_STACK_BROWSERS_USERNAME:
BROWSER_STACK_BROWSERS_ACCESS_KEY:
BROWSER_STACK_USERNAME:
BROWSER_STACK_ACCESS_KEY:
USE_LEGACY_DRIVER: 1
env_file:
- ${DOCKER_ENV_FILE:-test/browser/features/fixtures/null_env}
networks:
default:
aliases:
- maze-runner
volumes:
- ./test/browser/maze_output:/app/test/browser/maze_output
- ./reports/:/app/test/browser/reports/

react-native-maze-runner:
image: 855461928731.dkr.ecr.us-west-1.amazonaws.com/maze-runner-releases:latest-v9-cli
Expand All @@ -115,6 +113,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

release:
build:
Expand Down
1 change: 0 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useWorkspaces": true,
"version": "2.10.0"
}
Loading

0 comments on commit 2d3f196

Please sign in to comment.