Skip to content

Commit 616cea7

Browse files
committed
another test run
1 parent 3dd6c07 commit 616cea7

File tree

6 files changed

+15
-13
lines changed

6 files changed

+15
-13
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,11 +1180,11 @@ jobs:
11801180
per_page: 100
11811181
});
11821182
1183-
const failureAnnotations = annotations.filter(a => a.annotation_level === 'failure');
1184-
if (failureAnnotations.length > 0) {
1185-
const testNames = failureAnnotations.map(a => {
1186-
const firstLine = a.message.split('\n')[0];
1187-
return `- \`${a.path}\`: ${firstLine}`;
1183+
const testAnnotations = annotations.filter(a => a.annotation_level === 'failure' && a.path !== '.github');
1184+
if (testAnnotations.length > 0) {
1185+
const testNames = testAnnotations.map(a => {
1186+
// The title field contains the full test name (e.g. "file.test.ts > Suite > test name")
1187+
return a.title ? `- ${a.title}` : `- \`${a.path}\``;
11881188
});
11891189
// Deduplicate and limit to 20 entries to keep issues readable
11901190
testName = [...new Set(testNames)].slice(0, 20).join('\n');

dev-packages/browser-integration-tests/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const config: PlaywrightTestConfig = {
3030
},
3131
],
3232

33-
reporter: process.env.CI ? [['list'], ['junit', { outputFile: 'results.junit.xml' }]] : 'list',
33+
reporter: process.env.CI ? [['list'], ['github'], ['junit', { outputFile: 'results.junit.xml' }]] : 'list',
3434

3535
globalSetup: require.resolve('./playwright.setup.ts'),
3636
globalTeardown: require.resolve('./playwright.teardown.ts'),

dev-packages/node-integration-tests/suites/public-api/setTag/with-primitives/test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { afterAll, test } from 'vitest';
1+
import { afterAll, expect, test } from 'vitest';
22
import { cleanupChildProcesses, createRunner } from '../../../../utils/runner';
33

44
afterAll(() => {
55
cleanupChildProcesses();
66
});
77

8-
// TEMPORARY: Guaranteed failure to verify test name extraction in CI
9-
test('TEMPORARY - should fail to test annotation extraction', () => {
8+
// TEMPORARY: Guaranteed failure to verify test name extraction in CI (Node 18 only)
9+
test.skipIf(!process.version.startsWith('v18'))('TEMPORARY - should fail to test annotation extraction', () => {
1010
expect(true).toBe(false);
1111
});
1212

dev-packages/test-utils/src/playwright-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function getPlaywrightConfig(
3737
/* In dev mode some apps are flaky, so we allow retry there... */
3838
retries: testEnv === 'development' ? 3 : 0,
3939
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
40-
reporter: process.env.CI ? [['line'], ['junit', { outputFile: 'results.junit.xml' }]] : 'list',
40+
reporter: process.env.CI ? [['line'], ['github'], ['junit', { outputFile: 'results.junit.xml' }]] : 'list',
4141
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
4242
use: {
4343
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */

packages/core/test/lib/session.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { SessionContext } from '../../src/types-hoist/session';
44
import { timestampInSeconds } from '../../src/utils/time';
55

66
describe('Session', () => {
7-
// TEMPORARY: Guaranteed failure to verify test name extraction in CI
8-
it('TEMPORARY - should fail to test annotation extraction', () => {
7+
// TEMPORARY: Guaranteed failure to verify test name extraction in CI (Node 18 only)
8+
it.skipIf(process.env.NODE_VERSION !== '18')('TEMPORARY - should fail to test annotation extraction', () => {
99
expect(true).toBe(false);
1010
});
1111

vite/vite.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ export default defineConfig({
1919
'vite.config.*',
2020
],
2121
},
22-
reporters: process.env.CI ? ['default', 'github-actions', ['junit', { classnameTemplate: '{filepath}' }]] : ['default'],
22+
reporters: process.env.CI
23+
? ['default', 'github-actions', ['junit', { classnameTemplate: '{filepath}' }]]
24+
: ['default'],
2325
outputFile: {
2426
junit: 'vitest.junit.xml',
2527
},

0 commit comments

Comments
 (0)