Skip to content

Commit a9d093b

Browse files
committed
Revert "meta: Update CHANGELOG for 7.45.0 (#7588)"
This reverts commit 79fa14b.
1 parent 79fa14b commit a9d093b

File tree

145 files changed

+419
-3438
lines changed

Some content is hidden

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

145 files changed

+419
-3438
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,8 @@ jobs:
321321
uses: ./.github/actions/restore-cache
322322
env:
323323
DEPENDENCY_CACHE_KEY: ${{ needs.job_build.outputs.dependency_cache_key }}
324-
- name: Lint source files
324+
- name: Run linter
325325
run: yarn lint
326-
- name: Validate ES5 builds
327-
run: yarn validate:es5
328326

329327
job_circular_dep_check:
330328
name: Circular Dependency Check

.github/workflows/flaky-test-detector.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@ jobs:
7777
working-directory: packages/browser-integration-tests
7878
env:
7979
CHANGED_TEST_PATHS: ${{ steps.changed.outputs.browser_integration_files }}
80-
# Run 50 times when detecting changed test(s), else run all tests 5x
81-
TEST_RUN_COUNT: ${{ steps.changed.outputs.browser_integration == 'true' && 50 || 5 }}
80+
# Run 100 times when detecting changed test(s), else run all tests 5x
81+
TEST_RUN_COUNT: ${{ steps.changed.outputs.browser_integration == 'true' && 100 || 5 }}

CHANGELOG.md

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

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

7-
## 7.45.0
8-
9-
- build(cdn): Ensure ES5 bundles do not use non-ES5 code (#7550)
10-
- feat(core): Add trace function (#7556)
11-
- feat(hub): Make scope always defined on the hub (#7551)
12-
- feat(replay): Add `replay_id` to transaction DSC (#7571)
13-
- feat(replay): Capture fetch body size for replay events (#7524)
14-
- feat(sveltekit): Add performance monitoring for client load (#7537)
15-
- feat(sveltekit): Add performance monitoring to Sveltekit server handle (#7532)
16-
- feat(sveltekit): Add SvelteKit routing instrumentation (#7565)
17-
- fix(browser): Ensure keepalive flag is correctly set for parallel requests (#7553)
18-
- fix(core): Ensure `ignoreErrors` only applies to error events (#7573)
19-
- fix(node): Consider tracing error handler for process exit (#7558)
20-
- fix(otel): Make sure we use correct hub on finish (#7577)
21-
- fix(react): Handle case where error.cause already defined (#7557)
22-
- fix(tracing): Account for case where startTransaction returns undefined (#7566)
23-
247
## 7.44.2
258

269
- fix(cdn): Fix ES5 CDN bundles (#7544)

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"link:yarn": "lerna exec yarn link",
2424
"lint": "lerna run lint",
2525
"lint:eslint": "lerna run lint:eslint",
26-
"validate:es5": "lerna run validate:es5",
2726
"postpublish": "lerna run --stream --concurrency 1 postpublish",
2827
"test": "lerna run --ignore @sentry-internal/* test",
2928
"test:unit": "lerna run --ignore @sentry-internal/* test:unit",
@@ -90,7 +89,6 @@
9089
"chai": "^4.1.2",
9190
"codecov": "^3.6.5",
9291
"deepmerge": "^4.2.2",
93-
"es-check": "7.1.0",
9492
"eslint": "7.32.0",
9593
"jest": "^27.5.1",
9694
"jest-environment-node": "^27.5.1",

packages/browser-integration-tests/scripts/detectFlakyTests.ts

Lines changed: 28 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -6,72 +6,52 @@ import { promisify } from 'util';
66
const exec = promisify(childProcess.exec);
77

88
async function run(): Promise<void> {
9-
let testPaths: string[] = [];
9+
let testPaths = getTestPaths();
10+
let failed = [];
1011

11-
const changedPaths: string[] = process.env.CHANGED_TEST_PATHS ? JSON.parse(process.env.CHANGED_TEST_PATHS) : [];
12+
try {
13+
const changedPaths: string[] = process.env.CHANGED_TEST_PATHS ? JSON.parse(process.env.CHANGED_TEST_PATHS) : [];
1214

13-
if (changedPaths.length > 0) {
14-
console.log(`Detected changed test paths:
15+
if (changedPaths.length > 0) {
16+
console.log(`Detected changed test paths:
1517
${changedPaths.join('\n')}
1618
1719
`);
1820

19-
testPaths = getTestPaths().filter(p => changedPaths.some(changedPath => changedPath.includes(p)));
20-
if (testPaths.length === 0) {
21-
console.log('Could not find matching tests, aborting...');
22-
process.exit(1);
21+
testPaths = testPaths.filter(p => changedPaths.some(changedPath => changedPath.includes(p)));
2322
}
23+
} catch {
24+
console.log('Could not detect changed test paths, running all tests.');
2425
}
2526

2627
const cwd = path.join(__dirname, '../');
2728
const runCount = parseInt(process.env.TEST_RUN_COUNT || '10');
2829

29-
try {
30-
await new Promise<void>((resolve, reject) => {
31-
const cp = childProcess.spawn(
32-
`yarn playwright test ${
33-
testPaths.length ? testPaths.join(' ') : './suites'
34-
} --browser='all' --reporter='line' --repeat-each ${runCount}`,
35-
{ shell: true, cwd },
36-
);
37-
38-
let error: Error | undefined;
39-
40-
cp.stdout.on('data', data => {
41-
console.log(data ? (data as object).toString() : '');
42-
});
43-
44-
cp.stderr.on('data', data => {
45-
console.log(data ? (data as object).toString() : '');
46-
});
47-
48-
cp.on('error', e => {
49-
console.error(e);
50-
error = e;
51-
});
52-
53-
cp.on('close', status => {
54-
const err = error || (status !== 0 ? new Error(`Process exited with status ${status}`) : undefined);
30+
for (const testPath of testPaths) {
31+
console.log(`Running test: ${testPath}`);
32+
const start = Date.now();
5533

56-
if (err) {
57-
reject(err);
58-
} else {
59-
resolve();
60-
}
34+
try {
35+
await exec(`yarn playwright test ${testPath} --browser='all' --repeat-each ${runCount}`, {
36+
cwd,
6137
});
62-
});
63-
} catch (error) {
64-
console.log('');
65-
console.log('');
66-
67-
console.error(`⚠️ Some tests failed.`);
68-
console.error(error);
69-
process.exit(1);
38+
const end = Date.now();
39+
console.log(` ☑️ Passed ${runCount} times, avg. duration ${Math.ceil((end - start) / runCount)}ms`);
40+
} catch (error) {
41+
logError(error);
42+
failed.push(testPath);
43+
}
7044
}
7145

7246
console.log('');
7347
console.log('');
74-
console.log(`☑️ All tests passed.`);
48+
49+
if (failed.length > 0) {
50+
console.error(`⚠️ ${failed.length} test(s) failed.`);
51+
process.exit(1);
52+
} else {
53+
console.log(`☑️ ${testPaths.length} test(s) passed.`);
54+
}
7555
}
7656

7757
function getTestPaths(): string[] {

packages/browser-integration-tests/suites/replay/dsc/init.js

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

packages/browser-integration-tests/suites/replay/dsc/test.ts

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

packages/browser-integration-tests/suites/replay/extendNetworkBreadcrumbs/fetch/contentLengthHeader/test.ts

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ import { expect } from '@playwright/test';
22

33
import { sentryTest } from '../../../../../utils/fixtures';
44
import { envelopeRequestParser, waitForErrorRequest } from '../../../../../utils/helpers';
5-
import {
6-
getCustomRecordingEvents,
7-
shouldSkipReplayTest,
8-
waitForReplayRequest,
9-
} from '../../../../../utils/replayHelpers';
5+
import { shouldSkipReplayTest } from '../../../../../utils/replayHelpers';
106

117
sentryTest('parses response_body_size from Content-Length header if available', async ({ getLocalTestPath, page }) => {
128
if (shouldSkipReplayTest()) {
@@ -26,17 +22,7 @@ sentryTest('parses response_body_size from Content-Length header if available',
2622
});
2723
});
2824

29-
await page.route('https://dsn.ingest.sentry.io/**/*', route => {
30-
return route.fulfill({
31-
status: 200,
32-
contentType: 'application/json',
33-
body: JSON.stringify({ id: 'test-id' }),
34-
});
35-
});
36-
3725
const requestPromise = waitForErrorRequest(page);
38-
const replayRequestPromise1 = waitForReplayRequest(page, 0);
39-
4026
const url = await getLocalTestPath({ testDir: __dirname });
4127
await page.goto(url);
4228

@@ -72,20 +58,4 @@ sentryTest('parses response_body_size from Content-Length header if available',
7258
url: 'http://localhost:7654/foo',
7359
},
7460
});
75-
76-
const replayReq1 = await replayRequestPromise1;
77-
const { performanceSpans: performanceSpans1 } = getCustomRecordingEvents(replayReq1);
78-
expect(performanceSpans1.filter(span => span.op === 'resource.fetch')).toEqual([
79-
{
80-
data: {
81-
method: 'GET',
82-
responseBodySize: 789,
83-
statusCode: 200,
84-
},
85-
description: 'http://localhost:7654/foo',
86-
endTimestamp: expect.any(Number),
87-
op: 'resource.fetch',
88-
startTimestamp: expect.any(Number),
89-
},
90-
]);
9161
});

packages/browser-integration-tests/suites/replay/extendNetworkBreadcrumbs/fetch/noContentLengthHeader/test.ts

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ import { expect } from '@playwright/test';
22

33
import { sentryTest } from '../../../../../utils/fixtures';
44
import { envelopeRequestParser, waitForErrorRequest } from '../../../../../utils/helpers';
5-
import {
6-
getCustomRecordingEvents,
7-
shouldSkipReplayTest,
8-
waitForReplayRequest,
9-
} from '../../../../../utils/replayHelpers';
5+
import { shouldSkipReplayTest } from '../../../../../utils/replayHelpers';
106

117
sentryTest('does not capture response_body_size without Content-Length header', async ({ getLocalTestPath, page }) => {
128
if (shouldSkipReplayTest()) {
@@ -26,17 +22,7 @@ sentryTest('does not capture response_body_size without Content-Length header',
2622
});
2723
});
2824

29-
await page.route('https://dsn.ingest.sentry.io/**/*', route => {
30-
return route.fulfill({
31-
status: 200,
32-
contentType: 'application/json',
33-
body: JSON.stringify({ id: 'test-id' }),
34-
});
35-
});
36-
3725
const requestPromise = waitForErrorRequest(page);
38-
const replayRequestPromise1 = waitForReplayRequest(page, 0);
39-
4026
const url = await getLocalTestPath({ testDir: __dirname });
4127
await page.goto(url);
4228

@@ -71,20 +57,4 @@ sentryTest('does not capture response_body_size without Content-Length header',
7157
url: 'http://localhost:7654/foo',
7258
},
7359
});
74-
75-
const replayReq1 = await replayRequestPromise1;
76-
const { performanceSpans: performanceSpans1 } = getCustomRecordingEvents(replayReq1);
77-
expect(performanceSpans1.filter(span => span.op === 'resource.fetch')).toEqual([
78-
{
79-
data: {
80-
method: 'GET',
81-
responseBodySize: 29,
82-
statusCode: 200,
83-
},
84-
description: 'http://localhost:7654/foo',
85-
endTimestamp: expect.any(Number),
86-
op: 'resource.fetch',
87-
startTimestamp: expect.any(Number),
88-
},
89-
]);
9060
});

packages/browser-integration-tests/suites/replay/extendNetworkBreadcrumbs/fetch/nonTextBody/test.ts

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ import { expect } from '@playwright/test';
22

33
import { sentryTest } from '../../../../../utils/fixtures';
44
import { envelopeRequestParser, waitForErrorRequest } from '../../../../../utils/helpers';
5-
import {
6-
getCustomRecordingEvents,
7-
shouldSkipReplayTest,
8-
waitForReplayRequest,
9-
} from '../../../../../utils/replayHelpers';
5+
import { shouldSkipReplayTest } from '../../../../../utils/replayHelpers';
106

117
sentryTest('calculates body sizes for non-string bodies', async ({ getLocalTestPath, page }) => {
128
if (shouldSkipReplayTest()) {
@@ -23,17 +19,7 @@ sentryTest('calculates body sizes for non-string bodies', async ({ getLocalTestP
2319
});
2420
});
2521

26-
await page.route('https://dsn.ingest.sentry.io/**/*', route => {
27-
return route.fulfill({
28-
status: 200,
29-
contentType: 'application/json',
30-
body: JSON.stringify({ id: 'test-id' }),
31-
});
32-
});
33-
3422
const requestPromise = waitForErrorRequest(page);
35-
const replayRequestPromise1 = waitForReplayRequest(page, 0);
36-
3723
const url = await getLocalTestPath({ testDir: __dirname });
3824
await page.goto(url);
3925

@@ -74,21 +60,4 @@ sentryTest('calculates body sizes for non-string bodies', async ({ getLocalTestP
7460
url: 'http://localhost:7654/foo',
7561
},
7662
});
77-
78-
const replayReq1 = await replayRequestPromise1;
79-
const { performanceSpans: performanceSpans1 } = getCustomRecordingEvents(replayReq1);
80-
expect(performanceSpans1.filter(span => span.op === 'resource.fetch')).toEqual([
81-
{
82-
data: {
83-
method: 'POST',
84-
requestBodySize: 26,
85-
responseBodySize: 24,
86-
statusCode: 200,
87-
},
88-
description: 'http://localhost:7654/foo',
89-
endTimestamp: expect.any(Number),
90-
op: 'resource.fetch',
91-
startTimestamp: expect.any(Number),
92-
},
93-
]);
9463
});

0 commit comments

Comments
 (0)