Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
b0d77ee
ref(server-utils): Share one cron converter across cron integrations …
wedamija Nov 16, 2026
b389743
chore(deps): Bump next from 16.4.2 to 16.4.5 in /dev-packages/e2e-tes…
dependabot[bot] Nov 17, 2026
cffd84f
chore(deps): Bump next from 16.4.1 to 16.4.5 in /dev-packages/e2e-tes…
dependabot[bot] Nov 17, 2026
b264663
chore(deps): Bump next from 16.3.3 to 16.4.5 in /dev-packages/e2e-tes…
dependabot[bot] Nov 17, 2026
b993fce
Merge branch 'develop' into manual-develop-sync
sentry-junior[bot] Nov 17, 2026
2c4e618
ci: Gate Junior PRs from outside the SDK team on a team or contractor…
sentry-junior[bot] Nov 17, 2026
944d52d
chore(deps): Bump next from 16.3.8 to 16.4.5 in /dev-packages/e2e-tes…
dependabot[bot] Nov 17, 2026
d10e514
ci: Don't count the PR's owners towards its required reviewers (#26417)
sentry-junior[bot] Nov 17, 2026
5a3d5e0
chore(ci): Route e2e test apps and more packages to SDK subteams in R…
sentry-junior[bot] Nov 17, 2026
d383066
chore: Merge master into develop (#26442)
nicohrubec Nov 17, 2026
52b6ac9
chore: Route reviews to timfish and RulaKhaled (#26444)
sentry-junior[bot] Nov 17, 2026
22a833a
chore(deps): Stop Dependabot security updates for test packages (#26443)
sentry-junior[bot] Nov 17, 2026
5e2ad90
perf(ci): Run Cloudflare integration tests on six ARM shards (#26432)
nicohrubec Nov 17, 2026
ca89a96
fix(server-utils): Support @google/genai v3 in auto-instrumentation (…
RulaKhaled Nov 17, 2026
cb2d4ad
test(cloudflare): Accept either order for the two workflow errors in …
sentry-junior[bot] Nov 17, 2026
08ff994
ci(deps): Bump getsentry/github-workflows/validate-pr from 01bcb7fe69…
dependabot[bot] Nov 17, 2026
f70d2af
ci(deps): Bump anthropics/claude-code-action from 1.0.266 to 1.0.276 …
dependabot[bot] Nov 17, 2026
cfb15f1
ci(deps): Bump getsentry/craft from 3.5.0 to 3.12.0 (#26448)
dependabot[bot] Nov 17, 2026
6bd0415
ci(deps): Bump peter-evans/create-pull-request from 8.1.1 to 8.1.3 (#…
dependabot[bot] Nov 17, 2026
5127367
test(tanstackstart-react): Add CSRF middleware to the e2e fixtures (#…
chargome Nov 17, 2026
1d3a542
test(tanstackstart-react): Run the tunnel e2e app on TanStack Start s…
chargome Nov 17, 2026
d586a5d
perf(ci): Split large Node integration test suites (#26420)
nicohrubec Nov 17, 2026
93949c4
ci: Resolve contractors' Slack names in the Junior requester lookup (…
sentry-junior[bot] Nov 17, 2026
28d29b8
feat(server-utils): Record Vercel AI Gateway cost on AI SDK spans (#2…
sentry-junior[bot] Nov 17, 2026
c1e10e8
perf(ci): Shard Node unit tests across two jobs (#26466)
nicohrubec Nov 17, 2026
bc2c361
fix(server-utils): Mark Mistral and Workers AI spans as cancelled whe…
sentry-junior[bot] Nov 17, 2026
524bd26
feat(server-utils): Instrument Google GenAI decisions as gen_ai.decid…
RulaKhaled Nov 17, 2026
abdc5dd
fix(profiling-node): Use safeDateNow for profile envelope timestamps …
JavierCane Nov 17, 2026
9b7265f
chore: Add external contributor to CHANGELOG.md (#26483)
javascript-sdk-gitflow[bot] Nov 17, 2026
8c8f0d4
fix(nuxt): Fix db0 and Cloudflare span data, run nuxt-4 on Bun, Deno …
sentry-junior[bot] Nov 17, 2026
13f8b42
fix(nuxt): Answer managed tunnel requests on Cloudflare (#26365)
isaacs Nov 17, 2026
7e8b0cf
ci: Fix the lockfile check, the WebKit launch, and slow unit tests (#…
s1gr1d Nov 17, 2026
96af3b8
test(cloudflare): Fix the invocation-duration flake and report reques…
s1gr1d Nov 17, 2026
a1e62ed
ci: List job failures outside tests in the weekly flaky report (#26460)
s1gr1d Nov 17, 2026
0928874
test: Remove wall-clock and flush timing assumptions from unit tests …
s1gr1d Nov 17, 2026
1e38e20
test(node-integration): Collect traces that arrive in several envelop…
s1gr1d Nov 17, 2026
7a426d6
test: Give each test run its own port and queue (#26479)
s1gr1d Nov 17, 2026
72add88
test(browser): Fix flaky replay and tracing integration tests (#26478)
s1gr1d Nov 17, 2026
09a1d4f
feat(cloudflare): Set server name and runtime version from the wrangl…
JPeer264 Nov 17, 2026
74160e1
test(e2e): Fix flaky hono, Next.js T3, and React Router tests (#26482)
s1gr1d Nov 17, 2026
d25e075
fix(core): Keep the longest active rate limit for each category (#26410)
sentry-junior[bot] Nov 17, 2026
4202227
feat(cloudflare): Deprecate `cacheClient` option (#26494)
sentry-junior[bot] Nov 17, 2026
98df45b
feat(browser): Add `browserTracingCoreIntegration` (#26259)
logaretm Nov 17, 2026
f9451b9
feat(browser): Extract long task and LoAF tracking into `longTasksInt…
logaretm Nov 17, 2026
ff1300c
feat(browser): Extract XHR request instrumentation into `xhrTracingIn…
logaretm Nov 17, 2026
a0077d2
feat(browser): Extract linked traces into `linkedTracesIntegration` (…
logaretm Nov 17, 2026
ce31964
feat(browser): Extract fetch request instrumentation into `fetchTraci…
logaretm Nov 17, 2026
582f506
feat(browser): Extract resource spans into `resourcesIntegration` (#2…
logaretm Nov 17, 2026
e0565f2
fix(core): Escape `JSON.stringify` output that goes into generated co…
isaacs Nov 17, 2026
42b799e
fix(nestjs,sveltekit,nuxt,astro): Report the framework SDK name on al…
isaacs Nov 17, 2026
807f6a5
test: Stop slow Docker steps from failing integration and E2E tests (…
s1gr1d Nov 17, 2026
f70b523
feat(core): add experimental SDK config integration (#26291)
nicohrubec Nov 17, 2026
c7427bb
feat(browser): Export the standalone tracing integrations from the CD…
logaretm Nov 17, 2026
9aacf53
meta(changelog): Update changelog for 11.14.0
logaretm Nov 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .cursor/BUGBOT.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Keep reviews high-signal. Prefer actionable, high-confidence findings over specu
- Exposed **real** secrets, API keys, tokens, or credentials in production code, comments, logs, or committed configs. Do **not** flag test fixtures, unit/integration/E2E helpers, or docs/examples that use obviously fake / placeholder DSNs and credentials (bogus DSNs in tests are expected).
- Unsafe use of `eval()`, `Function()`, or `innerHTML`
- Unsafe regular expressions that could cause ReDoS attacks
- `JSON.stringify` output that goes into generated code (bundler plugins, loaders, virtual modules, `define` values). Use `stringifyForCodeInjection` from `@sentry/core` instead. It escapes `<`, `>`, U+2028 and U+2029, so the code stays safe when inlined in a `<script>` element. Do not flag log messages, boolean `define` values, or other output that never reaches generated code.
- Sensitive data collection must go through the SDK's `dataCollection` options (and helpers like `filterCollectedUrl` / `filterCollectedUrlQuery`) where applicable. Flag new instrumentation that attaches request/response bodies, cookies, headers, URL query params, user info, DB query data, GraphQL variables, GenAI I/O, or similar without honoring the relevant `dataCollection.*` knobs — or that hard-codes collection on when those options would disable or filter it. Prefer linking reviewers to the existing URL-attribute filtering rules below rather than inventing parallel guidance.
- Diagnostics, sampling overrides, verbose logging, or feature flags accidentally enabled in production defaults

Expand Down
112 changes: 110 additions & 2 deletions .github/REVIEWERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
# This is deliberately not a CODEOWNERS file: GitHub requests every matching
# code owner team as soon as a PR opens, before the workflow requests anyone,
# so the whole team gets notified.
#
# Last match wins. A rule prefixed with `+` doesn't replace that match but adds
# its owners on top of it, wherever it sits in the file. Files with no rule (CI,
# scripts, root config, shared test utils, most of packages/core) fall back to
# @getsentry/team-javascript-sdks plus the contractors listed in
# scripts/junior-requesters.mjs.
# Don't add a catch-all `*` rule: it would put the whole team in the codeowner
# pool of every PR and dilute the routing below.

# Browser, replay, feedback, and related packages
/packages/browser/ @getsentry/team-javascript-sdks-browser
Expand All @@ -11,11 +19,19 @@
/packages/replay-canvas/ @getsentry/team-javascript-sdks-browser
/packages/feedback/ @getsentry/team-javascript-sdks-browser
/dev-packages/browser-integration-tests/ @getsentry/team-javascript-sdks-browser
/packages/wasm/ @getsentry/team-javascript-sdks-browser
/packages/integration-shims/ @getsentry/team-javascript-sdks-browser
/packages/core/src/browser.ts @getsentry/team-javascript-sdks-browser
/packages/core/src/tracing/browserSpanApi.ts @getsentry/team-javascript-sdks-browser
/packages/core/src/tracing/idleSpan.ts @getsentry/team-javascript-sdks-browser
/dev-packages/browser-min-version-tests/ @getsentry/team-javascript-sdks-browser
/dev-packages/e2e-tests/test-applications/*browser*/ @getsentry/team-javascript-sdks-browser
/dev-packages/e2e-tests/test-applications/webpack-*/ @getsentry/team-javascript-sdks-browser

# Node/server runtimes and related packages
/packages/node/ @getsentry/team-javascript-sdks-server
/packages/node/ @getsentry/team-javascript-sdks-server @timfish
/packages/server-runtime-injection/ @getsentry/team-javascript-sdks-server
/packages/server-utils/ @getsentry/team-javascript-sdks-server
/packages/server-utils/ @getsentry/team-javascript-sdks-server @timfish
/packages/node-native/ @getsentry/team-javascript-sdks-server
/packages/profiling-node/ @getsentry/team-javascript-sdks-server
/packages/opentelemetry/ @getsentry/team-javascript-sdks-server
Expand All @@ -29,6 +45,25 @@
/dev-packages/cloudflare-integration-tests/ @getsentry/team-javascript-sdks-server
/dev-packages/bun-integration-tests/ @getsentry/team-javascript-sdks-server
/dev-packages/deno-integration-tests/ @getsentry/team-javascript-sdks-server
/packages/core/src/server.ts @getsentry/team-javascript-sdks-server
/packages/core/src/server-runtime-client.ts @getsentry/team-javascript-sdks-server
/packages/core/src/integrations/http/ @getsentry/team-javascript-sdks-server
/packages/core/src/integrations/mcp-server/ @getsentry/team-javascript-sdks-server
/dev-packages/e2e-tests/test-applications/node-*/ @getsentry/team-javascript-sdks-server
/dev-packages/e2e-tests/test-applications/bun-*/ @getsentry/team-javascript-sdks-server
/dev-packages/e2e-tests/test-applications/deno/ @getsentry/team-javascript-sdks-server
/dev-packages/e2e-tests/test-applications/cloudflare-*/ @getsentry/team-javascript-sdks-server
/dev-packages/e2e-tests/test-applications/aws-serverless*/ @getsentry/team-javascript-sdks-server
/dev-packages/e2e-tests/test-applications/tsx-express/ @getsentry/team-javascript-sdks-server
/dev-packages/e2e-tests/test-applications/gen-ai-libraries/ @getsentry/team-javascript-sdks-server

# Bundler plugins
/packages/bundler-plugins/ @getsentry/team-javascript-sdks-framework @timfish
/packages/esbuild-plugin/ @getsentry/team-javascript-sdks-framework @timfish
/packages/rollup-plugin/ @getsentry/team-javascript-sdks-framework @timfish
/packages/vite-plugin/ @getsentry/team-javascript-sdks-framework @timfish
/packages/webpack-plugin/ @getsentry/team-javascript-sdks-framework @timfish
/dev-packages/bundler-plugin-integration-tests/ @getsentry/team-javascript-sdks-framework @timfish

# Framework integration packages
/packages/angular/ @getsentry/team-javascript-sdks-framework
Expand All @@ -51,3 +86,76 @@
/packages/sveltekit/ @getsentry/team-javascript-sdks-framework
/packages/tanstackstart-react/ @getsentry/team-javascript-sdks-framework
/packages/vue/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/angular-*/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/astro-*/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/create-react-app/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/effect-*/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/elysia-*/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/ember-*/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/hono-*/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/hydrogen-*/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/nestjs-*/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/*nextjs*/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/nitro-*/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/nuxt-*/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/react-*/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/*remix*/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/solid*/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/svelte*/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/tanstack*/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/vinext-*/ @getsentry/team-javascript-sdks-framework
/dev-packages/e2e-tests/test-applications/vue-*/ @getsentry/team-javascript-sdks-framework

# AI integrations, on top of the owners above
+/packages/server-utils/src/ai/ @RulaKhaled
+/packages/server-utils/test/ai/ @RulaKhaled
+/packages/server-utils/*/integrations/anthropic* @RulaKhaled
+/packages/server-utils/*/integrations/flue* @RulaKhaled
+/packages/server-utils/*/integrations/google-genai* @RulaKhaled
+/packages/server-utils/*/integrations/groq* @RulaKhaled
+/packages/server-utils/*/integrations/langchain* @RulaKhaled
+/packages/server-utils/*/integrations/langgraph* @RulaKhaled
+/packages/server-utils/*/integrations/mastra* @RulaKhaled
+/packages/server-utils/*/integrations/mistral* @RulaKhaled
+/packages/server-utils/*/integrations/openai* @RulaKhaled
+/packages/server-utils/*/integrations/pi-* @RulaKhaled
+/packages/server-utils/*/integrations/together-ai* @RulaKhaled
+/packages/server-utils/*/integrations/typesafe* @RulaKhaled
+/packages/server-utils/*/integrations/vercel-ai/ @RulaKhaled
+/packages/server-utils/*/integrations/aws-sdk/services/bedrock-runtime* @RulaKhaled
+/packages/server-utils/src/orchestrion/config/openai-compatible.ts @RulaKhaled
+/packages/cloudflare/src/instrumentations/agents/ @RulaKhaled
+/packages/core/src/integrations/mcp-server/ @RulaKhaled
+/packages/core/src/integrations/conversationId.ts @RulaKhaled
+/packages/core/src/tracing/spans/extractGenAiSpans.ts @RulaKhaled
+/packages/core/test/lib/tracing/spans/extractGenAiSpans.test.ts @RulaKhaled
+/packages/core/src/utils/ai/ @RulaKhaled
+/packages/core/test/lib/utils/ai/ @RulaKhaled
+/dev-packages/node-integration-tests/suites/tracing/anthropic/ @RulaKhaled
+/dev-packages/node-integration-tests/suites/tracing/flue/ @RulaKhaled
+/dev-packages/node-integration-tests/suites/tracing/google-genai/ @RulaKhaled
+/dev-packages/node-integration-tests/suites/tracing/groq/ @RulaKhaled
+/dev-packages/node-integration-tests/suites/tracing/langchain/ @RulaKhaled
+/dev-packages/node-integration-tests/suites/tracing/langgraph/ @RulaKhaled
+/dev-packages/node-integration-tests/suites/tracing/mastra/ @RulaKhaled
+/dev-packages/node-integration-tests/suites/tracing/mcp-server/ @RulaKhaled
+/dev-packages/node-integration-tests/suites/tracing/mistral/ @RulaKhaled
+/dev-packages/node-integration-tests/suites/tracing/openai/ @RulaKhaled
+/dev-packages/node-integration-tests/suites/tracing/pi-ai/ @RulaKhaled
+/dev-packages/node-integration-tests/suites/tracing/pi-durable/ @RulaKhaled
+/dev-packages/node-integration-tests/suites/tracing/together-ai/ @RulaKhaled
+/dev-packages/node-integration-tests/suites/tracing/typesafe/ @RulaKhaled
+/dev-packages/node-integration-tests/suites/tracing/vercelai/ @RulaKhaled
+/dev-packages/cloudflare-integration-tests/suites/tracing/google-genai/ @RulaKhaled
+/dev-packages/cloudflare-integration-tests/suites/tracing/langchain/ @RulaKhaled
+/dev-packages/cloudflare-integration-tests/suites/tracing/langgraph/ @RulaKhaled
+/dev-packages/cloudflare-integration-tests/suites/tracing/openai/ @RulaKhaled
+/dev-packages/cloudflare-integration-tests/suites/tracing/workers-ai/ @RulaKhaled
+/dev-packages/e2e-tests/test-applications/gen-ai-libraries/ @RulaKhaled
+/dev-packages/e2e-tests/test-applications/node-openai-decisions/ @RulaKhaled
+/dev-packages/e2e-tests/test-applications/node-mastra/ @RulaKhaled
+/dev-packages/e2e-tests/test-applications/cloudflare-mastra/ @RulaKhaled
+/dev-packages/e2e-tests/test-applications/cloudflare-vercelai-v7/ @RulaKhaled
+/dev-packages/e2e-tests/test-applications/*nextjs*/app/ai-*/ @RulaKhaled
+/dev-packages/e2e-tests/test-applications/*nextjs*/app/api/openai/ @RulaKhaled
+/.agents/skills/add-ai-integration/ @RulaKhaled
8 changes: 8 additions & 0 deletions .github/actions/install-playwright/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ runs:
install -y --no-install-recommends "${packages[@]}"
shell: bash

# Before a launch, Playwright also checks the libraries of the GTK executable, which headless tests do not start
# and the list above does not have. Without this, a launch only works while the browser cache holds Playwright's
# `DEPENDENCIES_VALIDATED` marker, which expires after 30 days.
- name: Skip Playwright's host validation
if: steps.webkit-dependencies.outputs.key != ''
run: echo "PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=1" >> "$GITHUB_ENV"
shell: bash

- name: Remove obsolete cached WebKit packages
if:
steps.webkit-dependencies.outputs.key != '' && steps.webkit-apt-cache.outputs.cache-hit != 'true' &&
Expand Down
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,22 @@ updates:
- 'dev-packages/deno-integration-tests/**'
- 'dev-packages/cloudflare-integration-tests/**'
- 'dev-packages/e2e-tests/test-applications/**'
# Test packages pin dependency versions on purpose, so never update them.
# `exclude-paths` above only stops version updates. Security updates only read an entry
# whose directories match the manifest, and `ignore` is one of the options they honor.
- package-ecosystem: 'npm'
directories:
- '/dev-packages/browser-integration-tests'
- '/dev-packages/bundler-plugin-integration-tests'
- '/dev-packages/bundler-plugin-integration-tests/**'
- '/dev-packages/bundler-tests'
- '/dev-packages/bun-integration-tests'
- '/dev-packages/node-integration-tests'
- '/dev-packages/deno-integration-tests'
- '/dev-packages/cloudflare-integration-tests'
- '/dev-packages/e2e-tests/test-applications/**'
schedule:
interval: 'monthly'
open-pull-requests-limit: 0
ignore:
- dependency-name: '*'
12 changes: 11 additions & 1 deletion .github/workflows/assign-junior-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
runs-on: ubuntu-24.04
if: github.event.pull_request.user.login == 'sentry-junior[bot]'
steps:
# Matching Slack names to GitHub users lists team members, which needs org `members: read`.
# Matching Slack names to GitHub users lists team members, which needs org `members: read`. Labels added with
# GITHUB_TOKEN wouldn't trigger the team review gate.
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v3
Expand All @@ -27,8 +28,17 @@ jobs:
with:
sparse-checkout: |
scripts/junior-requesters.mjs
scripts/team-review-gate.mjs
sparse-checkout-cone-mode: false

- name: Label for team review
uses: actions/github-script@v9
with:
github-token: ${{ steps.app-token.outputs.token }}
script: |
const { labelJuniorPrForTeamReview } = await import('${{ github.workspace }}/scripts/team-review-gate.mjs');
await labelJuniorPrForTeamReview({ github, context, core });

- name: Assign requester
uses: actions/github-script@v9
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-fix-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:

- name: Try to fix the issue with Claude
id: triage
uses: anthropics/claude-code-action@d535f5172dec02b204866b393d6b20b9b2aaf98d # v1
uses: anthropics/claude-code-action@f3b070c88125d33dbae5653df5f143101d4ea9dc # v1
env:
ANTHROPIC_BASE_URL: https://openrouter.ai/api
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
node-version-file: 'package.json'

- name: Prepare release
uses: getsentry/craft@3f1f02d50b08b8c509a28d2cc2abf594e9a28011 # v3.5.0
uses: getsentry/craft@0da9309228741a4c300d3c87ed7dcafa8f703525 # v3.12.0
if:
github.event.pull_request.merged == true && steps.version-regex.outputs.match != '' &&
steps.get_version.outputs.version != ''
Expand Down
24 changes: 17 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ jobs:
job_check_lockfile:
name: Check lockfile
needs: [job_get_metadata]
# `pnpm dedupe --check` fetches metadata for every package from npm, so this job can take 8+ min on PRs.
# `pnpm dedupe` fetches metadata for every package from npm, so this job can take 8+ min on PRs.
timeout-minutes: 20
runs-on: ubuntu-24.04
if: |
Expand All @@ -371,14 +371,21 @@ jobs:
uses: ./.github/actions/setup-node
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
# The lockfile stores the deprecation message of each package. A maintainer can deprecate a locked version on
# npm at any time, which changes the lockfile without a change in this repository. Both checks ignore these lines.
- name: Check that pnpm-lock.yaml is stable
run: |
if ! git diff --exit-code pnpm-lock.yaml; then
if ! git diff --exit-code -I'^ +deprecated: ' pnpm-lock.yaml; then
echo "::error::pnpm-lock.yaml has uncommitted changes after running 'pnpm install'. Please run 'pnpm install' locally and commit the updated pnpm-lock.yaml."
exit 1
fi
- name: Check for duplicate dependencies in lockfile
run: pnpm run dedupe-deps:check
run: |
pnpm dedupe --lockfile-only
if ! git diff --exit-code -I'^ +deprecated: ' pnpm-lock.yaml; then
echo "::error::pnpm-lock.yaml has duplicate dependencies. Please run 'pnpm run dedupe-deps:fix' locally and commit the updated pnpm-lock.yaml."
exit 1
fi

job_check_format:
name: Check file formatting
Expand Down Expand Up @@ -540,7 +547,7 @@ jobs:
pnpm run test

job_node_unit_tests:
name: Node (${{ matrix.node }}) Unit Tests
name: Node (${{ matrix.node }}) Unit Tests (${{ matrix.shard }}/2)
needs: [job_get_metadata, job_build]
timeout-minutes: 10
runs-on: ubuntu-24.04-arm
Expand All @@ -550,6 +557,7 @@ jobs:
fail-fast: false
matrix:
node: [20.19, 22, 24, 26, '^27.0.0-0']
shard: [1, 2]
steps:
- name: Check out base commit (${{ github.event.pull_request.base.sha }})
uses: actions/checkout@v7
Expand Down Expand Up @@ -579,12 +587,14 @@ jobs:
if: github.event_name == 'pull_request'
env:
NODE_VERSION: ${{ matrix.node }}
UNIT_TEST_SHARD: ${{ matrix.shard }}

- name: Run all tests
run: pnpm run test:ci:node
if: github.event_name != 'pull_request'
env:
NODE_VERSION: ${{ matrix.node }}
UNIT_TEST_SHARD: ${{ matrix.shard }}

job_browser_playwright_tests:
name:
Expand Down Expand Up @@ -887,13 +897,13 @@ jobs:
name: Cloudflare Integration Tests (${{ matrix.shard }}/${{ matrix.shards }})
needs: [job_get_metadata, job_build]
if: needs.job_build.outputs.changed_cloudflare_integration == 'true' || github.event_name != 'pull_request'
runs-on: ubuntu-24.04
runs-on: ubuntu-24.04-arm
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4]
shards: [4]
shard: [1, 2, 3, 4, 5, 6]
shards: [6]
steps: &cloudflare_integration_tests_steps
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
uses: actions/checkout@v7
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/clear-team-review-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: 'PR: Clear team review label'

on:
pull_request_review:
types:
- submitted

permissions:
contents: read

jobs:
clear-team-review-label:
name: Clear team review label
runs-on: ubuntu-24.04
if: |
github.event.review.state == 'approved'
&& github.event.pull_request.user.login == 'sentry-junior[bot]'
steps:
# Labels removed with GITHUB_TOKEN don't trigger the gate again, and listing team members needs org `members: read`.
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ vars.GITFLOW_APP_ID }}
private-key: ${{ secrets.GITFLOW_APP_PRIVATE_KEY }}

- name: Checkout base branch
uses: actions/checkout@v7
with:
ref: ${{ github.event.pull_request.base.ref }}
sparse-checkout: |
scripts/team-review-gate.mjs
scripts/junior-requesters.mjs
sparse-checkout-cone-mode: false

- name: Clear team review label
uses: actions/github-script@v9
with:
github-token: ${{ steps.app-token.outputs.token }}
script: |
const { clearTeamReviewLabel } = await import('${{ github.workspace }}/scripts/team-review-gate.mjs');
await clearTeamReviewLabel({ github, context, core });
Loading
Loading