Skip to content

Commit 72588e6

Browse files
authored
Merge pull request #25296 from getsentry/prepare-release/11.7.0
meta(changelog): Update changelog for 11.7.0
2 parents 32023f8 + 323307a commit 72588e6

1,082 files changed

Lines changed: 19364 additions & 15145 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.

‎.cursor/BUGBOT.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ Keep reviews high-signal. Prefer actionable, high-confidence findings over specu
9393
- Flag usage of `expect.objectContaining` and other relaxed assertions, when a test expects something NOT to be included in a payload but there's no respective assertion.
9494
- Flag usage of conditionals in one test and recommend splitting up the test for the different paths.
9595
- Flag usage of loops testing multiple scenarios in one test and recommend using `(it)|(test).each` instead.
96+
- In `dev-packages/node-integration-tests/suites/`, flag tests that check the Node version or the runtime themselves, for example with `process.versions`, `process.env.RUNTIME`, `ctx.skip()`, or a version or runtime condition in `skipIf` / `runIf`. Recommend `test.runIf(supports({ ... }))` or `describe.runIf(supports({ ... }))` from `utils/index.ts` instead.
9697
- Apply the `@sentry/conventions` constants rule from above to test files too. Test assertions on span attributes and ops must use the constants, not string literals.
9798
- Flag tests that are likely to introduce flakes. In our case this usually means we wait for some telemetry requests sent from an SDK. Patterns to look out for:
9899
- Only waiting for a request, after an action is performed. Instead, start waiting, perform action, await request promise.

‎.github/actions/install-playwright/action.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ inputs:
77
cwd:
88
description: 'The working directory to run Playwright in.'
99
default: '.'
10+
installed-version:
11+
description:
12+
'A Playwright version that an earlier run of this action already installed. Skips the install if it matches.'
13+
default: ''
14+
15+
outputs:
16+
version:
17+
description: 'The resolved Playwright version, empty if Playwright is not installed or the install was skipped.'
18+
value: ${{ steps.playwright-version.outputs.version }}
1019

1120
runs:
1221
using: 'composite'
@@ -18,8 +27,11 @@ runs:
1827
id: playwright-version
1928
run: |
2029
version=$(node -e "let v = ''; try { v = require('@playwright/test/package.json').version; } catch {} process.stdout.write(String(v));")
30+
if [ "$version" = "$INSTALLED_VERSION" ]; then version=''; fi
2131
echo "version=$version" >> "$GITHUB_OUTPUT"
2232
shell: bash
33+
env:
34+
INSTALLED_VERSION: ${{ inputs.installed-version }}
2335
working-directory: ${{ inputs.cwd }}
2436

2537
- name: Restore cached playwright binaries

‎.github/workflows/build.yml‎

Lines changed: 46 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,13 @@ jobs:
337337
uses: ./.github/actions/restore-cache
338338
with:
339339
dependency_cache_key: ${{ needs.job_build.outputs.dependency_cache_key }}
340-
- name: Lint source files
341-
run: yarn lint
342-
- name: Lint for ES compatibility
343-
run: yarn lint:es-compatibility
344-
- name: Lint types
345-
run: yarn lint:types
340+
- parallel:
341+
- name: Lint source files
342+
run: yarn lint
343+
- name: Lint for ES compatibility
344+
run: yarn lint:es-compatibility
345+
- name: Lint types
346+
run: yarn lint:types
346347

347348
job_check_lockfile:
348349
name: Check lockfile
@@ -502,11 +503,16 @@ jobs:
502503
if: github.event_name != 'pull_request'
503504

504505
job_bun_unit_tests:
505-
name: Bun Unit Tests
506+
name: Bun (${{ matrix.bun }}) Unit Tests
506507
needs: [job_get_metadata, job_build]
507508
if: needs.job_build.outputs.changed_bun == 'true' || github.event_name != 'pull_request'
508509
timeout-minutes: 10
509510
runs-on: ubuntu-24.04
511+
strategy:
512+
fail-fast: false
513+
matrix:
514+
# 1.3.14 is the oldest supported Bun version
515+
bun: ['1.3.14', '1.4']
510516
steps:
511517
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
512518
uses: actions/checkout@v7
@@ -519,7 +525,7 @@ jobs:
519525
- name: Set up Bun
520526
uses: oven-sh/setup-bun@v2
521527
with:
522-
bun-version: '1.3.14'
528+
bun-version: ${{ matrix.bun }}
523529
- name: Restore caches
524530
uses: ./.github/actions/restore-cache
525531
with:
@@ -903,14 +909,16 @@ jobs:
903909
run: yarn test
904910

905911
job_bun_integration_tests:
906-
name: Bun Integration Tests (${{ matrix.shard }}/2)
912+
name: Bun (${{ matrix.bun }}) Integration Tests (${{ matrix.shard }}/2)
907913
needs: [job_get_metadata, job_build]
908914
if: needs.job_build.outputs.changed_bun_integration == 'true' || github.event_name != 'pull_request'
909915
runs-on: ubuntu-24.04
910916
timeout-minutes: 15
911917
strategy:
912918
fail-fast: false
913919
matrix:
920+
# 1.3.14 is the oldest supported Bun version
921+
bun: ['1.3.14', '1.4']
914922
shard: [1, 2]
915923
steps:
916924
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
@@ -924,7 +932,7 @@ jobs:
924932
- name: Set up Bun
925933
uses: oven-sh/setup-bun@v2
926934
with:
927-
bun-version: '1.3.14'
935+
bun-version: ${{ matrix.bun }}
928936
- name: Restore caches
929937
uses: ./.github/actions/restore-cache
930938
with:
@@ -1091,6 +1099,16 @@ jobs:
10911099
name: build-layer-output
10921100
path: ${{ env.BUILD_LAYER_PATH }}
10931101

1102+
# Installs the root workspace's Playwright version while the app builds. Most apps use the same version.
1103+
# The app's own version is only known after its build, so it gets installed then if it differs.
1104+
# Started after the artifact downloads: starting next to them made `download-artifact` fail to read the event file.
1105+
- name: Install Playwright
1106+
id: install-playwright
1107+
background: true
1108+
uses: ./.github/actions/install-playwright
1109+
with:
1110+
browsers: chromium
1111+
10941112
- name: Prepare e2e tests
10951113
run: yarn test:prepare
10961114
working-directory: dev-packages/e2e-tests
@@ -1116,11 +1134,14 @@ jobs:
11161134
env:
11171135
SENTRY_E2E_WORKSPACE_ROOT: ${{ github.workspace }}
11181136

1119-
- name: Install Playwright
1137+
- wait: [install-playwright]
1138+
1139+
- name: Install Playwright for the app's version
11201140
uses: ./.github/actions/install-playwright
11211141
with:
11221142
browsers: chromium
11231143
cwd: ${{ runner.temp }}/test-application
1144+
installed-version: ${{ steps.install-playwright.outputs.version }}
11241145

11251146
- name: Run E2E test
11261147
working-directory: ${{ runner.temp }}/test-application
@@ -1220,6 +1241,16 @@ jobs:
12201241
name: build-tarball-output
12211242
path: ${{ env.TARBALL_ARTIFACT_DOWNLOAD_PATH }}
12221243

1244+
# Installs the root workspace's Playwright version while the app builds. Most apps use the same version.
1245+
# The app's own version is only known after its build, so it gets installed then if it differs.
1246+
# Started after the artifact downloads: starting next to them made `download-artifact` fail to read the event file.
1247+
- name: Install Playwright
1248+
id: install-playwright
1249+
background: true
1250+
uses: ./.github/actions/install-playwright
1251+
with:
1252+
browsers: chromium
1253+
12231254
- name: Prepare E2E tests
12241255
run: yarn test:prepare
12251256
working-directory: dev-packages/e2e-tests
@@ -1243,11 +1274,14 @@ jobs:
12431274
timeout-minutes: 7
12441275
run: ${{ matrix.build-command || 'pnpm test:build' }}
12451276

1246-
- name: Install Playwright
1277+
- wait: [install-playwright]
1278+
1279+
- name: Install Playwright for the app's version
12471280
uses: ./.github/actions/install-playwright
12481281
with:
12491282
browsers: chromium
12501283
cwd: ${{ runner.temp }}/test-application
1284+
installed-version: ${{ steps.install-playwright.outputs.version }}
12511285

12521286
- name: Run E2E test
12531287
working-directory: ${{ runner.temp }}/test-application

0 commit comments

Comments
 (0)