-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9272 from getsentry/prepare-release/7.74.1
meta: Update CHANGELOG for 7.74.1
- Loading branch information
Showing
64 changed files
with
1,386 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
"keywords": [ | ||
"withastro", | ||
"astro-component", | ||
"astro-integration", | ||
"sentry", | ||
"apm" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/e2e-tests/test-applications/debug-id-sourcemaps/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist |
2 changes: 2 additions & 0 deletions
2
packages/e2e-tests/test-applications/debug-id-sourcemaps/.npmrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@sentry:registry=http://localhost:4873 | ||
@sentry-internal:registry=http://localhost:4873 |
23 changes: 23 additions & 0 deletions
23
packages/e2e-tests/test-applications/debug-id-sourcemaps/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "debug-id-sourcemaps", | ||
"version": "1.0.0", | ||
"private": true, | ||
"scripts": { | ||
"build": "rollup --config rollup.config.mjs", | ||
"test": "vitest run", | ||
"clean": "npx rimraf node_modules,pnpm-lock.yaml", | ||
"test:build": "pnpm install && pnpm build", | ||
"test:assert": "pnpm test" | ||
}, | ||
"dependencies": { | ||
"@sentry/node": "latest || *" | ||
}, | ||
"devDependencies": { | ||
"rollup": "^4.0.2", | ||
"vitest": "^0.34.6", | ||
"@sentry/rollup-plugin": "2.8.0" | ||
}, | ||
"volta": { | ||
"extends": "../../package.json" | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
packages/e2e-tests/test-applications/debug-id-sourcemaps/rollup.config.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { defineConfig } from 'rollup'; | ||
import { sentryRollupPlugin } from '@sentry/rollup-plugin'; | ||
|
||
export default defineConfig({ | ||
input: './src/app.js', | ||
external: ['@sentry/node'], | ||
plugins: [ | ||
sentryRollupPlugin({ | ||
org: process.env.E2E_TEST_SENTRY_ORG_SLUG, | ||
project: process.env.E2E_TEST_SENTRY_TEST_PROJECT, | ||
authToken: process.env.E2E_TEST_AUTH_TOKEN, | ||
}), | ||
], | ||
output: { | ||
file: './dist/app.js', | ||
compact: true, | ||
format: 'cjs', | ||
sourcemap: 'hidden', | ||
}, | ||
}); |
10 changes: 10 additions & 0 deletions
10
packages/e2e-tests/test-applications/debug-id-sourcemaps/src/app.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import * as Sentry from '@sentry/node'; | ||
|
||
Sentry.init({ | ||
environment: 'qa', // dynamic sampling bias to keep transactions | ||
dsn: process.env.E2E_TEST_DSN, | ||
}); | ||
|
||
const eventId = Sentry.captureException(new Error('Sentry Debug ID E2E Test Error')); | ||
|
||
process.stdout.write(eventId); |
20 changes: 20 additions & 0 deletions
20
...s/e2e-tests/test-applications/debug-id-sourcemaps/tests/__snapshots__/server.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`Find symbolicated event on sentry 1`] = ` | ||
{ | ||
"colno": 41, | ||
"contextLine": "const eventId = Sentry.captureException(new Error('Sentry Debug ID E2E Test Error'));", | ||
"lineno": 8, | ||
"postContext": [ | ||
"", | ||
"process.stdout.write(eventId);", | ||
], | ||
"preContext": [ | ||
"Sentry.init({", | ||
" environment: 'qa', // dynamic sampling bias to keep transactions", | ||
" dsn: process.env.E2E_TEST_DSN,", | ||
"});", | ||
"", | ||
], | ||
} | ||
`; |
53 changes: 53 additions & 0 deletions
53
packages/e2e-tests/test-applications/debug-id-sourcemaps/tests/server.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { test } from 'vitest'; | ||
import childProcess from 'child_process'; | ||
import path from 'path'; | ||
|
||
const authToken = process.env.E2E_TEST_AUTH_TOKEN; | ||
const sentryTestOrgSlug = process.env.E2E_TEST_SENTRY_ORG_SLUG; | ||
const sentryTestProject = process.env.E2E_TEST_SENTRY_TEST_PROJECT; | ||
const EVENT_POLLING_TIMEOUT = 30_000; | ||
|
||
test( | ||
'Find symbolicated event on sentry', | ||
async ({ expect }) => { | ||
const eventId = childProcess.execSync(`node ${path.join(__dirname, '..', 'dist', 'app.js')}`, { | ||
encoding: 'utf-8', | ||
}); | ||
|
||
console.log(`Polling for error eventId: ${eventId}`); | ||
|
||
let timedOut = false; | ||
setTimeout(() => { | ||
timedOut = true; | ||
}, EVENT_POLLING_TIMEOUT); | ||
|
||
while (!timedOut) { | ||
await new Promise(resolve => setTimeout(resolve, 2000)); // poll every two seconds | ||
const response = await fetch( | ||
`https://sentry.io/api/0/projects/${sentryTestOrgSlug}/${sentryTestProject}/events/${eventId}/json/`, | ||
{ headers: { Authorization: `Bearer ${authToken}` } }, | ||
); | ||
|
||
// Only allow ok responses or 404 | ||
if (!response.ok) { | ||
expect(response.status).toBe(404); | ||
continue; | ||
} | ||
|
||
const eventPayload = await response.json(); | ||
const frames = eventPayload.exception?.values?.[0]?.stacktrace?.frames; | ||
const topFrame = frames[frames.length - 1]; | ||
expect({ | ||
preContext: topFrame?.pre_context, | ||
contextLine: topFrame?.context_line, | ||
postContext: topFrame?.post_context, | ||
lineno: topFrame?.lineno, | ||
colno: topFrame?.colno, | ||
}).toMatchSnapshot(); | ||
return; | ||
} | ||
|
||
throw new Error('Test timed out'); | ||
}, | ||
{ timeout: EVENT_POLLING_TIMEOUT }, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Note: All paths are relative to the directory in which eslint is being run, rather than the directory where this file | ||
// lives | ||
|
||
// ESLint config docs: https://eslint.org/docs/user-guide/configuring/ | ||
|
||
module.exports = { | ||
extends: ['../../.eslintrc.js'], | ||
overrides: [ | ||
{ | ||
files: ['jest.setup.ts', 'jest.config.ts'], | ||
parserOptions: { | ||
project: ['tsconfig.test.json'], | ||
}, | ||
rules: { | ||
'no-console': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['test/**/*.ts'], | ||
|
||
rules: { | ||
// most of these errors come from `new Promise(process.nextTick)` | ||
'@typescript-eslint/unbound-method': 'off', | ||
// TODO: decide if we want to enable this again after the migration | ||
// We can take the freedom to be a bit more lenient with tests | ||
'@typescript-eslint/no-floating-promises': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['src/types/deprecated.ts'], | ||
rules: { | ||
'@typescript-eslint/naming-convention': 'off', | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
/*.tgz | ||
.eslintcache | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Copyright (c) 2023 Sentry (https://sentry.io) and individual contributors. All rights reserved. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated | ||
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the | ||
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit | ||
persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the | ||
Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE | ||
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | ||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Oops, something went wrong.