Skip to content

Commit 291c3b9

Browse files
authored
Merge pull request #6788 from getsentry/sync/main-to-9.x.x-2026-11-26
Update v9 branch (with conflict resolutions)
2 parents 69c2447 + d3614bc commit 291c3b9

61 files changed

Lines changed: 1496 additions & 629 deletions

File tree

Some content is hidden

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

‎.claude/skills/create-java-pr/SKILL.md‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,15 @@ default body shape — it is the single source of truth for the sections and che
112112
reproduce it from memory. Fill in each section based on the changes being PR'd, drop the HTML
113113
comment hints, and check any checklist items that apply.
114114
115+
Before you create the PR, check which repository `gh` targets:
116+
117+
```bash
118+
gh repo set-default --view
119+
```
120+
121+
If it prints anything other than `getsentry/sentry-java`, or nothing, ask the user which repository
122+
to target. Don't let `gh` pick a community fork.
123+
115124
Write the body to `/tmp/pr-body-<branch>.md`, with each `/` in the branch name replaced by `-`, not
116125
to pr-writer's `/tmp/pr-body.md`: that file outlives sessions and can still hold another PR's body.
117126
Only after the write succeeds, pass that file to `gh pr create` in place of pr-writer's:
@@ -169,7 +178,7 @@ Add an entry to `CHANGELOG.md` under the `## Unreleased` section.
169178
170179
Create the subsection under `## Unreleased` if it does not already exist.
171180
172-
**When rebasing:** A rebase onto `main` can land your branch after a release was cut, where the `## Unreleased` heading your entry lived under has since been renamed to that version number. If that happens, move your new entry into an `## Unreleased` section at the top of `CHANGELOG.md` (create the section if it no longer exists) so it is not left under an already-released version.
181+
**When rebasing or merging `main`:** Your branch can land after a release was cut, where the `## Unreleased` heading your entry lived under has since been renamed to that version number. A merge does this without a conflict, sometimes with a duplicate subsection heading, so check the `## ` headings, not only the diff. If that happens, move your new entry into an `## Unreleased` section at the top of `CHANGELOG.md` (create the section if it no longer exists) so it is not left under an already-released version.
173182
174183
#### Entry format
175184

‎.claude/skills/test/SKILL.md‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,23 @@ If the user picks a specific method, use `--tests="*ClassName.methodName"` as th
5757

5858
With a test class filter:
5959
```bash
60-
./gradlew ':<module>:<task>' --tests="*<filter>*" --info
60+
./gradlew ':<module>:<task>' --tests="*<filter>*"
6161
```
6262

63-
Without a filter:
63+
Without a filter, only when the user asks for the whole module (CI runs full suites):
6464
```bash
65-
./gradlew ':<module>:<task>' --info
65+
./gradlew ':<module>:<task>'
6666
```
6767

68+
When you choose the tests yourself, filter to the classes or packages the change touches, plus the
69+
tests of direct callers. Pass `--tests` once per pattern:
70+
```bash
71+
./gradlew ':<module>:<task>' --tests="io.sentry.foo.*" --tests="*BarTest*"
72+
```
73+
74+
Don't add `--rerun` or `--no-build-cache` by default. An `UP-TO-DATE` test task already passed on the
75+
same inputs. Use them only for a named doubt, such as a suspected flaky test.
76+
6877
## Step 3b: Run an Integration Test Suite
6978

7079
The suite's task is named after its source set directory: `src/integrationTestWebflux/...` runs

‎.github/dependabot.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ updates:
1919
- dependency-name: "io.opentelemetry*"
2020
# Servlet 3.1 is the minimum supported API and must remain the production compile target.
2121
- dependency-name: "javax.servlet:javax.servlet-api"
22+
# Logback 1.2 is the compatibility floor and must remain the production compile target.
23+
- dependency-name: "ch.qos.logback:logback-classic"
24+
# Spring GraphQL 1.0 is the Spring 5 and Spring Boot 2 compatibility line.
25+
- dependency-name: "org.springframework.graphql:spring-graphql"
26+
# Ktor 3.0 is the compatibility floor; the default suite already tests the latest version.
27+
- dependency-name: "io.ktor:ktor-bom"
2228
# DGS 5+ needs Spring Boot 3; the sample is on Spring Boot 2.
2329
- dependency-name: "com.netflix.graphql.dgs*"
2430
commit-message:

‎.github/workflows/agp-matrix.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
agp: [ '9.0.0', '9.4.0', '9.5.1' ]
20+
agp: [ '9.0.0', '9.4.0', '9.5.2' ]
2121
integrations: [ true, false ]
2222

2323
name: AGP Matrix Release - AGP ${{ matrix.agp }} - Integrations ${{ matrix.integrations }}
2424
env:
2525
VERSION_AGP: ${{ matrix.agp }}
2626
APPLY_SENTRY_INTEGRATIONS: ${{ matrix.integrations }}
2727
# Upload replay snapshots from one cell only. Forks don't have access to the upload secret.
28-
UPLOAD_REPLAY_SNAPSHOTS: ${{ matrix.agp == '9.5.1' && matrix.integrations && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
28+
UPLOAD_REPLAY_SNAPSHOTS: ${{ matrix.agp == '9.5.2' && matrix.integrations && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
2929

3030
steps:
3131
- name: Checkout Repo

‎.github/workflows/codeql-analysis.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
3030

3131
- name: Initialize CodeQL
32-
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # pin@v2
32+
uses: github/codeql-action/init@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # pin@v2
3333
with:
3434
languages: 'java'
3535

@@ -38,4 +38,4 @@ jobs:
3838
./gradlew buildForCodeQL --no-build-cache
3939
4040
- name: Perform CodeQL Analysis
41-
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # pin@v2
41+
uses: github/codeql-action/analyze@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # pin@v2

‎.github/workflows/integration-tests-macrobenchmark.yml‎

Lines changed: 0 additions & 65 deletions
This file was deleted.

‎.github/workflows/pr-classifiers.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
# is the classifiers repository, at a pinned commit.
3232
- name: Get a token for the classifiers repository
3333
id: app
34-
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
34+
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
3535
with:
3636
client-id: ${{ vars.CLASSIFIERS_APP_CLIENT_ID }}
3737
private-key: ${{ secrets.CLASSIFIERS_APP_KEY }}

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
steps:
2424
- name: Get auth token
2525
id: token
26-
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
26+
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
2727
with:
2828
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
2929
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
@@ -33,7 +33,7 @@ jobs:
3333
# Needs to be set, otherwise git describe --tags will fail with: No names found, cannot describe anything
3434
fetch-depth: 0
3535
- name: Prepare release
36-
uses: getsentry/craft@0da9309228741a4c300d3c87ed7dcafa8f703525 # 3.12.0
36+
uses: getsentry/craft@b2a6fa4904f37b46f34b82330e0f3bf02a40f681 # 3.13.0
3737
env:
3838
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
3939
with:

.github/workflows/compose-ui-matrix.yml renamed to .github/workflows/replay-dependency-matrix.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Compose UI Matrix
1+
name: Session Replay Dependency Matrix
22

33
on:
44
push:
@@ -11,33 +11,43 @@ concurrency:
1111
cancel-in-progress: true
1212

1313
jobs:
14-
compose-ui-matrix:
14+
replay-dependency-matrix:
1515
timeout-minutes: 30
1616
runs-on: ubuntu-latest
17-
name: Compose UI Matrix
17+
name: ${{ matrix.name }} Matrix
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
include:
22+
# Runs every version in gradle/compose-ui-versions.json
23+
- name: Compose UI
24+
task: composeUiTest
25+
# Runs every version in gradle/coil3-versions.json
26+
- name: Coil 3
27+
task: coil3Test
1828

1929
steps:
2030
- name: Checkout Repo
2131
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2232

2333
- name: Setup Java Version
24-
uses: actions/setup-java@77dd5b2ce225ea11469928ac317850245a74ae78 # v6.2.0
34+
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
2535
with:
2636
distribution: 'temurin'
2737
java-version: '21'
2838

2939
- name: Setup Gradle
3040
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
3141

32-
# Runs every version in gradle/compose-ui-versions.json; --continue reports each failing one.
42+
# --continue reports each failing version.
3343
- name: Run Session Replay unit tests
34-
run: ./gradlew :sentry-android-replay:composeUiTest --continue
44+
run: ./gradlew :sentry-android-replay:${{ matrix.task }} --continue
3545

3646
- name: Upload test results
3747
if: always()
3848
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
3949
with:
40-
name: test-results-compose-ui
50+
name: test-results-${{ matrix.task }}
4151
path: |
4252
sentry-android-replay/build/reports/*
4353
sentry-android-replay/build/test-results/**/*.xml
@@ -46,7 +56,7 @@ jobs:
4656
uses: phoenix-actions/test-reporting@7317eea6e13c47348dd0bb318669485157c518d6 # pin@v16
4757
if: always()
4858
with:
49-
name: JUnit Compose UI
59+
name: JUnit ${{ matrix.name }}
5060
path: |
5161
sentry-android-replay/build/test-results/**/*.xml
5262
reporter: java-junit

‎.sauce/sentry-uitest-android-macrobenchmark.yml‎

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)