Skip to content

Commit f0628ca

Browse files
committed
Merge branch 'main' into antonis/bump-runners-to-macos-15
2 parents 100b740 + 3401245 commit f0628ca

File tree

79 files changed

+1664
-646
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+1664
-646
lines changed

.github/workflows/danger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ name: Danger
22

33
on:
44
pull_request:
5-
types: [opened, synchronize, reopened, edited, ready_for_review]
5+
types: [opened, synchronize, reopened, edited, ready_for_review, labeled, unlabeled]
66

77
jobs:
88
danger:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: getsentry/github-workflows/danger@17cc15eb58ea3687cd8f2714a4192dcee4aa09ef
1212
with:
13-
extra-dangerfile: scripts/check-replay-stubs.js
13+
extra-dangerfile: scripts/check-additional-danger.js
1414
extra-install-packages: "curl unzip openjdk-17-jre-headless"

.github/workflows/e2e-v2.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,28 @@ on:
77
- v5
88
- release/**
99
pull_request:
10+
types: [opened, synchronize, reopened, labeled]
1011

1112
concurrency:
1213
group: ${{ github.workflow }}-${{ github.ref }}
1314
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1415

1516
env:
1617
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
17-
MAESTRO_VERSION: '2.0.9'
18+
MAESTRO_VERSION: '2.0.10'
1819
IOS_DEVICE: 'iPhone 16'
1920
IOS_VERSION: '18.1'
2021

2122
jobs:
23+
ready-to-merge-gate:
24+
name: Ready-to-merge gate
25+
uses: ./.github/workflows/ready-to-merge-workflow.yml
26+
with:
27+
is-pr: ${{ github.event_name == 'pull_request' }}
28+
labels: ${{ toJson(github.event.pull_request.labels) }}
29+
2230
diff_check:
31+
needs: [ready-to-merge-gate]
2332
uses: ./.github/workflows/skip-ci.yml
2433
auth_token_check:
2534
uses: ./.github/workflows/skip-ci-noauth.yml
@@ -374,7 +383,7 @@ jobs:
374383

375384
- name: Run tests on Android
376385
if: ${{ matrix.platform == 'android' }}
377-
uses: reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed # pin@v2.34.0
386+
uses: reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b # pin@v2.35.0
378387
with:
379388
api-level: 30
380389
force-avd-creation: false

.github/workflows/native-tests.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,22 @@ on:
77
- v5
88
- release/**
99
pull_request:
10-
10+
types: [opened, synchronize, reopened, labeled]
11+
1112
concurrency:
1213
group: ${{ github.workflow }}-${{ github.ref }}
1314
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1415

1516
jobs:
17+
ready-to-merge-gate:
18+
name: Ready-to-merge gate
19+
uses: ./.github/workflows/ready-to-merge-workflow.yml
20+
with:
21+
is-pr: ${{ github.event_name == 'pull_request' }}
22+
labels: ${{ toJson(github.event.pull_request.labels) }}
23+
1624
diff_check:
25+
needs: [ready-to-merge-gate]
1726
uses: ./.github/workflows/skip-ci.yml
1827

1928
test-ios:
@@ -88,7 +97,7 @@ jobs:
8897
sudo udevadm trigger --name-match=kvm
8998
9099
- name: Run connected tests
91-
uses: reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed #pin@v2.34.0
100+
uses: reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b #pin@v2.35.0
92101
with:
93102
working-directory: packages/core/RNSentryAndroidTester
94103
api-level: 30
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Ready to Merge Workflow
2+
on:
3+
workflow_call:
4+
inputs:
5+
labels:
6+
description: The GitHub event's labels
7+
required: true
8+
type: string
9+
is-pr:
10+
description: Whether the workflow is running on a PR
11+
required: true
12+
type: boolean
13+
14+
jobs:
15+
ready-to-merge-gate:
16+
name: 'Missing "ready-to-merge" label'
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Check for exact 'ready-to-merge' label
20+
if: ${{ inputs.is-pr }}
21+
id: check-label
22+
run: |
23+
# Use jq to check for exact label match (avoids substring matching issues with contains())
24+
if echo '${{ inputs.labels }}' | jq -e '.[] | select(.name == "ready-to-merge")' > /dev/null; then
25+
echo "label_found=true" >> $GITHUB_OUTPUT
26+
else
27+
echo "label_found=false" >> $GITHUB_OUTPUT
28+
fi
29+
# Since Github also accepts `skipped` results for Required Workflows, we need
30+
# to fail the job to ensure that the downstream jobs don't just skip.
31+
- name: Fail until the 'ready-to-merge' label is present
32+
if: ${{ inputs.is-pr && steps.check-label.outputs.label_found == 'false' }}
33+
run: |
34+
echo "Add the 'ready-to-merge' label to run CI."
35+
exit 1
36+
- name: Gate passed
37+
if: ${{ inputs.is-pr && steps.check-label.outputs.label_found == 'true' }}
38+
run: echo "Label present. Proceeding with CI."
39+
- name: Gate passed
40+
if: ${{ !inputs.is-pr }}
41+
run: echo "Not a PR. Proceeding with CI."

.github/workflows/sample-application-expo.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
- v5
88
pull_request:
9+
types: [opened, synchronize, reopened, labeled]
910

1011
concurrency:
1112
group: ${{ github.workflow }}-${{ github.ref }}
@@ -16,7 +17,15 @@ env:
1617
RN_SENTRY_POD_NAME: RNSentry
1718

1819
jobs:
20+
ready-to-merge-gate:
21+
name: Ready-to-merge gate
22+
uses: ./.github/workflows/ready-to-merge-workflow.yml
23+
with:
24+
is-pr: ${{ github.event_name == 'pull_request' }}
25+
labels: ${{ toJson(github.event.pull_request.labels) }}
26+
1927
diff_check:
28+
needs: [ready-to-merge-gate]
2029
uses: ./.github/workflows/skip-ci.yml
2130

2231
build:

.github/workflows/sample-application.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ on:
66
- main
77
- v5
88
pull_request:
9+
types: [opened, synchronize, reopened, labeled]
910

1011
concurrency:
1112
group: ${{ github.workflow }}-${{ github.ref }}
1213
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1314

1415
env:
1516
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
16-
MAESTRO_VERSION: '2.0.9'
17+
MAESTRO_VERSION: '2.0.10'
1718
RN_SENTRY_POD_NAME: RNSentry
1819
IOS_APP_ARCHIVE_PATH: sentry-react-native-sample.app.zip
1920
ANDROID_APP_ARCHIVE_PATH: sentry-react-native-sample.apk.zip
@@ -23,7 +24,15 @@ env:
2324
ANDROID_API_LEVEL: '30'
2425

2526
jobs:
27+
ready-to-merge-gate:
28+
name: Ready-to-merge gate
29+
uses: ./.github/workflows/ready-to-merge-workflow.yml
30+
with:
31+
is-pr: ${{ github.event_name == 'pull_request' }}
32+
labels: ${{ toJson(github.event.pull_request.labels) }}
33+
2634
diff_check:
35+
needs: [ready-to-merge-gate]
2736
uses: ./.github/workflows/skip-ci.yml
2837

2938
build:
@@ -303,7 +312,7 @@ jobs:
303312

304313
- name: Run Android Tests on API ${{ env.ANDROID_API_LEVEL }}
305314
if: ${{ matrix.platform == 'android' }}
306-
uses: reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed # pin@v2.34.0
315+
uses: reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b # pin@v2.35.0
307316
with:
308317
api-level: ${{ env.ANDROID_API_LEVEL }}
309318
force-avd-creation: false

.github/workflows/skip-ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,21 @@ jobs:
4545
if: steps.check-pr.outputs.is-pr == 'true'
4646
id: check_diff
4747
run: |
48-
skipList=(".github/CODEOWNERS" ".prettierignore")
48+
skipList=(".github/CODEOWNERS" ".prettierignore" ".github/workflows/update-deps.yml" ".github/workflows/skip-ci.yml")
49+
skipRegList=("(.*/)?\.gitignore" "\.github/ISSUE_TEMPLATE.*")
50+
51+
for s in "${skipRegList[@]}"; do
52+
skipRegex+="$s|"
53+
done
54+
# Remove trailing |
55+
skipRegex=${skipRegex%|}
56+
4957
# Ignores changelog.md, readme.md,...
5058
fileChangesArray=($(git diff --name-only "$BASE_REF...$HEAD_REF" | grep -v '\.md$' || true))
5159
printf '%s\n' "${fileChangesArray[@]}"
5260
for item in "${fileChangesArray[@]}"
5361
do
54-
if [[ ! " ${skipList[@]} " =~ " ${item} " ]]; then
62+
if [[ ! " ${skipList[*]} " =~ " ${item} " ]] && [[ ! "${item}" =~ ^(${skipRegex})$ ]]; then
5563
echo "found '${item}' that doesn't belong to the skip list."
5664
exit 0
5765
fi

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,6 @@ node_modules.bak
9494

9595
# SwiftLint
9696
swiftlint/*
97+
98+
# Sample app
99+
samples/*/.env

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.4.7

CHANGELOG.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,43 @@
88
99
## Unreleased
1010

11+
### Features
12+
13+
- Added `logsOrigin` to Sentry Options ([#5354](https://github.com/getsentry/sentry-react-native/pull/5354))
14+
- You can now choose which logs are captured: 'native' for logs from native code only, 'js' for logs from the JavaScript layer only, or 'all' for both layers.
15+
- Takes effect only if `enableLogs` is `true` and defaults to 'all', preserving previous behavior.
16+
17+
### Dependencies
18+
19+
- Bump JavaScript SDK from v10.24.0 to v10.25.0 ([#5362](https://github.com/getsentry/sentry-react-native/pull/5362))
20+
- [changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#10250)
21+
- [diff](https://github.com/getsentry/sentry-javascript/compare/10.24.0...10.25.0)
22+
- Bump CLI from v2.58.0 to v2.58.2 ([#5363](https://github.com/getsentry/sentry-react-native/pull/5363), [#5371](https://github.com/getsentry/sentry-react-native/pull/5371))
23+
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2582)
24+
- [diff](https://github.com/getsentry/sentry-cli/compare/2.58.0...2.58.2)
25+
- Bump Android SDK from v8.25.0 to v8.26.0 ([#5364](https://github.com/getsentry/sentry-react-native/pull/5364))
26+
- [changelog](https://github.com/getsentry/sentry-java/blob/cursor/categorize-sentry-options-3f0a main/CHANGELOG.md#8260)
27+
- [diff](https://github.com/getsentry/sentry-java/compare/8.25.0...8.26.0)
28+
- Bump Android SDK Stubs from v8.25.0 to v8.26.0 ([#5365](https://github.com/getsentry/sentry-react-native/pull/5365))
29+
- [changelog](https://github.com/getsentry/sentry-java/blob/cursor/categorize-sentry-options-3f0a main/CHANGELOG.md#8260)
30+
- [diff](https://github.com/getsentry/sentry-java/compare/8.25.0...8.26.0)
31+
- Bump Cocoa SDK from v8.57.2 to v8.57.3 ([#5375](https://github.com/getsentry/sentry-react-native/pull/5375))
32+
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8573)
33+
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.57.2...8.57.3)
34+
35+
## 7.6.0
36+
37+
38+
### Fixes
39+
40+
- Android SDK not being disabled when `options.enabled` is set to `false` ([#5334](https://github.com/getsentry/sentry-react-native/pull/5334))
41+
- Fixes how bundle IDs are getting defined for individual bundles ([#5342](https://github.com/getsentry/sentry-react-native/pull/5342))
42+
1143
### Dependencies
1244

13-
- Bump JavaScript SDK from v10.22.0 to v10.23.0 ([#5335](https://github.com/getsentry/sentry-react-native/pull/5335))
14-
- [changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#10230)
15-
- [diff](https://github.com/getsentry/sentry-javascript/compare/10.22.0...10.23.0)
45+
- Bump JavaScript SDK from v10.22.0 to v10.24.0 ([#5335](https://github.com/getsentry/sentry-react-native/pull/5335), [#5352](https://github.com/getsentry/sentry-react-native/pull/5352))
46+
- [changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#10240)
47+
- [diff](https://github.com/getsentry/sentry-javascript/compare/10.22.0...10.24.0)
1648
- Bump CLI from v2.57.0 to v2.58.0 ([#5336](https://github.com/getsentry/sentry-react-native/pull/5336))
1749
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2580)
1850
- [diff](https://github.com/getsentry/sentry-cli/compare/2.57.0...2.58.0)

0 commit comments

Comments
 (0)