Skip to content

Commit 9ce2d8e

Browse files
committed
ref: Resolve merge conflict between develop and fix/fetch-not-release
2 parents 8780cda + edbb214 commit 9ce2d8e

File tree

1,693 files changed

+24727
-10748
lines changed

Some content is hidden

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

1,693 files changed

+24727
-10748
lines changed

.craft.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ targets:
55
# NPM Targets
66
## 1. Base Packages, node or browser SDKs depend on
77
## 1.1 Types
8+
# TODO(v9): Remove
89
- name: npm
910
id: '@sentry/types'
1011
includeNames: /^sentry-types-\d.*\.tgz$/
1112
## 1.2 Utils
13+
# TODO(v9): Remove
1214
- name: npm
1315
id: '@sentry/utils'
1416
includeNames: /^sentry-utils-\d.*\.tgz$/
@@ -141,19 +143,20 @@ targets:
141143
includeNames: /^sentry-internal-eslint-config-sdk-\d.*\.tgz$/
142144

143145
# AWS Lambda Layer target
144-
- name: aws-lambda-layer
145-
includeNames: /^sentry-node-serverless-\d+.\d+.\d+(-(beta|alpha|rc)\.\d+)?\.zip$/
146-
layerName: SentryNodeServerlessSDK
147-
compatibleRuntimes:
148-
- name: node
149-
versions:
150-
- nodejs10.x
151-
- nodejs12.x
152-
- nodejs14.x
153-
- nodejs16.x
154-
- nodejs18.x
155-
- nodejs20.x
156-
license: MIT
146+
# TODO(v9): Once stable, re-add this target to publish the AWS Lambda layer
147+
# - name: aws-lambda-layer
148+
# includeNames: /^sentry-node-serverless-\d+.\d+.\d+(-(beta|alpha|rc)\.\d+)?\.zip$/
149+
# layerName: SentryNodeServerlessSDK
150+
# compatibleRuntimes:
151+
# - name: node
152+
# versions:
153+
# - nodejs10.x
154+
# - nodejs12.x
155+
# - nodejs14.x
156+
# - nodejs16.x
157+
# - nodejs18.x
158+
# - nodejs20.x
159+
# license: MIT
157160

158161
# CDN Bundle Target
159162
- name: gcs

.github/actions/install-playwright/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
browsers:
55
description: 'What browsers to install.'
66
default: 'chromium webkit firefox'
7+
cwd:
8+
description: 'The working directory to run Playwright in.'
9+
default: '.'
710

811
runs:
912
using: "composite"
@@ -12,6 +15,8 @@ runs:
1215
id: playwright-version
1316
run: echo "version=$(node -p "require('@playwright/test/package.json').version")" >> $GITHUB_OUTPUT
1417
shell: bash
18+
working-directory: ${{ inputs.cwd }}
19+
1520

1621
- name: Restore cached playwright binaries
1722
uses: actions/cache/restore@v4
@@ -26,11 +31,13 @@ runs:
2631
run: npx playwright install chromium webkit firefox --with-deps
2732
if: steps.playwright-cache.outputs.cache-hit != 'true'
2833
shell: bash
34+
working-directory: ${{ inputs.cwd }}
2935

3036
- name: Install Playwright system dependencies only (cached)
3137
run: npx playwright install-deps ${{ inputs.browsers || 'chromium webkit firefox' }}
3238
if: steps.playwright-cache.outputs.cache-hit == 'true'
3339
shell: bash
40+
working-directory: ${{ inputs.cwd }}
3441

3542
# Only store cache on develop branch
3643
- name: Store cached playwright binaries

.github/dependency-review-config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
fail-on-severity: 'high'
22
allow-ghsas:
33
# dependency review does not allow specific file exclusions
4-
# we use an older version of NextJS in our tests and thus need to
4+
# we use an older version of NextJS in our tests and thus need to
55
# exclude this
66
# once our minimum supported version is over 14.1.1 this can be removed
77
- GHSA-fr5h-rqp8-mj6g
8+
# we need this for an E2E test for the minimum required version of Nuxt 3.7.0
9+
- GHSA-v784-fjjh-f8r4
10+
# Next.js Cache poisoning - We require a vulnerable version for E2E testing
11+
- GHSA-gp8f-8m3g-qvj9

.github/workflows/auto-release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,16 @@ jobs:
1313
name: 'Prepare a new version'
1414

1515
steps:
16+
- name: Get auth token
17+
id: token
18+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
19+
with:
20+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
21+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
22+
1623
- uses: actions/checkout@v4
1724
with:
18-
token: ${{ secrets.GH_RELEASE_PAT }}
25+
token: ${{ steps.token.outputs.token }}
1926
fetch-depth: 0
2027

2128
# https://github.com/actions-ecosystem/action-regex-match
@@ -38,7 +45,7 @@ jobs:
3845
uses: getsentry/action-prepare-release@v1
3946
if: github.event.pull_request.merged == true && steps.version-regex.outputs.match != '' && steps.get_version.outputs.version != ''
4047
env:
41-
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
48+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
4249
with:
4350
version: ${{ steps.get_version.outputs.version }}
4451
force: false

.github/workflows/build.yml

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
branches:
55
- develop
66
- master
7+
- v9
8+
- v8
79
- release/**
810
pull_request:
911
merge_group:
@@ -44,7 +46,6 @@ env:
4446
${{ github.workspace }}/packages/*/build
4547
${{ github.workspace }}/packages/ember/*.d.ts
4648
${{ github.workspace }}/packages/gatsby/*.d.ts
47-
${{ github.workspace }}/packages/core/src/version.ts
4849
${{ github.workspace }}/packages/utils/cjs
4950
${{ github.workspace }}/packages/utils/esm
5051
@@ -106,7 +107,7 @@ jobs:
106107
outputs:
107108
commit_label: '${{ env.COMMIT_SHA }}: ${{ env.COMMIT_MESSAGE }}'
108109
# Note: These next three have to be checked as strings ('true'/'false')!
109-
is_develop: ${{ github.ref == 'refs/heads/develop' }}
110+
is_base_branch: ${{ github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/v9' || github.ref == 'refs/heads/v8'}}
110111
is_release: ${{ startsWith(github.ref, 'refs/heads/release/') }}
111112
changed_profiling_node: ${{ steps.changed.outputs.profiling_node == 'true' }}
112113
changed_ci: ${{ steps.changed.outputs.workflow == 'true' }}
@@ -127,7 +128,7 @@ jobs:
127128
timeout-minutes: 15
128129
if: |
129130
needs.job_get_metadata.outputs.changed_any_code == 'true' ||
130-
needs.job_get_metadata.outputs.is_develop == 'true' ||
131+
needs.job_get_metadata.outputs.is_base_branch == 'true' ||
131132
needs.job_get_metadata.outputs.is_release == 'true' ||
132133
(needs.job_get_metadata.outputs.is_gitflow_sync == 'false' && needs.job_get_metadata.outputs.has_gitflow_label == 'false')
133134
steps:
@@ -172,7 +173,7 @@ jobs:
172173
key: nx-Linux-${{ github.ref }}-${{ env.HEAD_COMMIT || github.sha }}
173174
# On develop branch, we want to _store_ the cache (so it can be used by other branches), but never _restore_ from it
174175
restore-keys:
175-
${{needs.job_get_metadata.outputs.is_develop == 'false' && env.NX_CACHE_RESTORE_KEYS || 'nx-never-restore'}}
176+
${{needs.job_get_metadata.outputs.is_base_branch == 'false' && env.NX_CACHE_RESTORE_KEYS || 'nx-never-restore'}}
176177

177178
- name: Build packages
178179
# Set the CODECOV_TOKEN for Bundle Analysis
@@ -220,7 +221,7 @@ jobs:
220221
timeout-minutes: 15
221222
runs-on: ubuntu-20.04
222223
if:
223-
github.event_name == 'pull_request' || needs.job_get_metadata.outputs.is_develop == 'true' ||
224+
github.event_name == 'pull_request' || needs.job_get_metadata.outputs.is_base_branch == 'true' ||
224225
needs.job_get_metadata.outputs.is_release == 'true'
225226
steps:
226227
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
@@ -388,7 +389,7 @@ jobs:
388389
if: github.event_name != 'pull_request'
389390

390391
- name: Compute test coverage
391-
uses: codecov/codecov-action@v4
392+
uses: codecov/codecov-action@v5
392393
with:
393394
token: ${{ secrets.CODECOV_TOKEN }}
394395

@@ -492,7 +493,7 @@ jobs:
492493
NODE_VERSION: ${{ matrix.node }}
493494

494495
- name: Compute test coverage
495-
uses: codecov/codecov-action@v4
496+
uses: codecov/codecov-action@v5
496497
with:
497498
token: ${{ secrets.CODECOV_TOKEN }}
498499

@@ -796,7 +797,8 @@ jobs:
796797
# - The build job was successful, not skipped
797798
# - AND if the profiling node bindings were either successful or skipped
798799
if: |
799-
always() && needs.job_build.result == 'success' &&
800+
always() &&
801+
needs.job_build.result == 'success' &&
800802
(needs.job_compile_bindings_profiling_node.result == 'success' || needs.job_compile_bindings_profiling_node.result == 'skipped')
801803
needs: [job_get_metadata, job_build, job_compile_bindings_profiling_node]
802804
runs-on: ubuntu-20.04-large-js
@@ -920,11 +922,6 @@ jobs:
920922
if: steps.restore-tarball-cache.outputs.cache-hit != 'true'
921923
run: yarn build:tarball
922924

923-
- name: Install Playwright
924-
uses: ./.github/actions/install-playwright
925-
with:
926-
browsers: chromium
927-
928925
- name: Get node version
929926
id: versions
930927
run: |
@@ -945,6 +942,12 @@ jobs:
945942
timeout-minutes: 7
946943
run: pnpm ${{ matrix.build-command || 'test:build' }}
947944

945+
- name: Install Playwright
946+
uses: ./.github/actions/install-playwright
947+
with:
948+
browsers: chromium
949+
cwd: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
950+
948951
- name: Run E2E test
949952
working-directory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
950953
timeout-minutes: 10
@@ -982,13 +985,16 @@ jobs:
982985
directory: dev-packages/e2e-tests
983986
token: ${{ secrets.CODECOV_TOKEN }}
984987

988+
# - We skip optional tests on release branches
985989
job_optional_e2e_tests:
986-
name: E2E ${{ matrix.label || matrix.test-application }} Test
990+
name: E2E ${{ matrix.label || matrix.test-application }} Test (optional)
987991
# 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
988992
# We need to add the `always()` check here because the previous step has this as well :(
989993
# See: https://github.com/actions/runner/issues/2205
990994
if:
991-
always() && needs.job_e2e_prepare.result == 'success' &&
995+
always() &&
996+
needs.job_get_metadata.outputs.is_release != 'true' &&
997+
needs.job_e2e_prepare.result == 'success' &&
992998
needs.job_e2e_prepare.outputs.matrix-optional != '{"include":[]}' &&
993999
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) &&
9941000
github.actor != 'dependabot[bot]'
@@ -1036,11 +1042,6 @@ jobs:
10361042
if: steps.restore-tarball-cache.outputs.cache-hit != 'true'
10371043
run: yarn build:tarball
10381044

1039-
- name: Install Playwright
1040-
uses: ./.github/actions/install-playwright
1041-
with:
1042-
browsers: chromium
1043-
10441045
- name: Get node version
10451046
id: versions
10461047
run: |
@@ -1061,6 +1062,12 @@ jobs:
10611062
timeout-minutes: 7
10621063
run: pnpm ${{ matrix.build-command || 'test:build' }}
10631064

1065+
- name: Install Playwright
1066+
uses: ./.github/actions/install-playwright
1067+
with:
1068+
browsers: chromium
1069+
cwd: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
1070+
10641071
- name: Run E2E test
10651072
working-directory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
10661073
timeout-minutes: 10
@@ -1405,6 +1412,10 @@ jobs:
14051412
key: ${{ needs.job_build.outputs.dependency_cache_key }}
14061413
enableCrossOsArchive: true
14071414

1415+
- name: Increase yarn network timeout on Windows
1416+
if: contains(matrix.os, 'windows')
1417+
run: yarn config set network-timeout 600000 -g
1418+
14081419
- name: Install dependencies
14091420
env:
14101421
SKIP_PLAYWRIGHT_BROWSER_INSTALL: "1"
@@ -1415,10 +1426,6 @@ jobs:
14151426
run: |
14161427
git config --global --add safe.directory "*"
14171428
1418-
- name: Increase yarn network timeout on Windows
1419-
if: contains(matrix.os, 'windows')
1420-
run: yarn config set network-timeout 600000 -g
1421-
14221429
- name: Setup python
14231430
uses: actions/setup-python@v5
14241431
if: ${{ !contains(matrix.container, 'alpine') }}

.github/workflows/canary.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ env:
1414

1515
CACHED_BUILD_PATHS: |
1616
${{ github.workspace }}/packages/*/*.tgz
17-
${{ github.workspace }}/dev-packages/test-utils/build
1817
${{ github.workspace }}/node_modules
1918
${{ github.workspace }}/packages/*/node_modules
2019
${{ github.workspace }}/dev-packages/*/node_modules
21-
${{ github.workspace }}/packages/utils/build
20+
${{ github.workspace }}/dev-packages/*/build
21+
${{ github.workspace }}/packages/*/build
2222
2323
permissions:
2424
contents: read
@@ -149,6 +149,12 @@ jobs:
149149
timeout-minutes: 7
150150
run: yarn ${{ matrix.build-command }}
151151

152+
- name: Install Playwright
153+
uses: ./.github/actions/install-playwright
154+
with:
155+
browsers: chromium
156+
cwd: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
157+
152158
- name: Run E2E test
153159
working-directory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
154160
timeout-minutes: 15

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,18 @@ name: "CI: Enforce License Compliance"
22

33
on:
44
push:
5-
branches: [master, develop, release/*]
5+
branches:
6+
- develop
7+
- master
8+
- v9
9+
- v8
10+
- release/**
611
pull_request:
7-
branches: [master, develop]
12+
branches:
13+
- develop
14+
- master
15+
- v9
16+
- v8
817

918
jobs:
1019
enforce-license-compliance:

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ jobs:
8383
"@sentry.solid": {
8484
"label": "Package: solidstart"
8585
},
86-
"@sentry.svelte": {
87-
"label": "Package: svelte"
88-
},
8986
"@sentry.sveltekit": {
9087
"label": "Package: sveltekit"
9188
},
89+
"@sentry.svelte": {
90+
"label": "Package: svelte"
91+
},
9292
"@sentry.vue": {
9393
"label": "Package: vue"
9494
},

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,20 @@ jobs:
1717
runs-on: ubuntu-20.04
1818
name: 'Release a new version'
1919
steps:
20+
- name: Get auth token
21+
id: token
22+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
23+
with:
24+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
25+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
2026
- uses: actions/checkout@v4
2127
with:
22-
token: ${{ secrets.GH_RELEASE_PAT }}
28+
token: ${{ steps.token.outputs.token }}
2329
fetch-depth: 0
2430
- name: Prepare release
2531
uses: getsentry/action-prepare-release@v1
2632
env:
27-
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
33+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
2834
with:
2935
version: ${{ github.event.inputs.version }}
3036
force: ${{ github.event.inputs.force }}

0 commit comments

Comments
 (0)