Repository navigation
meta(changelog): Update changelog for 11.19.0 - #26929
Merged
Merged
Conversation
[Gitflow] Merge master into develop
… `instrument()` (#26896) Index signatures on our vendored Flue types made Flue's own types unassignable to them, so `instrument(createFlueInstrumentation())` failed to type-check, fixed by dropping them. The node-flue e2e app now type-checks during its build, which fails before the fix. closes #26888
## What
- Move affected-project selection and E2E matrix generation into an early planning job.
- Start test jobs after planning, instead of waiting for the central build and artifact transfers. Each job builds ONLY its SDK dependency graph; E2Es pack local tarballs and browser jobs build the bundles they need. In theory we could even just remove the central build from PR runs now with some more small changes.
- Share the build action and Nx targets between central and per-job builds. The central build still produces release artifacts.
- Package Lambda layers from each test job’s local SDK outputs; retain the central release-only layer producer.
```mermaid
flowchart LR
subgraph before["Before"]
direction TB
O1[Metadata] --> O2[Central build: plan tests, build SDK, pack and bundle]
O2 --> O3[Upload artifacts]
O3 --> O4[Test jobs: download artifacts and run tests]
O4 --> O5[Required checks pass]
O3 -. Release runs .-> O6[Release artifacts]
end
subgraph after["After"]
direction TB
N1[Metadata] --> N2[Plan test jobs]
N1 --> N3[Central build: build SDK, pack and bundle]
N2 --> N4[Test jobs: build needed SDK packages locally]
N4 --> N5[Run tests]
N3 --> N6[Required checks pass]
N5 --> N6
N3 -. Release runs .-> N7[Release artifacts]
end
before ~~~ after
```
Tests build their required SDK packages locally and run alongside the central build, which continues to produce release artifacts and remains required.
## Why
Moving from a central to local builds eliminates/reduces two significant bottlenecks in our current CI:
- Tests only wait for the SDK packages they actually need to build, rather than the entire repository.
- Building on the test runner removes the upload, download and extraction of SDK build artifacts between runners.
It does add some complexity but overall I think it's worth it given the huge gain. One concern I had was that we could introduce a setup where local and central build (that produces release artifacts) could add some point subtly drift. I tried to share the logic here as much as possible extracting into a shared action to combat this. Also let codex run a full build comparison to ensure that the packages look exactly the same today.
| Finish time, including queues | Develop | Decentralized | Saved |
|---|---:|---:|---:|
| Required checks | 5:26 | **4:04** | **1:22** |
| Last E2E | 4:42 | **3:58** | **44s** |
| Last runtime integration | 5:19 | **3:26** | **1:53** |
| Shared preparation ready | 1:49 | **0:29** | **1:20** |
After this change, these are the 20 last finishing required jobs in the benchmark. Optional jobs and the required gate are excluded. This is a *full* CI run so most PR runs will be much much faster and even for full CI runs getting into the 3:00-3:30 range seems very easily doable.
| Job | Finished after CI started | Job duration |
|---|---:|---:|
| Next 16 Webpack dev — 1/3 | 3:58 | 3:21 |
| Browser unit tests | 3:34 | 3:02 |
| Next 14 dev — 1/2 | 3:33 | 2:55 |
| Next 16 Bun | 3:31 | 2:27 |
| Browser full minified — 2/2 | 3:29 | 2:50 |
| Nuxt 4 Deno | 3:29 | 2:56 |
| Next latest Webpack production | 3:29 | 2:53 |
| Next 16 Webpack production | 3:28 | 2:51 |
| Node 24 integration — 2/6 | 3:26 | 2:27 |
| Next 15 basepath | 3:24 | 2:47 |
| Next latest Turbopack production | 3:23 | 2:45 |
| TanStack Start React | 3:21 | 2:42 |
| Next 16 Webpack dev — 3/3 | 3:20 | 2:44 |
| Node 27 alpha integration — 5/6 | 3:19 | 2:21 |
| Node 27 alpha integration — 2/6 | 3:18 | 2:43 |
| Node 20 integration — 5/6 | 3:18 | 2:43 |
| Browser tracing + replay — 2/2 | 3:17 | 2:44 |
| Node 27 alpha integration — 6/6 | 3:17 | 2:42 |
| Bun 1.4 integration — 5/6 | 3:17 | 2:43 |
| Node 20 integration — 2/6 | 3:16 | 2:17 |
## What Read E2E matrices from the planning job for jobs with secrets and optional jobs on fork PRs. ## Why These jobs landed alongside decentralized builds and still referenced matrix outputs on the central build, where they no longer exist. Co-authored-by: OpenAI Codex <codex@openai.com>
#26912) ## What Point the v11 migration guide to the current AWS Lambda Layer installation page. ## Why The old `install/cjs-layer/` URL returns 404. The replacement returns 200 and documents `SentryNodeServerlessSDKv11`. [Maintainer go-ahead](#26910 (comment)). Fixes #26910 Co-authored-by: OpenAI Codex <codex@openai.com>
This PR adds the external contributor to the CHANGELOG.md file, so that they are credited for their contribution. See #26912 Co-authored-by: JPeer264 <10677263+JPeer264@users.noreply.github.com>
) ## What `npx @sentry/remix --upload-sourcemaps` works again. Both bin names are kept. ## Why npx can't pick an executable when bins have different targets, and since #24943 the package has two. npx does accept several bins that share one target, so both now point at a dispatcher, which avoids adding a `remix` bin that would collide with the Remix CLI. Windows and pnpm shims don't preserve the bin name, so the dispatcher also treats `--entry` (required by the Remix 3 script) as a Remix 3 call. Through such a shim, a Remix 3 call without `--entry` runs the classic script instead of showing the usage error. Closes: #26859 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
closes #24847 closes [JS-3848](https://linear.app/getsentry/issue/JS-3848) ## Description This runs the Hapi e2e suite on Bun and Deno as optional variants, from the same app as the Node run. The app is renamed from `node-hapi` to `hapi-21`, because it is not a Node-only app now, and it moves to TypeScript with one entry file for each runtime, as `express-5` does. New tests cover parameterized route names, per-request isolation, incoming trace continuation, `sentry-trace` and `baggage` on an outgoing `fetch`, and logs. ## Known issues - There is no Cloudflare variant. Routes and extensions that the app registers at module scope get no spans there, and the fix needs private Hapi fields. - On Bun, the request span has no `http.response.status_text`, as Bun's `node:http` leaves `statusMessage` unset (oven-sh/bun#49344) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
part of #24839 ## Description This makes `sentryCloudflareVitePlugin()` wrap the TanStack Start server entry with `withSentry` only one time when `sentryTanstackStart` has a release. ## Why With a release, `sentryTanstackStart` loads the server entry through a shim that re-exports the entry and wraps its default export (`export default addReleaseMetaTag(serverEntry, release)`). The plugin handled the shim and the entry as the Worker entry and wrapped both. Each request then started two traces with two `http.server` spans, and only one of them got the route name. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
## What
- Collect metadata, select affected projects and generate E2E matrices
in one job.
- Remove the separate planning runner, repeated checkout and job
handoff.
- Use an explicit planning output to preserve docs-only test skips.
```mermaid
flowchart LR
subgraph before["Before"]
direction TB
B1[Metadata job] --> B2[Planning job]
B2 --> B3[Test jobs]
B1 --> B4[Central build]
end
subgraph after["After"]
direction TB
A1[Metadata and planning job] --> A2[Test jobs]
A1 --> A3[Central build]
end
before ~~~ after
```
Most of the diff is just moving stuff around.
## Why
Shorten the shared preparation path so test jobs can start earlier. The
central build is not on the critical path so delaying this by a few
seconds doesn't matter.
| Time after CI started, including queues | Before | After | Saved |
|---|---:|---:|---:|
| Planning ready | 0:34 | 0:24 | 10s |
| First test job launched | 0:36 | 0:26 | 10s |
[Before](https://github.com/getsentry/sentry-javascript/actions/runs/45665032971)
→
[after](https://github.com/getsentry/sentry-javascript/actions/runs/45665393138),
using the same SDK code and matching manual triggers.
---------
Co-authored-by: OpenAI Codex <codex@openai.com>
…26887) ## What The Bun, Deno and Cloudflare variants of the required framework apps move from `optionalVariants` to `variants`, so they block PRs. That covers `astro-6`, `express-5`, `fastify-5`, `nestjs-12`, `nextjs-16`, `solid-2-ssr` and `gen-ai-libraries`. ## Why A framework that runs on Bun, Deno or Cloudflare should not regress on those runtimes without a red check. Follow-up to #26845 and #26869. - `gen-ai-libraries (cloudflare)` keeps `needsSecrets` from its app, so fork PRs skip it. - `nextjs-16-tunnel (cloudflare)` stays optional: it fails on an OpenNext regression (opennextjs/opennextjs-cloudflare#1506) that has no release with the fix yet. - `nextjs-16 (vinext, bun)` stays optional, like the vinext build flavor itself. - The runtime variants of `hono-5`, `nuxt-5` and `nuxt-5-tunnel` stay optional: those apps are optional (prerelease frameworks), and an optional app can't have required variants. The skipped `nextjs-16-cacheComponents` Cloudflare variant also stays optional. <!-- junior-request-attribution:start --> via @JPeer264. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0CA6TD3QRK%3A1795603557.411709 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0CA6TD3QRK%3A1795603557.411709) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0CA6TD3QRK%3A1795603557.411709/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Jan Peer Stöcklmair <10677263+JPeer264@users.noreply.github.com>
#26914) This makes `@sentry/cloudflare` use the release that a Sentry bundler plugin injected into the build (`globalThis.SENTRY_RELEASE`), for example the plugin of `sentryTanstackStart` or `sentryCloudflareVitePlugin`. ## Why The Node and Vercel Edge SDKs read the injected release, but the Cloudflare SDK did not. Server events of a Worker had no release unless the `release` option or the `SENTRY_RELEASE` env var was set. ## Release priority decisions The order is now: `release` option, `SENTRY_RELEASE` env var, injected release, `CF_VERSION_METADATA.id`. The injected release is before the version metadata, because it is the release that the user configured for the build. The alternative is to put it last. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
## What Server error events from the Nitro error hook now treat the query string of the request like the rest of the SDK does: - The path in the `nuxt` context goes through `dataCollection.urlQueryParams`: `/api/user?include=profile&auth=[Filtered]`. - The transaction name has no query string: `GET /api/user`. - The transaction name applies only to the captured error. Before, the hook set it on the current scope, where it stayed for later events. ## Why On Nitro v2 (Nuxt 3 and 4), the request path has the query string. `request.url` and `request.query_string` were already filtered, but the `nuxt` context and the transaction name had the raw value, so a secret in the URL reached the event. The name on the current scope showed up on Deno, where a later request can inherit that scope: error events of other requests got the name of the failed request. This made `nuxt-4 (deno)` fail in #26885.
I am aware that Deno currently fails, that's probably an issue in the Deno runtime (2.8.2 to 2.9.8). Later requests start in the leaked context. Deno issue: denoland/deno#37184 ## What More E2E asserts for the server span tree in `nuxt-4` and `nuxt-5`: - Exact span counts for server middleware, storage and cache, with no filter on name or origin. - Storage, cache and db spans are children of the request root. - A page that fails during SSR: one error event, and the root span has the error status. ## Why We want to use Nuxt's tracing channels next. These asserts pin today's span tree first, so a duplicate span or a changed parent fails a test. For example, with `tracingChannel: true` on `nuxt-5`, the count tests fail today, because middleware and cache spans come twice. Two known bugs are marked with `test.fail` and get their own fixes: the root span of a failed SSR render has no page route (`GET /__nuxt_error` on Nuxt 4, else `GET`), and the Vite server captures no SSR error.
…ts (#26922) ## What `Plan CI jobs` checks out the PR base commit again before it computes affected Nx projects. It stops failing with `fatal: bad object <base.sha>`. ## Why #26889 moved planning into `ci-planning.yml`, and the base-commit checkout from the old test-matrix job didn't come along. The job now fetches only the merge commit at depth 2, so the affected-projects diff can't find the base for any PR whose merge-base isn't the current `develop` tip. That's most PRs once `develop` moves, for example #26904. This brings back the same step the other jobs in `build.yml` still use. <!-- junior-request-attribution:start --> via **Rola Abuhasna**. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AD0C848BQ509%3A1795631065.014619 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AD0C848BQ509%3A1795631065.014619) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AD0C848BQ509%3A1795631065.014619/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Rola Abuhasna <rola.abuhasna@sentry.io>
Sets `[runner] concurrency = 12` in the repo `warden.toml`. Warden sends the diff chunks of every skill (org and repo) through one shared queue. Without this setting, the queue size is the action default of 5. On large PRs, this makes Warden review the diff in many waves, one after the other. A larger queue lets more chunks run in parallel. The org config in [getsentry/.github](https://github.com/getsentry/.github/blob/main/warden.toml) does not set `[runner] concurrency` today, so this repo value applies. If the org config sets it later, the org value wins. 12 is a starting value, we can still tweak it. This does not fix the longest Warden runs (45+ minutes). Those come from single model requests that hang, is fixed in Warden: getsentry/warden#584
## What On Solid 2 observe and dev builds, every server function execution gets a `function` span, and the request span is named after the route the render resolved to (`GET /user/:id`), also without `withSentryRouterRouting`. Production builds are unchanged. ## Why Observe builds record these facts already, so they are free to read. The span uses the `function` op, like server actions and loaders in other SDKs, so no new attributes are needed. The span is made after the server function finished. So spans from inside the function, like a database query, show up next to it, not under it. Fixing that needs a hook that Solid gives to apps, so we leave it for later. Refs JS-4118 --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…uilds without Nitro (#26913) part of #24839 ## Description This instruments the middlewares of a server function (`createServerFn().middleware([...])`) in builds without Nitro, for example with `@cloudflare/vite-plugin`. ## Why TanStack Start compiles the handler of a server function into a module with a query in its id, for example `foo.tsx?tss-serverfn-split`. The middleware auto-instrumentation checked the file extension against the full id, so it skipped that module and these middlewares got no spans. Nitro hid this, because it bundles the SSR output a second time with plain `.js` ids. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…on Bun (#26923) closes #26911 closes [JS-4166](https://linear.app/getsentry/issue/JS-4166/sentrynextjs-1113-bun-bun-next-dev-fails-at-startup-with-cannot-find) ## Description This keeps the default Turbopack loader runtime of Next.js in `next dev` on Bun. `withSentryConfig` now sets `workerThreads` only for `next build`. It also adds the optional `nextjs-16 (bun, turbopack, development)` E2E variant, which runs the dev tests with `bun --bun next dev`. ## Why Since #26293, `bun --bun next dev` fails at start with "Cannot find module '@sentry/nextjs-<hash>'". With worker threads, the loaders run in the dev server process. Bun then caches that `.next/dev` has no `node_modules` folder, and does not see the externals that Turbopack links there later. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…internal option (#26903) SDKs passed their source map deletion decision through the public `deleteSourcemapsAfterUpload`, so the plugin could not tell SDK values from user values. This blocks deprecating that option. - One internal `sdkDeleteSourceMaps` option replaces the function form of `deleteSourcemapsAfterUpload` and `sdkEnabledSourceMaps`: `true` removes all maps, `false` keeps them, `undefined` uses the plugin's rule. - The user's `delete` and `deleteSourcemapsAfterUpload` win over it, so `deleteSourcemapsAfterUpload` only holds user values. - Logs for SDK values no longer name `deleteSourcemapsAfterUpload`. - Edge cases in Astro and SolidStart, only with a user-set `deleteSourcemapsAfterUpload: true`: with a `filesToDeleteAfterUpload` glob or a Cloudflare `_worker.js` build, only maps of uploaded chunks are removed, not all maps. With `disable: 'disable-upload'` in SolidStart 2, the maps are kept with a warning.
javascript-sdk-gitflow
Bot
requested review from
RulaKhaled,
isaacs and
timfish
November 26, 2026 13:11
nicohrubec
approved these changes
Nov 26, 2026
JPeer264
requested review from
nicohrubec
and removed request for
RulaKhaled,
isaacs and
timfish
November 26, 2026 13:11
msonnb
approved these changes
Nov 26, 2026
JPeer264
enabled auto-merge
November 26, 2026 13:12
JPeer264
disabled auto-merge
November 26, 2026 13:12
Contributor
size-limit report 📦Compared: 68cbfad (PR test merge using master at 9eee73d) Against: 0ac5dd1 (master) · base run #67994
|
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 7 not successful, 58 successful. See the run.
Successful checks
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.