Skip to content

Commit 8589d04

Browse files
author
Luca Forstner
authored
Merge branch 'develop' into simple-multiplexed-transport
2 parents 7cb4d48 + 492f115 commit 8589d04

File tree

1,191 files changed

+36362
-39473
lines changed

Some content is hidden

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

1,191 files changed

+36362
-39473
lines changed

.craft.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ targets:
4949
includeNames: /^sentry-profiling-node-\d.*\.tgz$/
5050

5151
## 3 Browser-based Packages
52-
- name: npm
53-
id: '@sentry/angular-ivy'
54-
includeNames: /^sentry-angular-ivy-\d.*\.tgz$/
5552
- name: npm
5653
id: '@sentry/angular'
5754
includeNames: /^sentry-angular-\d.*\.tgz$/
@@ -70,9 +67,6 @@ targets:
7067
- name: npm
7168
id: '@sentry/wasm'
7269
includeNames: /^sentry-wasm-\d.*\.tgz$/
73-
- name: npm
74-
id: '@sentry/integrations'
75-
includeNames: /^sentry-integrations-\d.*\.tgz$/
7670

7771
## 4. WinterCG Packages
7872
- name: npm
@@ -92,11 +86,11 @@ targets:
9286

9387
## 5. Node-based Packages
9488
- name: npm
95-
id: '@sentry/serverless'
96-
includeNames: /^sentry-serverless-\d.*\.tgz$/
89+
id: '@sentry/aws-serverless'
90+
includeNames: /^sentry-aws-serverless-\d.*\.tgz$/
9791
- name: npm
98-
id: '@sentry/opentelemetry-node'
99-
includeNames: /^sentry-opentelemetry-node-\d.*\.tgz$/
92+
id: '@sentry/google-cloud-serverless'
93+
includeNames: /^sentry-google-cloud-serverless-\d.*\.tgz$/
10094
- name: npm
10195
id: '@sentry/bun'
10296
includeNames: /^sentry-bun-\d.*\.tgz$/
@@ -148,6 +142,7 @@ targets:
148142
- nodejs14.x
149143
- nodejs16.x
150144
- nodejs18.x
145+
- nodejs20.x
151146
license: MIT
152147

153148
# CDN Bundle Target
@@ -181,8 +176,6 @@ targets:
181176
onlyIfPresent: /^sentry-vue-\d.*\.tgz$/
182177
'npm:@sentry/gatsby':
183178
onlyIfPresent: /^sentry-gatsby-\d.*\.tgz$/
184-
'npm:@sentry/angular-ivy':
185-
onlyIfPresent: /^sentry-angular-ivy-\d.*\.tgz$/
186179
'npm:@sentry/angular':
187180
onlyIfPresent: /^sentry-angular-\d.*\.tgz$/
188181
'npm:@sentry/astro':
@@ -197,8 +190,6 @@ targets:
197190
onlyIfPresent: /^sentry-svelte-\d.*\.tgz$/
198191
'npm:@sentry/sveltekit':
199192
onlyIfPresent: /^sentry-sveltekit-\d.*\.tgz$/
200-
'npm:@sentry/opentelemetry-node':
201-
onlyIfPresent: /^sentry-opentelemetry-node-\d.*\.tgz$/
202193
'npm:@sentry/bun':
203194
onlyIfPresent: /^sentry-bun-\d.*\.tgz$/
204195
'npm:@sentry/vercel-edge':

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
module.exports = {
77
root: true,
88
env: {
9-
es6: true,
9+
es2017: true,
1010
},
1111
parserOptions: {
1212
ecmaVersion: 2018,

.github/CANARY_FAILURE_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
title: '{{ env.TITLE }}'
33
labels: 'Type: Tests, Waiting for: Product Owner'
44
---
5+
56
Canary tests failed: {{ env.RUN_LINK }}

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,18 @@ body:
3131
setup.
3232
options:
3333
- '@sentry/browser'
34-
- '@sentry/astro'
34+
- '@sentry/astro'
3535
- '@sentry/angular'
36-
- '@sentry/angular-ivy'
36+
- '@sentry/aws-serverless'
3737
- '@sentry/bun'
3838
- '@sentry/deno'
3939
- '@sentry/ember'
4040
- '@sentry/gatsby'
41+
- '@sentry/google-cloud-serverless'
4142
- '@sentry/nextjs'
4243
- '@sentry/node'
43-
- '@sentry/opentelemetry-node'
4444
- '@sentry/react'
4545
- '@sentry/remix'
46-
- '@sentry/serverless'
4746
- '@sentry/svelte'
4847
- '@sentry/sveltekit'
4948
- '@sentry/vue'

.github/workflows/auto-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ jobs:
3636
version: ${{ steps.version.outputs.group1 }}
3737
force: false
3838
merge_target: master
39+
craft_config_from_merge_target: true

.github/workflows/build.yml

Lines changed: 38 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ env:
4444
${{ github.workspace }}/packages/ember/*.d.ts
4545
${{ github.workspace }}/packages/gatsby/*.d.ts
4646
${{ github.workspace }}/packages/core/src/version.ts
47-
${{ github.workspace }}/packages/serverless
4847
${{ github.workspace }}/packages/utils/cjs
4948
${{ github.workspace }}/packages/utils/esm
5049
51-
BUILD_CACHE_KEY: ${{ github.event.inputs.commit || github.sha }}
52-
BUILD_PROFILING_NODE_CACHE_TARBALL_KEY: profiling-node-tarball-${{ github.event.inputs.commit || github.sha }}
50+
BUILD_CACHE_KEY: build-cache-${{ github.event.inputs.commit || github.sha }}
51+
BUILD_CACHE_TARBALL_KEY: tarball-${{ github.event.inputs.commit || github.sha }}
5352

5453
# GH will use the first restore-key it finds that matches
5554
# So it will start by looking for one from the same branch, else take the newest one it can find elsewhere
@@ -83,7 +82,7 @@ jobs:
8382
echo "COMMIT_MESSAGE=$(git log -n 1 --pretty=format:%s $COMMIT_SHA)" >> $GITHUB_ENV
8483
8584
- name: Determine changed packages
86-
uses: dorny/[email protected].0
85+
uses: dorny/[email protected].1
8786
id: changed
8887
with:
8988
filters: |
@@ -101,7 +100,6 @@ jobs:
101100
- 'packages/tracing-internal/**'
102101
- 'packages/utils/**'
103102
- 'packages/types/**'
104-
- 'packages/integrations/**'
105103
browser: &browser
106104
- *shared
107105
- 'packages/browser/**'
@@ -141,7 +139,6 @@ jobs:
141139
- 'packages/profiling-node/**'
142140
- 'dev-packages/e2e-tests/test-applications/node-profiling/**'
143141
profiling_node_bindings:
144-
- *workflow
145142
- 'packages/profiling-node/**'
146143
- 'dev-packages/e2e-tests/test-applications/node-profiling/**'
147144
deno:
@@ -268,17 +265,12 @@ jobs:
268265
needs.job_get_metadata.outputs.force_skip_cache == 'false'
269266
with:
270267
path: .nxcache
271-
key: nx-Linux-${{ github.ref }}-${{ env.HEAD_COMMIT }}
268+
key: nx-Linux-${{ github.ref }}-${{ env.HEAD_COMMIT || github.sha }}
272269
# On develop branch, we want to _store_ the cache (so it can be used by other branches), but never _restore_ from it
273270
restore-keys:
274271
${{needs.job_get_metadata.outputs.is_develop == 'false' && env.NX_CACHE_RESTORE_KEYS || 'nx-never-restore'}}
275272

276273
- name: Build packages
277-
# Under normal circumstances, using the git SHA as a cache key, there shouldn't ever be a cache hit on the built
278-
# packages, and so `yarn build` should always run. This `if` check is therefore only there for testing CI issues
279-
# where the built packages are beside the point. In that case, you can change `BUILD_CACHE_KEY` (at the top of
280-
# this file) to a constant and skip rebuilding all of the packages each time CI runs.
281-
if: steps.cache_built_packages.outputs.cache-hit == ''
282274
run: yarn build
283275
outputs:
284276
# this needs to be passed on, because the `needs` context only looks at direct ancestors (so steps which depend on
@@ -301,22 +293,17 @@ jobs:
301293
- name: Set up Node
302294
uses: actions/setup-node@v4
303295
with:
304-
# The size limit action runs `yarn` and `yarn build` when this job is executed on
305-
# use Node 14 for now.
306-
node-version: '14'
296+
node-version-file: 'package.json'
307297
- name: Restore caches
308298
uses: ./.github/actions/restore-cache
309299
env:
310300
DEPENDENCY_CACHE_KEY: ${{ needs.job_build.outputs.dependency_cache_key }}
311301
- name: Check bundle sizes
312-
uses: getsentry/size-limit-action@runForBranch
302+
uses: ./dev-packages/size-limit-gh-action
313303
with:
314304
github_token: ${{ secrets.GITHUB_TOKEN }}
315-
skip_step: build
316-
main_branch: develop
317-
# When on release branch, we want to always run
318-
# Else, we fall back to the default handling of the action
319-
run_for_branch: ${{ (needs.job_get_metadata.outputs.is_release == 'true' && 'true') || '' }}
305+
# Only run comparison against develop if this is a PR
306+
comparison_branch: ${{ (github.event_name == 'pull_request' && github.base_ref) || ''}}
320307

321308
job_lint:
322309
name: Lint
@@ -342,8 +329,6 @@ jobs:
342329
run: yarn lint:lerna
343330
- name: Lint C++ files
344331
run: yarn lint:clang
345-
- name: Validate ES5 builds
346-
run: yarn validate:es5
347332

348333
job_check_format:
349334
name: Check file formatting
@@ -408,27 +393,26 @@ jobs:
408393
uses: ./.github/actions/restore-cache
409394
env:
410395
DEPENDENCY_CACHE_KEY: ${{ needs.job_build.outputs.dependency_cache_key }}
411-
- name: Pack tarballs
412-
# Profiling tarball is built separately as we assemble the precompiled binaries
413-
run: yarn build:tarball --ignore @sentry/profiling-node
414396

415-
- name: Restore profiling tarball
416-
uses: actions/cache/restore@v4
397+
- name: Extract Profiling Node Prebuilt Binaries
398+
uses: actions/download-artifact@v3
417399
with:
418-
key: ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
419-
path: ${{ github.workspace }}/packages/*/*.tgz
400+
name: profiling-node-binaries-${{ github.sha }}
401+
path: ${{ github.workspace }}/packages/profiling-node/lib/
402+
403+
- name: Pack tarballs
404+
run: yarn build:tarball
420405

421406
- name: Archive artifacts
422407
uses: actions/upload-artifact@v4
423408
with:
424409
name: ${{ github.sha }}
425410
path: |
426411
${{ github.workspace }}/packages/browser/build/bundles/**
427-
${{ github.workspace }}/packages/integrations/build/bundles/**
428412
${{ github.workspace }}/packages/replay/build/bundles/**
429413
${{ github.workspace }}/packages/replay-canvas/build/bundles/**
430414
${{ github.workspace }}/packages/**/*.tgz
431-
${{ github.workspace }}/packages/serverless/build/aws/dist-serverless/*.zip
415+
${{ github.workspace }}/packages/aws-serverless/build/aws/dist-serverless/*.zip
432416
433417
job_browser_unit_tests:
434418
name: Browser Unit Tests
@@ -634,28 +618,24 @@ jobs:
634618
matrix:
635619
bundle:
636620
- esm
637-
- bundle_es5
638-
- bundle_es5_min
639-
- bundle_es6
640-
- bundle_es6_min
641-
- bundle_replay_es6
642-
- bundle_replay_es6_min
643-
- bundle_tracing_es5
644-
- bundle_tracing_es5_min
645-
- bundle_tracing_es6
646-
- bundle_tracing_es6_min
647-
- bundle_tracing_replay_es6
648-
- bundle_tracing_replay_es6_min
621+
- bundle
622+
- bundle_min
623+
- bundle_replay
624+
- bundle_replay_min
625+
- bundle_tracing
626+
- bundle_tracing_min
627+
- bundle_tracing_replay
628+
- bundle_tracing_replay_min
649629
project:
650630
- chromium
651631
include:
652632
# Only check all projects for esm & full bundle
653633
# We also shard the tests as they take the longest
654-
- bundle: bundle_tracing_replay_es6_min
634+
- bundle: bundle_tracing_replay_min
655635
project: ''
656636
shard: 1
657637
shards: 2
658-
- bundle: bundle_tracing_replay_es6_min
638+
- bundle: bundle_tracing_replay_min
659639
project: ''
660640
shard: 2
661641
shards: 2
@@ -672,7 +652,7 @@ jobs:
672652
shards: 3
673653
exclude:
674654
# Do not run the default chromium-only tests
675-
- bundle: bundle_tracing_replay_es6_min
655+
- bundle: bundle_tracing_replay_min
676656
project: 'chromium'
677657
- bundle: esm
678658
project: 'chromium'
@@ -790,7 +770,7 @@ jobs:
790770
name: Browser (${{ matrix.browser }}) Tests
791771
needs: [job_get_metadata, job_build]
792772
if: needs.job_get_metadata.outputs.changed_browser == 'true' || github.event_name != 'pull_request'
793-
runs-on: ubuntu-20.04-large-js
773+
runs-on: ubuntu-20.04
794774
timeout-minutes: 20
795775
strategy:
796776
fail-fast: false
@@ -918,7 +898,7 @@ jobs:
918898
yarn test
919899
920900
job_remix_integration_tests:
921-
name: Remix v${{ matrix.remix }} (Node ${{ matrix.node }}) ${{ matrix.tracingIntegration && 'TracingIntegration'}} Tests
901+
name: Remix v${{ matrix.remix }} (Node ${{ matrix.node }}) Tests
922902
needs: [job_get_metadata, job_build]
923903
if: needs.job_get_metadata.outputs.changed_remix == 'true' || github.event_name != 'pull_request'
924904
runs-on: ubuntu-20.04
@@ -934,8 +914,6 @@ jobs:
934914
remix: 1
935915
- node: 16
936916
remix: 1
937-
- tracingIntegration: true
938-
remix: 2
939917
steps:
940918
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
941919
uses: actions/checkout@v4
@@ -953,7 +931,6 @@ jobs:
953931
env:
954932
NODE_VERSION: ${{ matrix.node }}
955933
REMIX_VERSION: ${{ matrix.remix }}
956-
TRACING_INTEGRATION: ${{ matrix.tracingIntegration }}
957934
run: |
958935
cd packages/remix
959936
yarn test:integration:ci
@@ -992,8 +969,6 @@ jobs:
992969
key: nx-Linux-${{ github.ref }}-${{ env.HEAD_COMMIT }}
993970
# On develop branch, we want to _store_ the cache (so it can be used by other branches), but never _restore_ from it
994971
restore-keys: ${{ env.NX_CACHE_RESTORE_KEYS }}
995-
- name: Build tarballs
996-
run: yarn build:tarball --ignore @sentry/profiling-node
997972

998973
# Rebuild profiling by compiling TS and pull the precompiled binary artifacts
999974
- name: Build Profiling Node
@@ -1008,21 +983,22 @@ jobs:
1008983
# https://github.com/actions/upload-artifact/issues/478
1009984
if: |
1010985
(needs.job_get_metadata.outputs.changed_profiling_node_bindings == 'true') ||
986+
(needs.job_get_metadata.outputs.is_release == 'true') ||
1011987
(github.event_name != 'pull_request')
1012988
uses: actions/download-artifact@v3
1013989
with:
1014990
name: profiling-node-binaries-${{ github.sha }}
1015991
path: ${{ github.workspace }}/packages/profiling-node/lib/
1016992

1017993
- name: Build Profiling tarball
1018-
run: yarn build:tarball --scope @sentry/profiling-node
994+
run: yarn build:tarball
1019995
# End rebuild profiling
1020996

1021997
- name: Stores tarballs in cache
1022998
uses: actions/cache/save@v4
1023999
with:
10241000
path: ${{ github.workspace }}/packages/*/*.tgz
1025-
key: ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
1001+
key: ${{ env.BUILD_CACHE_TARBALL_KEY }}
10261002

10271003
job_e2e_tests:
10281004
name: E2E ${{ matrix.label || matrix.test-application }} Test
@@ -1058,17 +1034,17 @@ jobs:
10581034
'create-next-app',
10591035
'create-remix-app',
10601036
'create-remix-app-v2',
1037+
'create-remix-app-express-vite-dev',
10611038
'debug-id-sourcemaps',
10621039
'nextjs-app-dir',
10631040
'nextjs-14',
10641041
'react-create-hash-router',
10651042
'react-router-6-use-routes',
10661043
'standard-frontend-react',
1067-
'standard-frontend-react-tracing-import',
10681044
'sveltekit',
10691045
'sveltekit-2',
10701046
'generic-ts3.8',
1071-
'node-experimental-fastify-app',
1047+
'node-fastify-app',
10721048
# TODO(v8): Re-enable hapi tests
10731049
# 'node-hapi-app',
10741050
'node-exports-test-app',
@@ -1117,7 +1093,7 @@ jobs:
11171093
uses: actions/cache/restore@v4
11181094
with:
11191095
path: ${{ github.workspace }}/packages/*/*.tgz
1120-
key: ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
1096+
key: ${{ env.BUILD_CACHE_TARBALL_KEY }}
11211097

11221098
- name: Get node version
11231099
id: versions
@@ -1208,13 +1184,13 @@ jobs:
12081184
with:
12091185
name: profiling-node-binaries-${{ github.sha }}
12101186
path: ${{ github.workspace }}/packages/profiling-node/lib/
1211-
- name: Build Profiling tarball
1212-
run: yarn build:tarball --scope @sentry/profiling-node
1187+
12131188
- name: Restore tarball cache
12141189
uses: actions/cache/restore@v4
12151190
with:
12161191
path: ${{ github.workspace }}/packages/*/*.tgz
1217-
key: ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
1192+
key: ${{ env.BUILD_CACHE_TARBALL_KEY }}
1193+
fail-on-cache-miss : true
12181194

12191195
- name: Get node version
12201196
id: versions

0 commit comments

Comments
 (0)