Skip to content

fix(node): Record local variables with falsy values (v7) #11189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 148 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
17a5d38
build(profiling-node): make sure debug build plugin is used (#10534)
AbhiPrasad Feb 6, 2024
5a9f460
build: Only run profiling e2e test if bindings have changed (#10542)
AbhiPrasad Feb 7, 2024
11576d6
fix(feedback): Replay breadcrumb for feedback events was incorrect (#…
billyvg Feb 7, 2024
bdb73c7
Merge pull request #10546 from getsentry/fn/backport-v7
mydea Feb 7, 2024
08a06ae
meta(changelog): Update changelog for 7.100.1
mydea Feb 7, 2024
424a9c1
release: 7.100.1
getsentry-bot Feb 7, 2024
ac9e3ec
Merge branch 'release/7.100.1' into v7
Feb 7, 2024
43b8a3d
docs(nextjs): Fix function name in deprecation message (#10583)
leothorp Feb 9, 2024
8ac381c
feat(core): Deprecate the `Hub` constructor (#10584)
Feb 12, 2024
613a1aa
docs: Fix deprecation message for span data/attributes (#10608)
mydea Feb 12, 2024
ac7cb33
feat(replay): Add `getReplay` utility function (#10510)
mydea Feb 7, 2024
7b3a22d
feat(core): Add metric summaries to spans (#10554)
cleptric Feb 12, 2024
150b257
fix(sveltekit): Properly await sourcemaps flattening (#10602)
Lms24 Feb 12, 2024
cbd6721
fix(sveltekit): Avoid capturing Http 4xx errors on the client (#10571)
Lms24 Feb 9, 2024
13f7dc8
fix(angular-ivy): Add `exports` field to `package.json` (#10569)
Lms24 Feb 9, 2024
8ba1d77
feat: Export semantic attribute keys from SDK packages (#10637)
Lms24 Feb 13, 2024
88cc758
feat(core): Make custom tracing methods return spans & set default op…
mydea Feb 13, 2024
42cf5e7
build: bump size limit
mydea Feb 13, 2024
551e401
Merge pull request #10617 from getsentry/fn/backport-to-v7
mydea Feb 13, 2024
41ad9c8
meta(changelog): Update changelog for v7.101.0 (#10640)
mydea Feb 13, 2024
b4d4a83
release: 7.101.0
getsentry-bot Feb 13, 2024
e7b0c8d
Merge branch 'release/7.101.0' into v7
Feb 13, 2024
dfe1f72
fix(nextjs): Remove `webpack://` prefix more broadly from source map …
Feb 13, 2024
cce125d
meta: Update CHANGELOG for 7.101.1 (#10663)
Lms24 Feb 14, 2024
2a3a85b
tests: Fix failing Next.js test (#10670)
Feb 15, 2024
a2d83b4
chore(ci): Ensure "Build & Test" workflow runs on `v7` (#10671)
Lms24 Feb 15, 2024
e4696dc
release: 7.101.1
getsentry-bot Feb 15, 2024
74b0f11
Merge branch 'release/7.101.1' into v7
Feb 15, 2024
38bd3f2
Fixes latest route name and source not updating correctly
edwardgou-sentry Feb 16, 2024
0639e97
Adds exclusive time and measurements to spans
edwardgou-sentry Feb 16, 2024
2b84c46
Adds span envelope and datacategory
edwardgou-sentry Feb 17, 2024
b4b349c
Datacategory map
edwardgou-sentry Feb 17, 2024
2d83f03
Merge branch 'egou/v7/feat/add-span-envelope-and-datacategory' of git…
edwardgou-sentry Feb 18, 2024
abe1bc2
Merge branch 'egou/v7/feat/add-exclusive-time-and-measurements-to-spa…
edwardgou-sentry Feb 18, 2024
9ae7f95
Creates interaction spans with inp when inp is detected
edwardgou-sentry Feb 18, 2024
84a6021
Adds sampling rate to inp spans
edwardgou-sentry Feb 19, 2024
6bd6ff8
export isValidSampleRate
edwardgou-sentry Feb 19, 2024
0cc946d
fix: Export session API (#10712)
Feb 20, 2024
b327157
fix(core): Fix scope capturing via `captureContext` function (#10735)…
mydea Feb 20, 2024
03a6773
meta(changelog): Update changelog for 7.102.0 (#10740)
Feb 20, 2024
4c0fa37
release: 7.102.0
getsentry-bot Feb 20, 2024
a77153c
Merge branch 'release/7.102.0' into v7
Feb 20, 2024
f7d70a0
measurements no longer an invalid type
edwardgou-sentry Feb 20, 2024
01f6386
ref: Make span types more robust (#10660)
mydea Feb 15, 2024
f40cba0
fix(tracing): Guard against missing `window.location` (#10659)
mydea Feb 21, 2024
4de88db
Merge pull request #10759 from getsentry/fn/backport-fixes
mydea Feb 21, 2024
046422b
chore(publish): [v7] Use craft config from merge target branch for re…
Lms24 Feb 21, 2024
97ece4e
Merge branch 'v7' of github.com:getsentry/sentry-javascript into egou…
edwardgou-sentry Feb 21, 2024
05c2393
update createSpanEnvelope to accept an array of spans
edwardgou-sentry Feb 21, 2024
b990a55
Merge branch 'v7' of github.com:getsentry/sentry-javascript into egou…
edwardgou-sentry Feb 21, 2024
2b495f1
remove exclusiveTime as a field from spans
edwardgou-sentry Feb 21, 2024
e102775
Merge branch 'v7' into egou/v7/fix/browser-tracing-latest-route
edwardgou-sentry Feb 21, 2024
6947192
Merge branch 'v7' into egou/v7/feat/add-span-envelope-and-datacategory
edwardgou-sentry Feb 21, 2024
ccd8ec1
Merge branch 'egou/v7/fix/browser-tracing-latest-route' of github.com…
edwardgou-sentry Feb 21, 2024
b2e4656
Merge branch 'egou/v7/feat/add-exclusive-time-and-measurements-to-spa…
edwardgou-sentry Feb 21, 2024
5d53fa4
Merge branch 'egou/v7/feat/add-span-envelope-and-datacategory' of git…
edwardgou-sentry Feb 21, 2024
91c7f07
ref(remix): Make `@remix-run/router` a dependency (v7) (#10779)
onurtemizkan Feb 21, 2024
f5985f5
fix(performance): Fixes latest route name and source for interactions…
edwardgou-sentry Feb 22, 2024
3769895
meta: Update CHANGELOG for 7.102.1 (#10788)
Lms24 Feb 22, 2024
26ec3bd
release: 7.102.1
getsentry-bot Feb 22, 2024
6170765
Merge branch 'release/7.102.1' into v7
Feb 22, 2024
c2aa318
Merge branch 'egou/v7/feat/create-interaction-spans-on-inp' of github…
edwardgou-sentry Feb 22, 2024
38976f3
fix: Make breadcrumbs option optional in WinterCGFetch integration (#…
kamilogorek Feb 22, 2024
5ee3045
fix
edwardgou-sentry Feb 22, 2024
3f0f558
fix bad import
edwardgou-sentry Feb 26, 2024
9e24b2b
Merge branch 'egou/v7/feat/add-span-envelope-and-datacategory' of git…
edwardgou-sentry Feb 26, 2024
a10187d
feat(core): Allow to pass `forceTransaction` to `startSpan()` APIs (b…
mydea Feb 27, 2024
c631436
meta(changelog): Add changelog for v7.103.0 (#10820)
mydea Feb 27, 2024
ef9315d
release: 7.103.0
getsentry-bot Feb 27, 2024
c1ebe3d
Merge branch 'release/7.103.0' into v7
Feb 27, 2024
690ecc1
snake case
edwardgou-sentry Feb 27, 2024
a937852
Merge branch 'egou/v7/feat/create-interaction-spans-on-inp' of github…
edwardgou-sentry Feb 27, 2024
811eaa4
test(remix): Re-enable Remix E2E tests on v7 (#10816)
onurtemizkan Feb 27, 2024
a09781f
feat(performance): Adds span envelope and datacategory (#10706)
edwardgou-sentry Feb 28, 2024
0559eab
Adds profile id, replay id, and user to standalone INP spans if they …
edwardgou-sentry Feb 28, 2024
7a019ea
Revert "remove exclusiveTime as a field from spans"
edwardgou-sentry Feb 28, 2024
9b6d5a7
htmlTreeAsString span name
edwardgou-sentry Feb 28, 2024
6fddd84
Merge branch 'v7' of github.com:getsentry/sentry-javascript into egou…
edwardgou-sentry Feb 28, 2024
19cf74a
Merge branch 'egou/v7/feat/add-exclusive-time-and-measurements-to-spa…
edwardgou-sentry Feb 28, 2024
0592b2b
Merge branch 'v7' of github.com:getsentry/sentry-javascript into egou…
edwardgou-sentry Feb 28, 2024
bbdc8f0
pull profile id from attributes into top level because relay expects …
edwardgou-sentry Feb 28, 2024
3eff09f
measurements in span
edwardgou-sentry Feb 29, 2024
1ed43e3
update type
edwardgou-sentry Feb 29, 2024
7156838
unchange test
edwardgou-sentry Feb 29, 2024
e5f21ab
refactor out some optional chaining
edwardgou-sentry Feb 29, 2024
9a1b12e
Merge branch 'egou/v7/feat/add-exclusive-time-and-measurements-to-spa…
edwardgou-sentry Feb 29, 2024
e6ea73d
fix(profiling-node): Fix dependencies to point to current versions (#…
mydea Feb 29, 2024
77f610b
update span creation
edwardgou-sentry Feb 29, 2024
05f55f1
Merge branch 'egou/v7/feat/create-interaction-spans-on-inp' of github…
edwardgou-sentry Feb 29, 2024
d943c8d
refactor optional check
edwardgou-sentry Feb 29, 2024
3f5b962
feat(performance): Adds exclusive time and measurements to spans (#10…
edwardgou-sentry Feb 29, 2024
9e04846
Merge branch 'v7' of github.com:getsentry/sentry-javascript into egou…
edwardgou-sentry Feb 29, 2024
8b929bc
Merge branch 'egou/v7/feat/add-sampling-rate-to-inp-spans' of github.…
edwardgou-sentry Feb 29, 2024
059508c
increase size limit by 1 kb
edwardgou-sentry Feb 29, 2024
beed7f6
feat(profiling-node): [v7] Expose `nodeProfilingIntegration` (#10864)
mydea Feb 29, 2024
65bb1ac
todo comment and update interactionIdtoRouteNameMapping replay to rep…
edwardgou-sentry Feb 29, 2024
9782eaf
comment
edwardgou-sentry Feb 29, 2024
ac749fb
fix import
edwardgou-sentry Feb 29, 2024
3336ff3
feat(webvitals): Add profile id, replay id, and user to standalone IN…
edwardgou-sentry Feb 29, 2024
b515f8e
feat(performance): Add sampling rate to INP spans. Also add replay id…
edwardgou-sentry Feb 29, 2024
93f5c19
Merge branch 'v7' of github.com:getsentry/sentry-javascript into egou…
edwardgou-sentry Feb 29, 2024
a3f235f
move enableInp off experiment
edwardgou-sentry Feb 29, 2024
5807e2d
performanceeventtiming interface
edwardgou-sentry Feb 29, 2024
226c543
interactionId
edwardgou-sentry Feb 29, 2024
fc676fc
use more primitive types
edwardgou-sentry Feb 29, 2024
82eaed0
feat(performance): create Interaction standalone spans on inp events …
edwardgou-sentry Feb 29, 2024
763eb1f
fix(processing): [v7] Only mark aggregate errors as exception groups …
AbhiPrasad Feb 29, 2024
c9e8fa9
meta: CHANGELOG for 7.104.0
AbhiPrasad Feb 29, 2024
3770187
fix(replay): Add `errorHandler` for replayCanvas integration (#10796)
billyvg Feb 29, 2024
17744cd
feat(feedback): Flush replays when feedback form opens (#10567)
billyvg Feb 29, 2024
868a20e
fix(feedback): Update typing for v7
AbhiPrasad Feb 29, 2024
9d2f623
Merge pull request #10875 from getsentry/abhi-7.104.0-release
AbhiPrasad Feb 29, 2024
eadb6c8
release: 7.104.0
getsentry-bot Feb 29, 2024
ac5992f
Merge branch 'release/7.104.0' into v7
Feb 29, 2024
7b11379
feat: Ensure `withActiveSpan` is exported everywhere [v7] (#10877)
mydea Mar 1, 2024
0eac510
meta(changelog): Update changelog for v7.105.0 (#10880)
mydea Mar 1, 2024
e23dc27
release: 7.105.0
getsentry-bot Mar 1, 2024
1ff893b
Merge branch 'release/7.105.0' into v7
Mar 4, 2024
7ad8957
feat(remix): Add Vite dev-mode support to Express instrumentation (v7…
onurtemizkan Mar 7, 2024
369fc52
feat(nextjs/v7): Support Hybrid Cloud DSNs with `tunnelRoute` option …
Mar 7, 2024
9144a86
fix(node): support undici headers as strings or arrays (#10938)
jessezhang91 Mar 7, 2024
9b4c855
fix(types): Add `AttachmentType` and use for envelope `attachment_typ…
timfish Mar 6, 2024
3c841ce
ref(ember): Avoid namespace import to hopefully resolve minification …
mydea Mar 1, 2024
ef59a91
fix(browser): Don't use chrome variable name (#10874)
AbhiPrasad Mar 4, 2024
f26f68c
fix(nextjs): Client code should not use Node `global` (#10925)
timfish Mar 5, 2024
e246218
chore(sveltekit): Fix punctuation in a console.log (#10895)
bfontaine Mar 4, 2024
63152e2
meta: Update changelog for 7.106.0
AbhiPrasad Mar 7, 2024
0161a8b
fix(core): Undeprecate setTransactionName
AbhiPrasad Mar 7, 2024
dce44ab
Merge pull request #10964 from getsentry/abhi-7.106.0-release
AbhiPrasad Mar 7, 2024
6b3f70d
release: 7.106.0
getsentry-bot Mar 7, 2024
3588dc0
Merge branch 'release/7.106.0' into v7
Mar 8, 2024
607104c
fix(nextjs/v7): Use passthrough `createReduxEnhancer` on server (#11010)
Mar 11, 2024
d832141
meta(changelog): Update changelog for v7.106.1 (#11013)
Mar 11, 2024
887f0e7
release: 7.106.1
getsentry-bot Mar 11, 2024
3fe6106
Merge branch 'release/7.106.1' into v7
Mar 11, 2024
df6f048
fix(node): Do not assert in vendored proxy code (v7 backport) (#11009)
timfish Mar 11, 2024
c6e03a3
fix(ember): Ensure browser tracing is correctly lazy loaded (#11027)
mydea Mar 11, 2024
1c71e8e
fix(react): Set `handled` value in ErrorBoundary depending on fallbac…
Lms24 Mar 12, 2024
a443a55
test(loader): Test changes from making `enableInp` default in the loa…
AbhiPrasad Mar 13, 2024
f8bad8d
feat(performance): Port INP span instrumentation to old browser traci…
edwardgou-sentry Mar 13, 2024
b19d435
meta: Update changelog for 7.107.0 (#11090)
AbhiPrasad Mar 14, 2024
48b8169
release: 7.107.0
getsentry-bot Mar 14, 2024
4eede83
Merge branch 'release/7.107.0' into v7
Mar 14, 2024
98c8709
feat(serverless/v7): Add Node.js 20 to compatible runtimes (#11104)
Mar 15, 2024
4059bbd
fix(types): Fix incorrect `sampled` type on `Transaction` (#11146)
quisido Mar 18, 2024
aef8c98
fix(node): Use unique variable for ANR context transfer (v7) (#11162)
timfish Mar 18, 2024
47a3cc7
feat(webvitals): Adds event entry names for INP handler. Also guard a…
edwardgou-sentry Mar 18, 2024
deb1d02
fix(node): Record local variables with falsy values (v7)
timfish Mar 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ targets:
- nodejs14.x
- nodejs16.x
- nodejs18.x
- nodejs20.x
license: MIT

# CDN Bundle Target
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ jobs:
version: ${{ steps.version.outputs.group1 }}
force: false
merge_target: master
craft_config_from_merge_target: true
153 changes: 109 additions & 44 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- develop
- v7
- master
- release/**
pull_request:
Expand Down Expand Up @@ -87,10 +88,12 @@ jobs:
id: changed
with:
filters: |
workflow: &workflow
- '.github/**'
shared: &shared
- *workflow
- '*.{js,ts,json,yml,lock}'
- 'CHANGELOG.md'
- '.github/**'
- 'jest/**'
- 'scripts/**'
- 'packages/core/**'
Expand All @@ -115,6 +118,11 @@ jobs:
- *shared
- *browser
- 'packages/ember/**'
node:
- *shared
- 'packages/node/**'
- 'packages/node-experimental/**'
- 'dev-packages/node-integration-tests/**'
nextjs:
- *shared
- *browser
Expand All @@ -127,18 +135,16 @@ jobs:
- 'packages/remix/**'
- 'packages/node/**'
- 'packages/react/**'
node:
- *shared
- 'packages/node/**'
- 'packages/node-experimental/**'
- 'packages/profiling-node/**'
- 'dev-packages/node-integration-tests/**'
profiling_node:
- *shared
- 'packages/node/**'
- 'packages/node-experimental/**'
- 'packages/profiling-node/**'
- 'dev-packages/e2e-tests/test-applications/node-profiling/**'
profiling_node_bindings:
- 'packages/profiling-node/bindings/**'
- *workflow
- 'packages/profiling-node/**'
- 'dev-packages/e2e-tests/test-applications/node-profiling/**'
deno:
- *shared
- *browser
Expand All @@ -163,7 +169,8 @@ jobs:
changed_browser_integration: ${{ steps.changed.outputs.browser_integration }}
changed_any_code: ${{ steps.changed.outputs.any_code }}
# Note: These next three have to be checked as strings ('true'/'false')!
is_develop: ${{ github.ref == 'refs/heads/develop' }}
# is_develop for v7 now also means we're on the `v7` branch.
is_develop: ${{ github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/v7' }}
is_release: ${{ startsWith(github.ref, 'refs/heads/release/') }}
# When merging into master, or from master
is_gitflow_sync: ${{ github.head_ref == 'master' || github.ref == 'refs/heads/master' }}
Expand Down Expand Up @@ -308,7 +315,7 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
skip_step: build
main_branch: develop
main_branch: v7
# When on release branch, we want to always run
# Else, we fall back to the default handling of the action
run_for_branch: ${{ (needs.job_get_metadata.outputs.is_release == 'true' && 'true') || '' }}
Expand Down Expand Up @@ -554,7 +561,7 @@ jobs:
job_profiling_node_unit_tests:
name: Node Profiling Unit Tests
needs: [job_get_metadata, job_build]
if: needs.job_get_metadata.outputs.changed_node =='true' || needs.job_get_metadata.outputs.changed_profiling_node == 'true' || github.event_name != 'pull_request'
if: needs.job_get_metadata.outputs.changed_node == 'true' || needs.job_get_metadata.outputs.changed_profiling_node == 'true' || github.event_name != 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand Down Expand Up @@ -1048,9 +1055,9 @@ jobs:
'node-express-app',
'create-react-app',
'create-next-app',
# disabling remix e2e tests because of flakes
# 'create-remix-app',
# 'create-remix-app-v2',
'create-remix-app',
'create-remix-app-v2',
'create-remix-app-express-vite-dev',
'debug-id-sourcemaps',
'nextjs-app-dir',
'nextjs-14',
Expand All @@ -1064,7 +1071,6 @@ jobs:
'node-experimental-fastify-app',
'node-hapi-app',
'node-exports-test-app',
'node-profiling',
'vue-3'
]
build-command:
Expand All @@ -1086,7 +1092,6 @@ jobs:
- test-application: 'nextjs-app-dir'
build-command: 'test:build-13'
label: 'nextjs-app-dir (next@13)'

steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
uses: actions/checkout@v4
Expand All @@ -1107,34 +1112,6 @@ jobs:
env:
DEPENDENCY_CACHE_KEY: ${{ needs.job_build.outputs.dependency_cache_key }}

# Rebuild profiling by compiling TS and pull the precompiled binary artifacts
- name: Build Profiling Node
if: |
(needs.job_get_metadata.outputs.changed_profiling_node_bindings == 'true') ||
(needs.job_get_metadata.outputs.is_release == 'true') ||
(github.event_name != 'pull_request')
run: yarn lerna run build:lib --scope @sentry/profiling-node

- name: Extract Profiling Node Prebuilt Binaries
# @TODO: v4 breaks convenient merging of same name artifacts
# https://github.com/actions/upload-artifact/issues/478
if: |
(needs.job_get_metadata.outputs.changed_profiling_node_bindings == 'true') ||
(github.event_name != 'pull_request')
uses: actions/download-artifact@v3
with:
name: profiling-node-binaries-${{ github.sha }}
path: ${{ github.workspace }}/packages/profiling-node/lib/

- name: Build Profiling tarball
run: yarn build:tarball --scope @sentry/profiling-node

- name: Install esbuild
if: ${{ matrix.test-application == 'node-profiling' }}
working-directory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
run: yarn add [email protected]
# End rebuild profiling

- name: Restore tarball cache
uses: actions/cache/restore@v4
with:
Expand Down Expand Up @@ -1176,6 +1153,93 @@ jobs:
directory: dist
workingDirectory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}

job_profiling_e2e_tests:
name: E2E ${{ matrix.label || matrix.test-application }} Test
# 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
# Dependabot PRs sadly also don't have access to secrets, so we skip them as well
# We need to add the `always()` check here because the previous step has this as well :(
# See: https://github.com/actions/runner/issues/2205
if:
# Only run profiling e2e tests if profiling node bindings have changed
always() && needs.job_e2e_prepare.result == 'success' &&
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) &&
github.actor != 'dependabot[bot]' && (
(needs.job_get_metadata.outputs.changed_profiling_node_bindings == 'true') ||
(needs.job_get_metadata.outputs.is_release == 'true') ||
(github.event_name != 'pull_request')
)
needs: [job_get_metadata, job_build, job_e2e_prepare]
runs-on: ubuntu-20.04
timeout-minutes: 10
env:
E2E_TEST_AUTH_TOKEN: ${{ secrets.E2E_TEST_AUTH_TOKEN }}
E2E_TEST_DSN: ${{ secrets.E2E_TEST_DSN }}
E2E_TEST_SENTRY_ORG_SLUG: 'sentry-javascript-sdks'
E2E_TEST_SENTRY_TEST_PROJECT: 'sentry-javascript-e2e-tests'
strategy:
fail-fast: false
matrix:
test-application: ['node-profiling']
build-command:
- false
label:
- false
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
uses: actions/checkout@v4
with:
ref: ${{ env.HEAD_COMMIT }}
- uses: pnpm/action-setup@v2
with:
version: 8.3.1
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: 'dev-packages/e2e-tests/package.json'
- name: Restore caches
uses: ./.github/actions/restore-cache
env:
DEPENDENCY_CACHE_KEY: ${{ needs.job_build.outputs.dependency_cache_key }}
- name: Build Profiling Node
run: yarn lerna run build:lib --scope @sentry/profiling-node
- name: Extract Profiling Node Prebuilt Binaries
uses: actions/download-artifact@v3
with:
name: profiling-node-binaries-${{ github.sha }}
path: ${{ github.workspace }}/packages/profiling-node/lib/
- name: Build Profiling tarball
run: yarn build:tarball --scope @sentry/profiling-node
- name: Restore tarball cache
uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/packages/*/*.tgz
key: ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}

- name: Get node version
id: versions
run: |
echo "echo node=$(jq -r '.volta.node' dev-packages/e2e-tests/package.json)" >> $GITHUB_OUTPUT

- name: Validate Verdaccio
run: yarn test:validate
working-directory: dev-packages/e2e-tests

- name: Prepare Verdaccio
run: yarn test:prepare
working-directory: dev-packages/e2e-tests
env:
E2E_TEST_PUBLISH_SCRIPT_NODE_VERSION: ${{ steps.versions.outputs.node }}

- name: Build E2E app
working-directory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
timeout-minutes: 5
run: yarn ${{ matrix.build-command || 'test:build' }}

- name: Run E2E test
working-directory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
timeout-minutes: 5
run: yarn test:assert

job_required_jobs_passed:
name: All required jobs passed or were skipped
needs:
Expand All @@ -1195,6 +1259,7 @@ jobs:
job_browser_loader_tests,
job_remix_integration_tests,
job_e2e_tests,
job_profiling_e2e_tests,
job_artifacts,
job_lint,
job_check_format,
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/enforce-license-compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Enforce License Compliance

on:
push:
branches: [master, develop, release/*]
branches: [master, develop, release/*, v7]
pull_request:
branches: [master, develop]
branches: [master, develop, v7]

jobs:
enforce-license-compliance:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
merge_target:
description: Target branch to merge into. Uses the default branch as a fallback (optional)
required: false
default: master
default: v7
jobs:
release:
runs-on: ubuntu-20.04
Expand All @@ -29,3 +29,5 @@ jobs:
version: ${{ github.event.inputs.version }}
force: ${{ github.event.inputs.force }}
merge_target: ${{ github.event.inputs.merge_target }}
craft_config_from_merge_target: true

6 changes: 3 additions & 3 deletions .size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ module.exports = [
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init, BrowserTracing }',
gzip: true,
limit: '35 KB',
limit: '37 KB',
},
{
name: '@sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped)',
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init, browserTracingIntegration }',
gzip: true,
limit: '35 KB',
limit: '36 KB',
},
{
name: '@sentry/browser (incl. Feedback) - Webpack (gzipped)',
Expand Down Expand Up @@ -115,7 +115,7 @@ module.exports = [
path: 'packages/browser/build/bundles/bundle.tracing.min.js',
gzip: false,
brotli: false,
limit: '105 KB',
limit: '112 KB',
},
{
name: '@sentry/browser - ES6 CDN Bundle (minified & uncompressed)',
Expand Down
Loading