Skip to content

Commit d1990e1

Browse files
committed
Merge branch 'develop' into feat-replay-change-stop-flush-clear-session
2 parents 756f716 + 5a3c29d commit d1990e1

File tree

328 files changed

+8790
-3009
lines changed

Some content is hidden

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

328 files changed

+8790
-3009
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ body:
2525
- type: dropdown
2626
id: package
2727
attributes:
28-
label:
29-
Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g.
30-
`bundle.tracing.min.js`) in your SDK setup.
28+
label: Which SDK are you using?
29+
description:
30+
If you're using the CDN bundles, please specify the exact bundle (e.g. `bundle.tracing.min.js`) in your SDK
31+
setup.
3132
options:
32-
- '@sentry/angular'
3333
- '@sentry/browser'
34+
- '@sentry/angular'
3435
- '@sentry/ember'
3536
- '@sentry/gatsby'
3637
- '@sentry/nextjs'
@@ -43,8 +44,8 @@ body:
4344
- '@sentry/sveltekit'
4445
- '@sentry/vue'
4546
- '@sentry/wasm'
46-
- Sentry Browser CDN bundle
4747
- Sentry Browser Loader
48+
- Sentry Browser CDN bundle
4849
validations:
4950
required: true
5051
- type: input
@@ -61,15 +62,15 @@ body:
6162
label: Framework Version
6263
description:
6364
If you're using one of our framework-specific SDKs (`@sentry/react`, for example), what version of the
64-
_framework_ (not SDK) are you using?
65+
_framework_ are you using?
6566
placeholder: ex. React 17.0.0
6667
- type: input
6768
id: link-to-sentry
6869
attributes:
6970
label: Link to Sentry event
7071
description:
71-
If applicable, provide a link to the affected event from your Sentry account. The event will only be viewable by
72-
Sentry staff.
72+
If applicable, please provide a link to the affected event from your Sentry account. The event will only be
73+
viewable by Sentry staff.
7374
placeholder: https://sentry.io/organizations/<org-slug>/issues/<issue-id>/events/<event-id>/?project=<project-id>
7475
- type: textarea
7576
id: sdk-setup

.github/workflows/build.yml

Lines changed: 46 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ jobs:
161161
with:
162162
ref: ${{ env.HEAD_COMMIT }}
163163
- name: Set up Node
164-
uses: volta-cli/action@v4
164+
uses: actions/setup-node@v3
165+
with:
166+
node-version-file: 'package.json'
165167
# we use a hash of yarn.lock as our cache key, because if it hasn't changed, our dependencies haven't changed,
166168
# so no need to reinstall them
167169
- name: Compute dependency cache key
@@ -207,8 +209,9 @@ jobs:
207209
with:
208210
ref: ${{ env.HEAD_COMMIT }}
209211
- name: Set up Node
210-
uses: volta-cli/action@v4
211-
212+
uses: actions/setup-node@v3
213+
with:
214+
node-version-file: 'package.json'
212215
- name: Check dependency cache
213216
uses: actions/cache/restore@v3
214217
with:
@@ -262,7 +265,9 @@ jobs:
262265
with:
263266
ref: ${{ env.HEAD_COMMIT }}
264267
- name: Set up Node
265-
uses: volta-cli/action@v4
268+
uses: actions/setup-node@v3
269+
with:
270+
node-version-file: 'package.json'
266271
- name: Restore caches
267272
uses: ./.github/actions/restore-cache
268273
env:
@@ -331,7 +336,9 @@ jobs:
331336
with:
332337
ref: ${{ env.HEAD_COMMIT }}
333338
- name: Set up Node
334-
uses: volta-cli/action@v4
339+
uses: actions/setup-node@v3
340+
with:
341+
node-version-file: 'package.json'
335342
- name: Restore caches
336343
uses: ./.github/actions/restore-cache
337344
env:
@@ -352,7 +359,9 @@ jobs:
352359
with:
353360
ref: ${{ env.HEAD_COMMIT }}
354361
- name: Set up Node
355-
uses: volta-cli/action@v4
362+
uses: actions/setup-node@v3
363+
with:
364+
node-version-file: 'package.json'
356365
- name: Restore caches
357366
uses: ./.github/actions/restore-cache
358367
env:
@@ -372,7 +381,9 @@ jobs:
372381
with:
373382
ref: ${{ env.HEAD_COMMIT }}
374383
- name: Set up Node
375-
uses: volta-cli/action@v4
384+
uses: actions/setup-node@v3
385+
with:
386+
node-version-file: 'package.json'
376387
- name: Restore caches
377388
uses: ./.github/actions/restore-cache
378389
env:
@@ -422,7 +433,7 @@ jobs:
422433
strategy:
423434
fail-fast: false
424435
matrix:
425-
node: [8, 10, 12, 14, 16, 18]
436+
node: [8, 10, 12, 14, 16, 18, 20]
426437
steps:
427438
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
428439
uses: actions/checkout@v3
@@ -526,7 +537,9 @@ jobs:
526537
with:
527538
ref: ${{ env.HEAD_COMMIT }}
528539
- name: Set up Node
529-
uses: volta-cli/action@v4
540+
uses: actions/setup-node@v3
541+
with:
542+
node-version-file: 'package.json'
530543
- name: Restore caches
531544
uses: ./.github/actions/restore-cache
532545
env:
@@ -570,6 +583,7 @@ jobs:
570583
bundle:
571584
- loader_base
572585
- loader_eager
586+
- loader_debug
573587
- loader_tracing
574588
- loader_replay
575589
- loader_tracing_replay
@@ -580,7 +594,9 @@ jobs:
580594
with:
581595
ref: ${{ env.HEAD_COMMIT }}
582596
- name: Set up Node
583-
uses: volta-cli/action@v4
597+
uses: actions/setup-node@v3
598+
with:
599+
node-version-file: 'package.json'
584600
- name: Restore caches
585601
uses: ./.github/actions/restore-cache
586602
env:
@@ -631,7 +647,9 @@ jobs:
631647
with:
632648
ref: ${{ env.HEAD_COMMIT }}
633649
- name: Set up Node
634-
uses: volta-cli/action@v4
650+
uses: actions/setup-node@v3
651+
with:
652+
node-version-file: 'package.json'
635653
- name: Restore caches
636654
uses: ./.github/actions/restore-cache
637655
env:
@@ -655,7 +673,9 @@ jobs:
655673
with:
656674
ref: ${{ env.HEAD_COMMIT }}
657675
- name: Set up Node
658-
uses: volta-cli/action@v4
676+
uses: actions/setup-node@v3
677+
with:
678+
node-version-file: 'package.json'
659679
- name: Restore caches
660680
uses: ./.github/actions/restore-cache
661681
env:
@@ -678,7 +698,7 @@ jobs:
678698
strategy:
679699
fail-fast: false
680700
matrix:
681-
node: [10, 12, 14, 16, 18]
701+
node: [10, 12, 14, 16, 18, 20]
682702
steps:
683703
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
684704
uses: actions/checkout@v3
@@ -730,7 +750,7 @@ jobs:
730750
yarn test:integration:ci
731751
732752
job_e2e_tests:
733-
name: E2E Tests
753+
name: E2E Tests (Shard ${{ matrix.shard }})
734754
# We only run E2E tests for non-fork PRs because the E2E tests require secrets to work and they can't be accessed from forks
735755
# Dependabot PRs sadly also don't have access to secrets, so we skip them as well
736756
if:
@@ -739,13 +759,19 @@ jobs:
739759
needs: [job_get_metadata, job_build]
740760
runs-on: ubuntu-20.04
741761
timeout-minutes: 20
762+
strategy:
763+
fail-fast: false
764+
matrix:
765+
shard: [1, 2, 3]
742766
steps:
743767
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
744768
uses: actions/checkout@v3
745769
with:
746770
ref: ${{ env.HEAD_COMMIT }}
747771
- name: Set up Node
748-
uses: volta-cli/action@v4
772+
uses: actions/setup-node@v3
773+
with:
774+
node-version-file: 'package.json'
749775
- name: Restore caches
750776
uses: ./.github/actions/restore-cache
751777
env:
@@ -761,6 +787,8 @@ jobs:
761787
E2E_TEST_DSN: ${{ secrets.E2E_TEST_DSN }}
762788
E2E_TEST_SENTRY_ORG_SLUG: 'sentry-javascript-sdks'
763789
E2E_TEST_SENTRY_TEST_PROJECT: 'sentry-javascript-e2e-tests'
790+
E2E_TEST_SHARD: ${{ matrix.shard }}
791+
E2E_TEST_SHARD_AMOUNT: 3
764792
run: |
765793
cd packages/e2e-tests
766794
yarn test:e2e
@@ -803,7 +831,9 @@ jobs:
803831
with:
804832
ref: ${{ env.HEAD_COMMIT }}
805833
- name: Set up Node
806-
uses: volta-cli/action@v4
834+
uses: actions/setup-node@v3
835+
with:
836+
node-version-file: 'package.json'
807837
- name: Restore caches
808838
uses: ./.github/actions/restore-cache
809839
env:

.github/workflows/canary.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ jobs:
2020
job_canary_test:
2121
name: Canary Tests
2222
runs-on: ubuntu-20.04
23-
timeout-minutes: 30
23+
timeout-minutes: 60
2424
steps:
2525
- name: 'Check out current commit'
2626
uses: actions/checkout@v3
2727
with:
2828
ref: ${{ env.HEAD_COMMIT }}
2929
- name: Set up Node
30-
uses: volta-cli/action@v4
30+
uses: actions/setup-node@v3
31+
with:
32+
node-version-file: 'package.json'
3133
- name: Install dependencies
3234
run: yarn install --ignore-engines --frozen-lockfile
3335
- name: Build packages
@@ -70,8 +72,9 @@ jobs:
7072
with:
7173
ref: ${{ env.HEAD_COMMIT }}
7274
- name: Set up Node
73-
uses: volta-cli/action@v4
74-
75+
uses: actions/setup-node@v3
76+
with:
77+
node-version-file: 'package.json'
7578
- name: Install dependencies
7679
run: yarn install --ignore-engines --frozen-lockfile
7780

.github/workflows/flaky-test-detector.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
- 'packages/browser-integration-tests/suites/**'
77
branches-ignore:
88
- master
9-
- develop
109

1110
env:
1211
HEAD_COMMIT: ${{ github.event.inputs.commit || github.sha }}
@@ -27,12 +26,15 @@ jobs:
2726
runs-on: ubuntu-20.04
2827
timeout-minutes: 60
2928
name: 'Check tests for flakiness'
29+
# Also skip if PR is from master -> develop
30+
if: ${{ github.base_ref != 'master' && github.ref != 'refs/heads/master' }}
3031
steps:
3132
- name: Check out current branch
3233
uses: actions/checkout@v3
3334
- name: Set up Node
34-
uses: volta-cli/action@v4
35-
35+
uses: actions/setup-node@v3
36+
with:
37+
node-version-file: 'package.json'
3638
- name: Install dependencies
3739
run: yarn install --ignore-engines --frozen-lockfile
3840

.github/workflows/gitflow-sync-develop.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ jobs:
3939
github_token: ${{ secrets.REPO_SCOPED_TOKEN }}
4040

4141
- name: Enable automerge for PR
42-
run: gh pr merge --merge --auto "1"
42+
if: steps.open-pr.outputs.pr_number != ''
43+
run: gh pr merge --merge --auto "${{ steps.open-pr.outputs.pr_number }}"
44+
env:
45+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4346

4447
# https://github.com/marketplace/actions/auto-approve
4548
- name: Auto approve PR
46-
# Always skip this for now, until we got a proper bot setup
4749
if: steps.open-pr.outputs.pr_number != ''
4850
uses: hmarr/auto-approve-action@v3
4951
with:
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'Tag issues with last commenter'
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
toggle_labels:
9+
name: Toggle Labels
10+
runs-on: ubuntu-latest
11+
if: ${{ !github.event.issue.pull_request }}
12+
steps:
13+
- name: Add label if commenter is not member
14+
# Note: We only add the label if the issue is still open
15+
if: |
16+
github.event.comment.author_association != 'COLLABORATOR'
17+
&& github.event.comment.author_association != 'MEMBER'
18+
&& github.event.comment.author_association != 'OWNER'
19+
&& !github.event.issue.closed
20+
uses: actions-ecosystem/action-add-labels@v1
21+
with:
22+
labels: 'Waiting for: Team'
23+
24+
- name: Remove label if commenter is member
25+
if: |
26+
github.event.comment.author_association == 'COLLABORATOR'
27+
|| github.event.comment.author_association == 'MEMBER'
28+
|| github.event.comment.author_association == 'OWNER'
29+
uses: actions-ecosystem/action-remove-labels@v1
30+
with:
31+
labels: 'Waiting for: Team'

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.md
22
.nxcache
3+
packages/browser-integration-tests/fixtures

0 commit comments

Comments
 (0)