Skip to content

Commit 9cee63b

Browse files
authored
Merge branch 'develop' into feat/node-runtime-metrics
2 parents c330b28 + 66b48de commit 9cee63b

290 files changed

Lines changed: 7921 additions & 1396 deletions

File tree

Some content is hidden

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

.claude/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"env": { "ENABLE_LSP_TOOL": "1" },
23
"permissions": {
34
"allow": [
45
"Bash(find:*)",

.craft.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
minVersion: '0.23.1'
2-
changelogPolicy: simple
2+
changelog:
3+
policy: simple
34
preReleaseCommand: bash scripts/craft-pre-release.sh
45
targets:
56
# NPM Targets
@@ -100,6 +101,9 @@ targets:
100101
- name: npm
101102
id: '@sentry/nestjs'
102103
includeNames: /^sentry-nestjs-\d.*\.tgz$/
104+
- name: npm
105+
id: '@sentry/effect'
106+
includeNames: /^sentry-effect-\d.*\.tgz$/
103107

104108
## 6. Fullstack/Meta Frameworks (depending on Node and Browser or Framework SDKs)
105109
- name: npm
@@ -237,3 +241,9 @@ targets:
237241
onlyIfPresent: /^sentry-vue-\d.*\.tgz$/
238242
'npm:@sentry/wasm':
239243
onlyIfPresent: /^sentry-wasm-\d.*\.tgz$/
244+
'npm:@sentry/effect':
245+
name: 'Sentry Effect SDK'
246+
sdkName: 'sentry.javascript.effect'
247+
packageUrl: 'https://www.npmjs.com/package/@sentry/effect'
248+
mainDocsUrl: 'https://docs.sentry.io/platforms/javascript/guides/effect/'
249+
onlyIfPresent: /^sentry-effect-\d.*\.tgz$/

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ body:
4545
- '@sentry/cloudflare'
4646
- '@sentry/cloudflare - hono'
4747
- '@sentry/deno'
48+
- '@sentry/effect'
4849
- '@sentry/ember'
4950
- '@sentry/gatsby'
5051
- '@sentry/google-cloud-serverless'

.github/workflows/auto-release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ on:
66
branches:
77
- master
88

9-
# This workflow tirggers a release when merging a branch with the pattern `prepare-release/VERSION` into master.
9+
# This workflow triggers a release when merging a branch with the pattern `prepare-release/VERSION` into master.
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
1014
jobs:
1115
release:
1216
runs-on: ubuntu-24.04
@@ -47,7 +51,7 @@ jobs:
4751
node-version-file: 'package.json'
4852

4953
- name: Prepare release
50-
uses: getsentry/action-prepare-release@v1
54+
uses: getsentry/craft@013a7b2113c2cac0ff32d5180cfeaefc7c9ce5b6 # v2.24.1
5155
if:
5256
github.event.pull_request.merged == true && steps.version-regex.outputs.match != '' &&
5357
steps.get_version.outputs.version != ''

.github/workflows/build.yml

Lines changed: 8 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -65,59 +65,11 @@ env:
6565

6666
jobs:
6767
job_get_metadata:
68-
name: Get Metadata
69-
runs-on: ubuntu-24.04
68+
uses: ./.github/workflows/ci-metadata.yml
69+
with:
70+
head_commit: ${{ github.event.inputs.commit || github.sha }}
7071
permissions:
7172
pull-requests: read
72-
steps:
73-
- name: Check out current commit
74-
uses: actions/checkout@v6
75-
with:
76-
ref: ${{ env.HEAD_COMMIT }}
77-
# We need to check out not only the fake merge commit between the PR and the base branch which GH creates, but
78-
# also its parents, so that we can pull the commit message from the head commit of the PR
79-
fetch-depth: 2
80-
81-
- name: Get metadata
82-
id: get_metadata
83-
# We need to try a number of different options for finding the head commit, because each kind of trigger event
84-
# stores it in a different location
85-
run: |
86-
COMMIT_SHA=$(git rev-parse --short ${{ github.event.pull_request.head.sha || github.event.head_commit.id || env.HEAD_COMMIT }})
87-
echo "COMMIT_SHA=$COMMIT_SHA" >> $GITHUB_ENV
88-
echo "COMMIT_MESSAGE=$(git log -n 1 --pretty=format:%s $COMMIT_SHA)" >> $GITHUB_ENV
89-
90-
# Most changed packages are determined in job_build via Nx
91-
- name: Determine changed packages
92-
uses: dorny/paths-filter@v3.0.1
93-
id: changed
94-
with:
95-
filters: |
96-
workflow:
97-
- '.github/**'
98-
any_code:
99-
- '!**/*.md'
100-
101-
- name: Get PR labels
102-
id: pr-labels
103-
uses: mydea/pr-labels-action@fn/bump-node20
104-
105-
outputs:
106-
commit_label: '${{ env.COMMIT_SHA }}: ${{ env.COMMIT_MESSAGE }}'
107-
# Note: These next three have to be checked as strings ('true'/'false')!
108-
is_base_branch:
109-
${{ github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/v9' || github.ref == 'refs/heads/v8'}}
110-
is_release: ${{ startsWith(github.ref, 'refs/heads/release/') }}
111-
changed_ci: ${{ steps.changed.outputs.workflow == 'true' }}
112-
changed_any_code: ${{ steps.changed.outputs.any_code == 'true' }}
113-
114-
# When merging into master, or from master
115-
is_gitflow_sync: ${{ github.head_ref == 'master' || github.ref == 'refs/heads/master' }}
116-
has_gitflow_label:
117-
${{ github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' Gitflow ') }}
118-
force_skip_cache:
119-
${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' &&
120-
contains(steps.pr-labels.outputs.labels, ' ci-skip-cache ')) }}
12173

12274
job_build:
12375
name: Build
@@ -1017,6 +969,11 @@ jobs:
1017969
with:
1018970
use-installer: true
1019971
token: ${{ secrets.GITHUB_TOKEN }}
972+
- name: Set up Deno
973+
if: matrix.test-application == 'deno'
974+
uses: denoland/setup-deno@v2.0.3
975+
with:
976+
deno-version: v2.1.5
1020977
- name: Restore caches
1021978
uses: ./.github/actions/restore-cache
1022979
with:
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Changelog Preview
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
- synchronize
7+
- reopened
8+
- edited
9+
- labeled
10+
- unlabeled
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
statuses: write
15+
16+
jobs:
17+
changelog-preview:
18+
uses: getsentry/craft/.github/workflows/changelog-preview.yml@2.24.1
19+
secrets: inherit

.github/workflows/ci-metadata.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: 'Get Metadata'
2+
on:
3+
workflow_call:
4+
inputs:
5+
head_commit:
6+
description: 'The commit SHA to check out and test'
7+
type: string
8+
required: true
9+
outputs:
10+
commit_label:
11+
description: 'Short SHA + commit message for display'
12+
value: ${{ jobs.get_metadata.outputs.commit_label }}
13+
is_base_branch:
14+
description: 'Whether the ref is develop, v9, or v8'
15+
value: ${{ jobs.get_metadata.outputs.is_base_branch }}
16+
is_release:
17+
description: 'Whether the ref is a release branch'
18+
value: ${{ jobs.get_metadata.outputs.is_release }}
19+
changed_ci:
20+
description: 'Whether .github/** files changed'
21+
value: ${{ jobs.get_metadata.outputs.changed_ci }}
22+
changed_any_code:
23+
description: 'Whether any non-markdown files changed'
24+
value: ${{ jobs.get_metadata.outputs.changed_any_code }}
25+
is_gitflow_sync:
26+
description: 'Whether this is a gitflow sync (master merge)'
27+
value: ${{ jobs.get_metadata.outputs.is_gitflow_sync }}
28+
has_gitflow_label:
29+
description: 'Whether the PR has the Gitflow label'
30+
value: ${{ jobs.get_metadata.outputs.has_gitflow_label }}
31+
force_skip_cache:
32+
description: 'Whether to skip caching (schedule or ci-skip-cache label)'
33+
value: ${{ jobs.get_metadata.outputs.force_skip_cache }}
34+
35+
jobs:
36+
get_metadata:
37+
name: Get Metadata
38+
runs-on: ubuntu-24.04
39+
permissions:
40+
pull-requests: read
41+
steps:
42+
- name: Check out current commit
43+
uses: actions/checkout@v6
44+
with:
45+
ref: ${{ inputs.head_commit }}
46+
# We need to check out not only the fake merge commit between the PR and the base branch which GH creates, but
47+
# also its parents, so that we can pull the commit message from the head commit of the PR
48+
fetch-depth: 2
49+
50+
- name: Get metadata
51+
id: get_metadata
52+
# We need to try a number of different options for finding the head commit, because each kind of trigger event
53+
# stores it in a different location
54+
run: |
55+
COMMIT_SHA=$(git rev-parse --short ${{ github.event.pull_request.head.sha || github.event.head_commit.id || inputs.head_commit }})
56+
echo "COMMIT_SHA=$COMMIT_SHA" >> $GITHUB_ENV
57+
echo "COMMIT_MESSAGE=$(git log -n 1 --pretty=format:%s $COMMIT_SHA)" >> $GITHUB_ENV
58+
59+
# Most changed packages are determined in job_build via Nx
60+
- name: Determine changed packages
61+
uses: dorny/paths-filter@v3.0.1
62+
id: changed
63+
with:
64+
filters: |
65+
workflow:
66+
- '.github/**'
67+
any_code:
68+
- '!**/*.md'
69+
70+
- name: Get PR labels
71+
id: pr-labels
72+
uses: mydea/pr-labels-action@fn/bump-node20
73+
74+
outputs:
75+
commit_label: '${{ env.COMMIT_SHA }}: ${{ env.COMMIT_MESSAGE }}'
76+
# Note: These next three have to be checked as strings ('true'/'false')!
77+
is_base_branch:
78+
${{ github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/v9' || github.ref == 'refs/heads/v8'}}
79+
is_release: ${{ startsWith(github.ref, 'refs/heads/release/') }}
80+
changed_ci: ${{ steps.changed.outputs.workflow == 'true' }}
81+
changed_any_code: ${{ steps.changed.outputs.any_code == 'true' }}
82+
83+
# When merging into master, or from master
84+
is_gitflow_sync: ${{ github.head_ref == 'master' || github.ref == 'refs/heads/master' }}
85+
has_gitflow_label:
86+
${{ github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' Gitflow ') }}
87+
force_skip_cache:
88+
${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' &&
89+
contains(steps.pr-labels.outputs.labels, ' ci-skip-cache ')) }}

.github/workflows/issue-package-label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
"label": "Ember"
5858
},
5959
"@sentry.gatsby": {
60-
"label": "Gatbsy"
60+
"label": "Gatsby"
6161
},
6262
"@sentry.google-cloud-serverless": {
6363
"label": "Google Cloud Functions"

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@ on:
33
workflow_dispatch:
44
inputs:
55
version:
6-
description: Version to release
7-
required: true
6+
description: Version to release (or "auto")
7+
required: false
88
force:
99
description: Force a release even when there are release-blockers (optional)
1010
required: false
1111
merge_target:
1212
description: Target branch to merge into. Uses the default branch as a fallback (optional)
1313
required: false
1414
default: master
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
1519
jobs:
1620
release:
1721
runs-on: ubuntu-24.04
@@ -32,7 +36,7 @@ jobs:
3236
with:
3337
node-version-file: 'package.json'
3438
- name: Prepare release
35-
uses: getsentry/action-prepare-release@v1
39+
uses: getsentry/craft@013a7b2113c2cac0ff32d5180cfeaefc7c9ce5b6 # v2.24.1
3640
env:
3741
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
3842
with:

.oxlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"typescript/no-redundant-type-constituents": "off",
6767
"typescript/restrict-template-expressions": "off",
6868
"typescript/await-thenable": "warn",
69-
"typescript/no-base-to-string": "warn"
69+
"typescript/no-base-to-string": "off"
7070
}
7171
},
7272
{

0 commit comments

Comments
 (0)