Skip to content

Commit b290fca

Browse files
authored
Merge pull request #7210 from getsentry/prepare-release/7.38.0
meta(changelog): Update CHANGELOG for 7.38.0
2 parents 2bdda84 + bbe3c30 commit b290fca

File tree

99 files changed

+3174
-969
lines changed

Some content is hidden

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

99 files changed

+3174
-969
lines changed

.github/workflows/auto-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
# Parse version from head branch
2626
text: ${{ github.head_ref }}
2727
# match: preprare-release/xx.xx.xx
28-
regex: '^preprare-release\/(\d+\.\d+\.\d+)$'
28+
regex: '^prepare-release\/(\d+\.\d+\.\d+)$'
2929

3030
- name: Prepare release
3131
uses: getsentry/action-prepare-release@v1

.github/workflows/build.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ env:
4747
NX_CACHE_RESTORE_KEYS: |
4848
nx-Linux-${{ github.ref }}-${{ github.event.inputs.commit || github.sha }}
4949
nx-Linux-${{ github.ref }}
50-
nx-Linux-refs/heads/develop
5150
nx-Linux
5251
5352
jobs:
@@ -173,6 +172,7 @@ jobs:
173172
key: ${{ steps.compute_lockfile_hash.outputs.hash }}
174173

175174
- name: Install dependencies
175+
if: steps.cache_dependencies.outputs.cache_hit != 'true'
176176
run: yarn install --ignore-engines --frozen-lockfile
177177
outputs:
178178
dependency_cache_key: ${{ steps.compute_lockfile_hash.outputs.hash }}
@@ -212,7 +212,7 @@ jobs:
212212
needs.job_get_metadata.outputs.is_release == 'false' &&
213213
needs.job_get_metadata.outputs.force_skip_cache == 'false'
214214
with:
215-
path: node_modules/.cache/nx
215+
path: .nxcache
216216
key: nx-Linux-${{ github.ref }}-${{ env.HEAD_COMMIT }}
217217
# On develop branch, we want to _store_ the cache (so it can be used by other branches), but never _restore_ from it
218218
restore-keys:
@@ -244,12 +244,12 @@ jobs:
244244
- name: Set up Node
245245
uses: volta-cli/action@v4
246246
- name: Check dependency cache
247-
uses: actions/cache@v3
247+
uses: actions/cache/restore@v3
248248
with:
249249
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
250250
key: ${{ needs.job_build.outputs.dependency_cache_key }}
251251
- name: Check build cache
252-
uses: actions/cache@v3
252+
uses: actions/cache/restore@v3
253253
with:
254254
path: ${{ env.CACHED_BUILD_PATHS }}
255255
key: ${{ env.BUILD_CACHE_KEY }}
@@ -275,7 +275,7 @@ jobs:
275275
needs: [job_get_metadata, job_build]
276276
timeout-minutes: 15
277277
runs-on: ubuntu-20.04
278-
if: github.event_name == 'pull_request' || needs.job_get_metadata.outputs.is_develop == 'true'
278+
if: github.event_name == 'pull_request' || needs.job_get_metadata.outputs.is_develop == 'true' || needs.job_get_metadata.outputs.is_release == 'true'
279279
steps:
280280
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
281281
uses: actions/checkout@v3
@@ -288,12 +288,12 @@ jobs:
288288
# use Node 14 for now.
289289
node-version: '14'
290290
- name: Check dependency cache
291-
uses: actions/cache@v3
291+
uses: actions/cache/restore@v3
292292
with:
293293
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
294294
key: ${{ needs.job_build.outputs.dependency_cache_key }}
295295
- name: Check build cache
296-
uses: actions/cache@v3
296+
uses: actions/cache/restore@v3
297297
with:
298298
path: ${{ env.CACHED_BUILD_PATHS }}
299299
key: ${{ env.BUILD_CACHE_KEY }}
@@ -319,12 +319,12 @@ jobs:
319319
- name: Set up Node
320320
uses: volta-cli/action@v4
321321
- name: Check dependency cache
322-
uses: actions/cache@v3
322+
uses: actions/cache/restore@v3
323323
with:
324324
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
325325
key: ${{ needs.job_build.outputs.dependency_cache_key }}
326326
- name: Check build cache
327-
uses: actions/cache@v3
327+
uses: actions/cache/restore@v3
328328
with:
329329
path: ${{ env.CACHED_BUILD_PATHS }}
330330
key: ${{ env.BUILD_CACHE_KEY }}
@@ -344,12 +344,12 @@ jobs:
344344
- name: Set up Node
345345
uses: volta-cli/action@v4
346346
- name: Check dependency cache
347-
uses: actions/cache@v3
347+
uses: actions/cache/restore@v3
348348
with:
349349
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
350350
key: ${{ needs.job_build.outputs.dependency_cache_key }}
351351
- name: Check build cache
352-
uses: actions/cache@v3
352+
uses: actions/cache/restore@v3
353353
with:
354354
path: ${{ env.CACHED_BUILD_PATHS }}
355355
key: ${{ env.BUILD_CACHE_KEY }}
@@ -370,12 +370,12 @@ jobs:
370370
- name: Set up Node
371371
uses: volta-cli/action@v4
372372
- name: Check dependency cache
373-
uses: actions/cache@v3
373+
uses: actions/cache/restore@v3
374374
with:
375375
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
376376
key: ${{ needs.job_build.outputs.dependency_cache_key }}
377377
- name: Check build cache
378-
uses: actions/cache@v3
378+
uses: actions/cache/restore@v3
379379
with:
380380
path: ${{ env.CACHED_BUILD_PATHS }}
381381
key: ${{ env.BUILD_CACHE_KEY }}
@@ -407,12 +407,12 @@ jobs:
407407
with:
408408
node-version: ${{ env.DEFAULT_NODE_VERSION }}
409409
- name: Check dependency cache
410-
uses: actions/cache@v3
410+
uses: actions/cache/restore@v3
411411
with:
412412
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
413413
key: ${{ needs.job_build.outputs.dependency_cache_key }}
414414
- name: Check build cache
415-
uses: actions/cache@v3
415+
uses: actions/cache/restore@v3
416416
with:
417417
path: ${{ env.CACHED_BUILD_PATHS }}
418418
key: ${{ env.BUILD_CACHE_KEY }}
@@ -442,12 +442,12 @@ jobs:
442442
with:
443443
node-version: ${{ matrix.node }}
444444
- name: Check dependency cache
445-
uses: actions/cache@v3
445+
uses: actions/cache/restore@v3
446446
with:
447447
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
448448
key: ${{ needs.job_build.outputs.dependency_cache_key }}
449449
- name: Check build cache
450-
uses: actions/cache@v3
450+
uses: actions/cache/restore@v3
451451
with:
452452
path: ${{ env.CACHED_BUILD_PATHS }}
453453
key: ${{ env.BUILD_CACHE_KEY }}
@@ -480,12 +480,12 @@ jobs:
480480
with:
481481
node-version: ${{ matrix.node }}
482482
- name: Check dependency cache
483-
uses: actions/cache@v3
483+
uses: actions/cache/restore@v3
484484
with:
485485
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
486486
key: ${{ needs.job_build.outputs.dependency_cache_key }}
487487
- name: Check build cache
488-
uses: actions/cache@v3
488+
uses: actions/cache/restore@v3
489489
with:
490490
path: ${{ env.CACHED_BUILD_PATHS }}
491491
key: ${{ env.BUILD_CACHE_KEY }}
@@ -553,12 +553,12 @@ jobs:
553553
- name: Set up Node
554554
uses: volta-cli/action@v4
555555
- name: Check dependency cache
556-
uses: actions/cache@v3
556+
uses: actions/cache/restore@v3
557557
with:
558558
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
559559
key: ${{ needs.job_build.outputs.dependency_cache_key }}
560560
- name: Check build cache
561-
uses: actions/cache@v3
561+
uses: actions/cache/restore@v3
562562
with:
563563
path: ${{ env.CACHED_BUILD_PATHS }}
564564
key: ${{ env.BUILD_CACHE_KEY }}
@@ -611,12 +611,12 @@ jobs:
611611
- name: Set up Node
612612
uses: volta-cli/action@v4
613613
- name: Check dependency cache
614-
uses: actions/cache@v3
614+
uses: actions/cache/restore@v3
615615
with:
616616
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
617617
key: ${{ needs.job_build.outputs.dependency_cache_key }}
618618
- name: Check build cache
619-
uses: actions/cache@v3
619+
uses: actions/cache/restore@v3
620620
with:
621621
path: ${{ env.CACHED_BUILD_PATHS }}
622622
key: ${{ env.BUILD_CACHE_KEY }}
@@ -641,12 +641,12 @@ jobs:
641641
- name: Set up Node
642642
uses: volta-cli/action@v4
643643
- name: Check dependency cache
644-
uses: actions/cache@v3
644+
uses: actions/cache/restore@v3
645645
with:
646646
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
647647
key: ${{ needs.job_build.outputs.dependency_cache_key }}
648648
- name: Check build cache
649-
uses: actions/cache@v3
649+
uses: actions/cache/restore@v3
650650
with:
651651
path: ${{ env.CACHED_BUILD_PATHS }}
652652
key: ${{ env.BUILD_CACHE_KEY }}
@@ -679,12 +679,12 @@ jobs:
679679
with:
680680
node-version: ${{ matrix.node }}
681681
- name: Check dependency cache
682-
uses: actions/cache@v3
682+
uses: actions/cache/restore@v3
683683
with:
684684
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
685685
key: ${{ needs.job_build.outputs.dependency_cache_key }}
686686
- name: Check build cache
687-
uses: actions/cache@v3
687+
uses: actions/cache/restore@v3
688688
with:
689689
path: ${{ env.CACHED_BUILD_PATHS }}
690690
key: ${{ env.BUILD_CACHE_KEY }}
@@ -715,12 +715,12 @@ jobs:
715715
with:
716716
node-version: ${{ matrix.node }}
717717
- name: Check dependency cache
718-
uses: actions/cache@v3
718+
uses: actions/cache/restore@v3
719719
with:
720720
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
721721
key: ${{ needs.job_build.outputs.dependency_cache_key }}
722722
- name: Check build cache
723-
uses: actions/cache@v3
723+
uses: actions/cache/restore@v3
724724
with:
725725
path: ${{ env.CACHED_BUILD_PATHS }}
726726
key: ${{ env.BUILD_CACHE_KEY }}
@@ -749,12 +749,12 @@ jobs:
749749
- name: Set up Node
750750
uses: volta-cli/action@v4
751751
- name: Check dependency cache
752-
uses: actions/cache@v3
752+
uses: actions/cache/restore@v3
753753
with:
754754
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
755755
key: ${{ needs.job_build.outputs.dependency_cache_key }}
756756
- name: Check build cache
757-
uses: actions/cache@v3
757+
uses: actions/cache/restore@v3
758758
with:
759759
path: ${{ env.CACHED_BUILD_PATHS }}
760760
key: ${{ env.BUILD_CACHE_KEY }}
@@ -812,12 +812,12 @@ jobs:
812812
- name: Set up Node
813813
uses: volta-cli/action@v4
814814
- name: Check dependency cache
815-
uses: actions/cache@v3
815+
uses: actions/cache/restore@v3
816816
with:
817817
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
818818
key: ${{ needs.job_build.outputs.dependency_cache_key }}
819819
- name: Check build cache
820-
uses: actions/cache@v3
820+
uses: actions/cache/restore@v3
821821
with:
822822
path: ${{ env.CACHED_BUILD_PATHS }}
823823
key: ${{ env.BUILD_CACHE_KEY }}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Add size info to release
2+
on:
3+
release:
4+
types:
5+
- published
6+
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: Which version to add size info for
10+
required: false
11+
12+
# This workflow is triggered when a release is published
13+
# It fetches the size-limit info from the release branch and adds it to the release
14+
jobs:
15+
release-size-info:
16+
runs-on: ubuntu-20.04
17+
name: 'Add size-limit info to release'
18+
19+
steps:
20+
# https://github.com/actions-ecosystem/action-regex-match
21+
- uses: actions-ecosystem/action-regex-match@v2
22+
id: head_version
23+
with:
24+
# Parse version from head ref, which is refs/tags/<tag_name>
25+
text: ${{ github.head_ref }}
26+
regex: '^refs\/tags\/([\d.]+)$'
27+
28+
- name: Get version
29+
id: get_version
30+
run: echo "version=${{ github.event.inputs.version || steps.head_version.outputs.match }}" >> $GITHUB_OUTPUT
31+
32+
- name: Update Github Release
33+
if: steps.get_version.outputs.version != ''
34+
uses: getsentry/size-limit-release@v1
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
version: ${{ steps.get_version.outputs.version }}
38+
workflow_name: 'Build & Test'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ sentry-node-serverless-*.zip
2121
jest/transformers/*.js
2222
# node tarballs
2323
packages/*/sentry-*.tgz
24+
.nxcache
2425

2526
# logs
2627
yarn-error.log

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*.md
2+
.nxcache

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@
44

55
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66

7+
## 7.38.0
8+
9+
- feat: Put `abs_path` into stack frame object (#7167)
10+
- feat(integrations): Deprecate `Offline` integration (#7063)
11+
- feat(otel): Convert exception otel events to sentry errors (#7165)
12+
- feat(replay): Change LCP calculation (#7187)
13+
- feat(tracing): Support Apollo/GraphQL with NestJS (#7194)
14+
- feat(tracing): Track `PerformanceResourceTiming.renderBlockingStatus` (#7127)
15+
- feat(tracing|core): Remove transaction name change recording (#7197)
16+
- fix(browser): Ensure dedupe integration ignores non-errors (#7172)
17+
- fix(core): Skip empty integrations (#7204)
18+
- fix(nextjs): Fix faulty import in Next.js .d.ts (#7175)
19+
- fix(otel): Make otel.kind be a string (#7182)
20+
- fix(react): Make fallback render types more accurate (#7198)
21+
- fix(replay): Debounced flushes not respecting `maxWait` (#7207, #7208)
22+
- ref(replay): Improve logging for stopped replay (#7174)
23+
24+
Work in this release contributed by @lucas-zimermann. Thank you for your contribution!
25+
726
## 7.37.2
827

928
This release includes changes and fixes around text masking and blocking in Replay's `rrweb` dependency. See versions [1.102.0](https://github.com/getsentry/rrweb/releases/tag/1.102.0) and [1.103.0](https://github.com/getsentry/rrweb/releases/tag/1.103.0).

nx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"build:transpile",
99
"build:types",
1010
"lint:eslint"
11-
]
11+
],
12+
"cacheDirectory": ".nxcache"
1213
}
1314
}
1415
},

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"circularDepCheck": "lerna run circularDepCheck",
1515
"clean": "run-p clean:build clean:caches",
1616
"clean:build": "lerna run clean",
17-
"clean:caches": "yarn rimraf eslintcache && yarn jest --clearCache",
17+
"clean:caches": "yarn rimraf eslintcache .nxcache && yarn jest --clearCache",
1818
"clean:deps": "lerna clean --yes && rm -rf node_modules && yarn",
1919
"clean:all": "run-p clean:build clean:caches clean:deps",
2020
"codecov": "codecov",
@@ -26,7 +26,8 @@
2626
"postpublish": "lerna run --stream --concurrency 1 postpublish",
2727
"test": "lerna run --ignore @sentry-internal/* test",
2828
"test-ci-browser": "lerna run test --ignore \"@sentry/{node,opentelemetry-node,serverless,nextjs,remix,gatsby}\" --ignore @sentry-internal/*",
29-
"test-ci-node": "ts-node ./scripts/node-unit-tests.ts"
29+
"test-ci-node": "ts-node ./scripts/node-unit-tests.ts",
30+
"test:update-snapshots": "lerna run test:update-snapshots"
3031
},
3132
"volta": {
3233
"node": "16.19.0",
@@ -51,6 +52,7 @@
5152
"packages/react",
5253
"packages/remix",
5354
"packages/replay",
55+
"packages/replay-worker",
5456
"packages/serverless",
5557
"packages/svelte",
5658
"packages/tracing",

packages/browser/src/integrations/dedupe.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ export class Dedupe implements Integration {
2323
*/
2424
public setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void {
2525
const eventProcessor: EventProcessor = currentEvent => {
26+
// We want to ignore any non-error type events, e.g. transactions or replays
27+
// These should never be deduped, and also not be compared against as _previousEvent.
28+
if (currentEvent.type) {
29+
return currentEvent;
30+
}
31+
2632
const self = getCurrentHub().getIntegration(Dedupe);
2733
if (self) {
2834
// Juuust in case something goes wrong

0 commit comments

Comments
 (0)