Skip to content

Commit ed30d5a

Browse files
authored
Merge branch 'develop' into feat-replay-add-privacy-test
2 parents 4d6686a + a9bf858 commit ed30d5a

File tree

21 files changed

+338
-213
lines changed

21 files changed

+338
-213
lines changed

.github/workflows/auto-release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Gitflow - Auto prepare release
2+
on:
3+
pull_request:
4+
types:
5+
- closed
6+
branches:
7+
- master
8+
9+
# This workflow tirggers a release when merging a branch with the pattern `prepare-release/VERSION` into master.
10+
jobs:
11+
release:
12+
runs-on: ubuntu-20.04
13+
name: 'Prepare a new version'
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
token: ${{ secrets.GH_RELEASE_PAT }}
19+
fetch-depth: 0
20+
21+
# https://github.com/actions-ecosystem/action-regex-match
22+
- uses: actions-ecosystem/action-regex-match@v2
23+
id: version
24+
with:
25+
# Parse version from head branch
26+
text: ${{ github.head_ref }}
27+
# match: refs/heads/preprare-release/xx.xx.xx
28+
regex: '^refs\/heads\/preprare-release\/(\d+\.\d+\.\d+)$'
29+
30+
- name: Prepare release
31+
uses: getsentry/action-prepare-release@v1
32+
if: github.event.pull_request.merged == true && steps.version.outputs.match != ''
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
35+
with:
36+
version: ${{ steps.version.outputs.match != '' }}
37+
force: false
38+
merge_target: master

.github/workflows/build.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,12 @@ jobs:
137137
# Note: These next three have to be checked as strings ('true'/'false')!
138138
is_develop: ${{ github.ref == 'refs/heads/develop' }}
139139
is_release: ${{ startsWith(github.ref, 'refs/heads/release/') }}
140-
is_gitflow_sync: ${{ github.head_ref == 'refs/heads/develop' || github.head_ref == 'refs/heads/master' }}
141-
has_gitflow_label: ${{ github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' Gitflow ') }}
142-
force_skip_cache: ${{ github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' ci-skip-cache ') }}
140+
# When merging into master, or from master
141+
is_gitflow_sync: ${{ github.head_ref == 'refs/heads/master' || github.ref == 'refs/heads/master' }}
142+
has_gitflow_label:
143+
${{ github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' Gitflow ') }}
144+
force_skip_cache:
145+
${{ github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' ci-skip-cache ') }}
143146

144147
job_install_deps:
145148
name: Install Dependencies
@@ -162,17 +165,14 @@ jobs:
162165
id: compute_lockfile_hash
163166
run: echo "hash=${{ hashFiles('yarn.lock') }}" >> "$GITHUB_OUTPUT"
164167

165-
# When the `ci-skip-cache` label is added to a PR, we always want to skip dependency cache
166168
- name: Check dependency cache
167169
uses: actions/cache@v3
168170
id: cache_dependencies
169-
if: needs.job_get_metadata.outputs.force_skip_cache == 'false'
170171
with:
171172
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
172173
key: ${{ steps.compute_lockfile_hash.outputs.hash }}
173174

174175
- name: Install dependencies
175-
if: steps.cache_dependencies.outputs.cache-hit == '' || needs.job_get_metadata.outputs.force_skip_cache == 'true'
176176
run: yarn install --ignore-engines --frozen-lockfile
177177
outputs:
178178
dependency_cache_key: ${{ steps.compute_lockfile_hash.outputs.hash }}
@@ -215,7 +215,8 @@ jobs:
215215
path: node_modules/.cache/nx
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
218-
restore-keys: ${{needs.job_get_metadata.outputs.is_develop == 'false' && env.NX_CACHE_RESTORE_KEYS || 'nx-never-restore'}}
218+
restore-keys:
219+
${{needs.job_get_metadata.outputs.is_develop == 'false' && env.NX_CACHE_RESTORE_KEYS || 'nx-never-restore'}}
219220

220221
- name: Build packages
221222
# Under normal circumstances, using the git SHA as a cache key, there shouldn't ever be a cache hit on the built
@@ -468,7 +469,7 @@ jobs:
468469
strategy:
469470
fail-fast: false
470471
matrix:
471-
node: [10, 12, 14, 16, 18]
472+
node: [10, 12, 14, 16, '18.13.0']
472473
steps:
473474
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
474475
uses: actions/checkout@v3
@@ -798,7 +799,9 @@ jobs:
798799
needs: [job_get_metadata, job_build]
799800
runs-on: ubuntu-20.04
800801
timeout-minutes: 30
801-
if: contains(github.event.pull_request.labels.*.name, 'ci-overhead-measurements') || needs.job_get_metadata.outputs.is_develop == 'true'
802+
if: |
803+
contains(github.event.pull_request.labels.*.name, 'ci-overhead-measurements') ||
804+
needs.job_get_metadata.outputs.is_develop == 'true'
802805
steps:
803806
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
804807
uses: actions/checkout@v3

.github/workflows/clear-cache.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Clear all GHA caches
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
clear-caches:
7+
name: Delete all caches
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- name: Clear caches
11+
uses: easimon/wipe-cache@v2

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

Lines changed: 0 additions & 61 deletions
This file was deleted.

CHANGELOG.md

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

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

7+
## 7.37.0
8+
9+
- feat: Add source map debug ids (#7068)
10+
- feat(browser): Add IndexedDb offline transport store (#6983)
11+
- feat(nextjs): Add auto-wrapping for server components (#6953)
12+
- feat(replay): Improve rrweb error ignoring (#7087 & #7094)
13+
- feat(replay): Send client_report when replay sending fails (#7093)
14+
- fix(node): `LocalVariables`, Improve frame matching for ESM (#7049)
15+
- fix(node): Add lru cache to http integration span map (#7064)
16+
- fix(replay): Export Replay from Sentry namespace in full CDN bundle (#7119)
17+
18+
Work in this release contributed by @JamesHenry. Thank you for your contribution!
19+
720
## 7.36.0
821

922
This Release re-introduces the accidentally removed but still deprecated `maskInputOptions` option for Session Replay.

docs/publishing-a-release.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ _These steps are only relevant to Sentry employees when preparing and publishing
66
**If you want to release a new SDK for the first time, be sure to follow the [New SDK Release Checklist](./new-sdk-release-checklist.md)**
77

88
1. Determine what version will be released (we use [semver](https://semver.org)).
9-
2. Update [`CHANGELOG.md`](https://github.com/getsentry/sentry-javascript/edit/master/CHANGELOG.md) to add an entry for the next release number and a list of changes since the last release. (See details below.)
10-
a. Merging the Changelog PR will automatically trigger a sync from `develop` -> `master`
11-
3. Run the [Prepare Release](https://github.com/getsentry/sentry-javascript/actions/workflows/release.yml) workflow.
12-
a. Wait for this until the sync to `master` is completed.
13-
4. A new issue should appear in https://github.com/getsentry/publish/issues.
14-
5. Ask a member of the [@getsentry/releases team](https://github.com/orgs/getsentry/teams/releases/members) to approve the release.
9+
2. Create a branch `prepare-release/VERSION`, eg. `prepare-release/7.37.0`, off develop
10+
3. Update [`CHANGELOG.md`](https://github.com/getsentry/sentry-javascript/edit/master/CHANGELOG.md) to add an entry for the next release number and a list of changes since the last release. (See details below.)
11+
4. Create a PR towards `master` branch
12+
5. When the PR is merged, it will automatically trigger the [Prepare Release](https://github.com/getsentry/sentry-javascript/actions/workflows/release.yml) on master.
13+
6. A new issue should appear in https://github.com/getsentry/publish/issues.
14+
7. Ask a member of the [@getsentry/releases team](https://github.com/orgs/getsentry/teams/releases/members) to approve the release.
1515
a. Once the release is completed, a sync from `master` ->` develop` will be automatically triggered
1616

1717
## Updating the Changelog
1818

19-
1. Create a new branch.
19+
1. Create a new branch `prepare-release/VERSION` off of `develop`, e.g. `prepare-release/7.37.1`.
2020
2. Run `yarn changelog` and copy everything
2121
3. Create a new section in the changelog, deciding based on the changes whether it should be a minor bump or a patch release.
2222
4. Paste in the logs you copied earlier.
2323
5. Delete any which aren't user-facing changes.
2424
7. If any of the PRs are from external contributors, include underneath the commits `Work in this release contributed by <list of external contributors' GitHub usernames>. Thank you for your contributions!`. If there's only one external PR, don't forget to remove the final `s`. If there are three or more, use an Oxford comma. (It's in the Sentry styleguide!)
25-
8. Commit, push, and open a PR with the title `meta: Update changelog for <fill in relevant version here>` against `develop` branch.
25+
8. Commit, push, and open a PR with the title `meta(changelog): Update changelog for VERSION` against `master` branch.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"scripts": {
4-
"build": "node ./scripts/verify-packages-versions.js && lerna run build:types,build:transpile,build:bundle",
4+
"build": "node ./scripts/verify-packages-versions.js && run-s build:types build:transpile build:bundle",
55
"build:bundle": "lerna run build:bundle",
66
"build:dev": "lerna run build:types,build:transpile",
77
"build:dev:filter": "lerna run build:dev --include-filtered-dependencies --include-filtered-dependents --scope",
@@ -109,8 +109,7 @@
109109
"typescript": "3.8.3"
110110
},
111111
"resolutions": {
112-
"**/agent-base": "5",
113-
"@types/express-serve-static-core": "4.17.30"
112+
"**/agent-base": "5"
114113
},
115114
"version": "0.0.0",
116115
"name": "sentry-javascript"

0 commit comments

Comments
 (0)