Skip to content

Commit f884c09

Browse files
authored
Merge pull request #15364 from getsentry/prepare-release/9.0.1
meta(changelog): Update changelog for 9.0.1
2 parents a39bd3d + 1774a9e commit f884c09

Some content is hidden

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

62 files changed

+2175
-63
lines changed

.github/workflows/auto-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
# This workflow tirggers a release when merging a branch with the pattern `prepare-release/VERSION` into master.
1010
jobs:
1111
release:
12-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-20.04
1313
name: 'Prepare a new version'
1414

1515
steps:

.github/workflows/build.yml

+51-19
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ env:
6262
jobs:
6363
job_get_metadata:
6464
name: Get Metadata
65-
runs-on: ubuntu-22.04
65+
runs-on: ubuntu-20.04
6666
permissions:
6767
pull-requests: read
6868
steps:
@@ -118,7 +118,7 @@ jobs:
118118
job_build:
119119
name: Build
120120
needs: job_get_metadata
121-
runs-on: ubuntu-22.04
121+
runs-on: ubuntu-20.04
122122
timeout-minutes: 15
123123
if: |
124124
needs.job_get_metadata.outputs.changed_any_code == 'true' ||
@@ -196,7 +196,7 @@ jobs:
196196
job_check_branches:
197197
name: Check PR branches
198198
needs: job_get_metadata
199-
runs-on: ubuntu-22.04
199+
runs-on: ubuntu-20.04
200200
if: github.event_name == 'pull_request'
201201
permissions:
202202
pull-requests: write
@@ -212,7 +212,7 @@ jobs:
212212
name: Size Check
213213
needs: [job_get_metadata, job_build]
214214
timeout-minutes: 15
215-
runs-on: ubuntu-22.04
215+
runs-on: ubuntu-20.04
216216
if:
217217
github.event_name == 'pull_request' || needs.job_get_metadata.outputs.is_base_branch == 'true' ||
218218
needs.job_get_metadata.outputs.is_release == 'true'
@@ -242,7 +242,7 @@ jobs:
242242
# inter-package dependencies resolve cleanly.
243243
needs: [job_get_metadata, job_build]
244244
timeout-minutes: 10
245-
runs-on: ubuntu-22.04
245+
runs-on: ubuntu-20.04
246246
steps:
247247
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
248248
uses: actions/checkout@v4
@@ -267,7 +267,7 @@ jobs:
267267
name: Check file formatting
268268
needs: [job_get_metadata]
269269
timeout-minutes: 10
270-
runs-on: ubuntu-22.04
270+
runs-on: ubuntu-20.04
271271
steps:
272272
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
273273
uses: actions/checkout@v4
@@ -290,7 +290,7 @@ jobs:
290290
name: Circular Dependency Check
291291
needs: [job_get_metadata, job_build]
292292
timeout-minutes: 10
293-
runs-on: ubuntu-22.04
293+
runs-on: ubuntu-20.04
294294
steps:
295295
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
296296
uses: actions/checkout@v4
@@ -310,7 +310,7 @@ jobs:
310310
job_artifacts:
311311
name: Upload Artifacts
312312
needs: [job_get_metadata, job_build]
313-
runs-on: ubuntu-22.04
313+
runs-on: ubuntu-20.04
314314
# Build artifacts are only needed for releasing workflow.
315315
if: needs.job_get_metadata.outputs.is_release == 'true'
316316
steps:
@@ -347,7 +347,7 @@ jobs:
347347
name: Browser Unit Tests
348348
needs: [job_get_metadata, job_build]
349349
timeout-minutes: 10
350-
runs-on: ubuntu-22.04
350+
runs-on: ubuntu-20.04
351351
steps:
352352
- name: Check out base commit (${{ github.event.pull_request.base.sha }})
353353
uses: actions/checkout@v4
@@ -381,12 +381,20 @@ jobs:
381381
with:
382382
token: ${{ secrets.CODECOV_TOKEN }}
383383

384+
- name: Upload test results to Codecov
385+
if: cancelled() == false
386+
continue-on-error: true
387+
uses: codecov/test-results-action@v1
388+
with:
389+
files: packages/**/*.junit.xml
390+
token: ${{ secrets.CODECOV_TOKEN }}
391+
384392
job_bun_unit_tests:
385393
name: Bun Unit Tests
386394
needs: [job_get_metadata, job_build]
387395
if: needs.job_build.outputs.changed_bun == 'true' || github.event_name != 'pull_request'
388396
timeout-minutes: 10
389-
runs-on: ubuntu-22.04
397+
runs-on: ubuntu-20.04
390398
strategy:
391399
fail-fast: false
392400
steps:
@@ -413,7 +421,7 @@ jobs:
413421
needs: [job_get_metadata, job_build]
414422
if: needs.job_build.outputs.changed_deno == 'true' || github.event_name != 'pull_request'
415423
timeout-minutes: 10
416-
runs-on: ubuntu-22.04
424+
runs-on: ubuntu-20.04
417425
strategy:
418426
fail-fast: false
419427
steps:
@@ -443,7 +451,7 @@ jobs:
443451
name: Node (${{ matrix.node }}) Unit Tests
444452
needs: [job_get_metadata, job_build]
445453
timeout-minutes: 10
446-
runs-on: ubuntu-22.04
454+
runs-on: ubuntu-20.04
447455
strategy:
448456
fail-fast: false
449457
matrix:
@@ -484,6 +492,14 @@ jobs:
484492
with:
485493
token: ${{ secrets.CODECOV_TOKEN }}
486494

495+
- name: Upload test results to Codecov
496+
if: cancelled() == false
497+
continue-on-error: true
498+
uses: codecov/test-results-action@v1
499+
with:
500+
files: packages/**/*.junit.xml
501+
token: ${{ secrets.CODECOV_TOKEN }}
502+
487503
job_browser_playwright_tests:
488504
name: Playwright ${{ matrix.bundle }}${{ matrix.project && matrix.project != 'chromium' && format(' {0}', matrix.project) || ''}}${{ matrix.shard && format(' ({0}/{1})', matrix.shard, matrix.shards) || ''}} Tests
489505
needs: [job_get_metadata, job_build]
@@ -578,7 +594,7 @@ jobs:
578594
name: PW ${{ matrix.bundle }} Tests
579595
needs: [job_get_metadata, job_build]
580596
if: needs.job_build.outputs.changed_browser_integration == 'true' || github.event_name != 'pull_request'
581-
runs-on: ubuntu-22.04
597+
runs-on: ubuntu-20.04
582598
timeout-minutes: 15
583599
strategy:
584600
fail-fast: false
@@ -638,7 +654,7 @@ jobs:
638654
job_check_for_faulty_dts:
639655
name: Check for faulty .d.ts files
640656
needs: [job_get_metadata, job_build]
641-
runs-on: ubuntu-22.04
657+
runs-on: ubuntu-20.04
642658
timeout-minutes: 5
643659
steps:
644660
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
@@ -666,7 +682,7 @@ jobs:
666682
Tests
667683
needs: [job_get_metadata, job_build]
668684
if: needs.job_build.outputs.changed_node_integration == 'true' || github.event_name != 'pull_request'
669-
runs-on: ubuntu-22.04
685+
runs-on: ubuntu-20.04
670686
timeout-minutes: 15
671687
strategy:
672688
fail-fast: false
@@ -701,11 +717,19 @@ jobs:
701717
working-directory: dev-packages/node-integration-tests
702718
run: yarn test
703719

720+
- name: Upload test results to Codecov
721+
if: cancelled() == false
722+
continue-on-error: true
723+
uses: codecov/test-results-action@v1
724+
with:
725+
directory: dev-packages/node-integration-tests
726+
token: ${{ secrets.CODECOV_TOKEN }}
727+
704728
job_remix_integration_tests:
705729
name: Remix (Node ${{ matrix.node }}) Tests
706730
needs: [job_get_metadata, job_build]
707731
if: needs.job_build.outputs.changed_remix == 'true' || github.event_name != 'pull_request'
708-
runs-on: ubuntu-22.04
732+
runs-on: ubuntu-20.04
709733
timeout-minutes: 10
710734
strategy:
711735
fail-fast: false
@@ -737,6 +761,14 @@ jobs:
737761
cd packages/remix
738762
yarn test:integration:ci
739763
764+
- name: Upload test results to Codecov
765+
if: cancelled() == false
766+
continue-on-error: true
767+
uses: codecov/test-results-action@v1
768+
with:
769+
directory: packages/remix
770+
token: ${{ secrets.CODECOV_TOKEN }}
771+
740772
job_e2e_prepare:
741773
name: Prepare E2E tests
742774
# We want to run this if:
@@ -801,7 +833,7 @@ jobs:
801833
# See: https://github.com/actions/runner/issues/2205
802834
if: always() && needs.job_e2e_prepare.result == 'success' && needs.job_e2e_prepare.outputs.matrix != '{"include":[]}'
803835
needs: [job_get_metadata, job_build, job_e2e_prepare]
804-
runs-on: ubuntu-22.04
836+
runs-on: ubuntu-20.04
805837
timeout-minutes: 15
806838
env:
807839
# We just use a dummy DSN here, only send to the tunnel anyhow
@@ -923,7 +955,7 @@ jobs:
923955
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) &&
924956
github.actor != 'dependabot[bot]'
925957
needs: [job_get_metadata, job_build, job_e2e_prepare]
926-
runs-on: ubuntu-22.04
958+
runs-on: ubuntu-20.04
927959
timeout-minutes: 15
928960
env:
929961
E2E_TEST_AUTH_TOKEN: ${{ secrets.E2E_TEST_AUTH_TOKEN }}
@@ -1043,7 +1075,7 @@ jobs:
10431075
]
10441076
# Always run this, even if a dependent job failed
10451077
if: always()
1046-
runs-on: ubuntu-22.04
1078+
runs-on: ubuntu-20.04
10471079
steps:
10481080
- name: Check for failures
10491081
if: contains(needs.*.result, 'failure')

.github/workflows/canary.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ permissions:
2727
jobs:
2828
job_e2e_prepare:
2929
name: Prepare E2E Canary tests
30-
runs-on: ubuntu-22.04
30+
runs-on: ubuntu-20.04
3131
timeout-minutes: 30
3232
steps:
3333
- name: Check out current commit
@@ -54,7 +54,7 @@ jobs:
5454
job_e2e_tests:
5555
name: E2E ${{ matrix.label }} Test
5656
needs: [job_e2e_prepare]
57-
runs-on: ubuntu-22.04
57+
runs-on: ubuntu-20.04
5858
timeout-minutes: 20
5959
env:
6060
# We just use a dummy DSN here, only send to the tunnel anyhow

.github/workflows/clear-cache.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
jobs:
2222
clear-caches:
2323
name: Delete all caches
24-
runs-on: ubuntu-22.04
24+
runs-on: ubuntu-20.04
2525
steps:
2626
- uses: actions/checkout@v4
2727

.github/workflows/enforce-license-compliance.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717

1818
jobs:
1919
enforce-license-compliance:
20-
runs-on: ubuntu-22.04
20+
runs-on: ubuntu-20.04
2121
steps:
2222
- name: 'Enforce License Compliance'
2323
uses: getsentry/action-enforce-license-compliance@main

.github/workflows/external-contributors.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
permissions:
1313
pull-requests: write
1414
contents: write
15-
runs-on: ubuntu-22.04
15+
runs-on: ubuntu-20.04
1616
if: |
1717
github.event.pull_request.merged == true
1818
&& github.event.pull_request.author_association != 'COLLABORATOR'

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ concurrency:
2323

2424
jobs:
2525
flaky-detector:
26-
runs-on: ubuntu-22.04
26+
runs-on: ubuntu-20.04
2727
timeout-minutes: 60
2828
name: 'Check tests for flakiness'
2929
# Also skip if PR is from master -> develop

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
jobs:
1818
main:
1919
name: Create PR master->develop
20-
runs-on: ubuntu-22.04
20+
runs-on: ubuntu-20.04
2121
permissions:
2222
pull-requests: write
2323
contents: write

.github/workflows/release-comment-issues.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
# This workflow is triggered when a release is published
1313
jobs:
1414
release-comment-issues:
15-
runs-on: ubuntu-22.04
15+
runs-on: ubuntu-20.04
1616
name: 'Notify issues'
1717
steps:
1818
- name: Get version

.github/workflows/release-size-info.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
# It fetches the size-limit info from the release branch and adds it to the release
1414
jobs:
1515
release-size-info:
16-
runs-on: ubuntu-22.04
16+
runs-on: ubuntu-20.04
1717
name: 'Add size-limit info to release'
1818

1919
steps:

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
default: master
1515
jobs:
1616
release:
17-
runs-on: ubuntu-22.04
17+
runs-on: ubuntu-20.04
1818
name: 'Release a new version'
1919
steps:
2020
- name: Get auth token

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

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

13+
## 9.0.1
14+
15+
- ref(flags): rename unleash integration param ([#15343](https://github.com/getsentry/sentry-javascript/pull/15343))
16+
1317
## 9.0.0
1418

1519
Version `9.0.0` marks a release of the Sentry JavaScript SDKs that contains breaking changes.

dev-packages/browser-integration-tests/suites/integrations/featureFlags/unleash/badSignature/init.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ window.UnleashClient = class {
77
};
88

99
window.Sentry = Sentry;
10-
window.sentryUnleashIntegration = Sentry.unleashIntegration({ unleashClientClass: window.UnleashClient });
10+
window.sentryUnleashIntegration = Sentry.unleashIntegration({ featureFlagClientClass: window.UnleashClient });
1111

1212
Sentry.init({
1313
dsn: 'https://[email protected]/1337',

dev-packages/browser-integration-tests/suites/integrations/featureFlags/unleash/init.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ window.UnleashClient = class {
4141
};
4242

4343
window.Sentry = Sentry;
44-
window.sentryUnleashIntegration = Sentry.unleashIntegration({ unleashClientClass: window.UnleashClient });
44+
window.sentryUnleashIntegration = Sentry.unleashIntegration({ featureFlagClientClass: window.UnleashClient });
4545

4646
Sentry.init({
4747
dsn: 'https://[email protected]/1337',
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import * as Sentry from '@sentry/browser';
2+
3+
window.Sentry = Sentry;
4+
window.Replay = Sentry.replayIntegration({
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
7+
useCompression: false,
8+
_experiments: {
9+
autoFlushOnFeedback: true,
10+
},
11+
});
12+
13+
Sentry.init({
14+
dsn: 'https://[email protected]/1337',
15+
sampleRate: 0,
16+
replaysSessionSampleRate: 1.0,
17+
replaysOnErrorSampleRate: 0.0,
18+
19+
integrations: [window.Replay],
20+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import * as Sentry from '@sentry/browser';
2+
3+
document.getElementById('open').addEventListener('click', () => {
4+
Sentry.getClient().emit('openFeedbackWidget');
5+
});
6+
7+
document.getElementById('send').addEventListener('click', () => {
8+
Sentry.getClient().emit('beforeSendFeedback');
9+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
</head>
6+
<body>
7+
<button id="send">Send feedback</button>
8+
<button id="open">Open feedback</button>
9+
<button id="something">Something</button>
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)