From 3c2dee1e079bc706331dd0b65d4deb5af835bc91 Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Thu, 12 Oct 2023 12:55:17 +0200 Subject: [PATCH 01/16] add test summary --- package.json | 1 + pnpm-lock.yaml | 34 ++++++++++++++++++++++++++++++++++ run-tests.js | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+) diff --git a/package.json b/package.json index 6d854c552f15d..1ffad6d76e11e 100644 --- a/package.json +++ b/package.json @@ -58,6 +58,7 @@ "update-google-fonts": "node ./scripts/update-google-fonts.js" }, "devDependencies": { + "@actions/core": "1.10.1", "@babel/core": "7.18.0", "@babel/eslint-parser": "7.18.2", "@babel/generator": "7.18.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6db612a66bd21..53fa9069b9ea1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,6 +20,9 @@ importers: .: devDependencies: + '@actions/core': + specifier: 1.10.1 + version: 1.10.1 '@babel/core': specifier: 7.18.0 version: 7.18.0 @@ -1594,6 +1597,20 @@ importers: packages: + /@actions/core@1.10.1: + resolution: {integrity: sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==} + dependencies: + '@actions/http-client': 2.2.0 + uuid: 8.3.2 + dev: true + + /@actions/http-client@2.2.0: + resolution: {integrity: sha512-q+epW0trjVUUHboliPb4UF9g2msf+w61b32tAkFEwL/IwP0DQWgbCMM0Hbe3e3WXSKz5VcUXbzJQgy8Hkra/Lg==} + dependencies: + tunnel: 0.0.6 + undici: 5.26.3 + dev: true + /@adobe/css-tools@4.3.1: resolution: {integrity: sha512-/62yikz7NLScCGAAST5SHdnjaDJQBDq0M2muyRTpf2VQhw6StBg2ALiu73zSJQ4fMVLA+0uBhBHAle7Wg+2kSg==} dev: true @@ -5225,6 +5242,11 @@ packages: - supports-color dev: false + /@fastify/busboy@2.0.0: + resolution: {integrity: sha512-JUFJad5lv7jxj926GPgymrWQxxjPYuJNiNjNMzqT+HiuP6Vl3dk5xzG+8sTX96np0ZAluvaMzPsjhHZ5rNuNQQ==} + engines: {node: '>=14'} + dev: true + /@firebase/analytics-types@0.3.1: resolution: {integrity: sha512-63vVJ5NIBh/JF8l9LuPrQYSzFimk7zYHySQB4Dk9rVdJ8kV/vGQoVTvRu1UW05sEc2Ug5PqtEChtTHU+9hvPcA==} dev: true @@ -25341,6 +25363,11 @@ packages: safe-buffer: 5.2.1 dev: true + /tunnel@0.0.6: + resolution: {integrity: sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==} + engines: {node: '>=0.6.11 <=0.7.0 || >=0.7.3'} + dev: true + /turbo-darwin-64@1.10.9: resolution: {integrity: sha512-Avz3wsYYb8/vjyHPVRFbNbowIiaF33vcBRklIUkPchTLvZekrT5x3ltQBCflyoi2zJV9g08hK4xXTGuCxeVvPA==} cpu: [x64] @@ -25583,6 +25610,13 @@ packages: busboy: 1.6.0 dev: true + /undici@5.26.3: + resolution: {integrity: sha512-H7n2zmKEWgOllKkIUkLvFmsJQj062lSm3uA4EYApG8gLuiOM0/go9bIoC3HVaSnfg4xunowDE2i9p8drkXuvDw==} + engines: {node: '>=14.0'} + dependencies: + '@fastify/busboy': 2.0.0 + dev: true + /unfetch@4.2.0: resolution: {integrity: sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA==} dev: true diff --git a/run-tests.js b/run-tests.js index b6178477b0691..f9ac30e013481 100644 --- a/run-tests.js +++ b/run-tests.js @@ -11,6 +11,7 @@ const { spawn, exec: execOrig } = require('child_process') const { createNextInstall } = require('./test/lib/create-next-install') const glob = promisify(_glob) const exec = promisify(execOrig) +const core = require('@actions/core') function escapeRegexp(str) { return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') @@ -137,6 +138,7 @@ async function main() { const testPattern = testPatternIdx !== -1 && process.argv[testPatternIdx + 1] const testTypeIdx = process.argv.indexOf('--type') const testType = testTypeIdx > -1 ? process.argv[testTypeIdx + 1] : undefined + const errorsPerTests = new Map() let filterTestsBy switch (testType) { @@ -477,6 +479,14 @@ ${ENDGROUP}`) for (const { chunk } of outputChunks) { process.stdout.write(chunk) } + + if (process.env.CI) { + errorsPerTests.set( + test.file, + outputChunks.map(({ chunk }) => chunk.toString()).join('') + ) + } + if (isExpanded) { process.stdout.write(`end of ${test.file} output\n`) } else { @@ -622,6 +632,44 @@ ${ENDGROUP}`) }) ) + if (process.env.CI) { + const outputTemplate = ` + ## Output per test + + ${Object.entries(errorsPerTests) + .map(([test, output], idx) => { + return ` + ### ${test} + + \`\`\`bash + ${output} + \`\`\` + ` + }) + .join('\n')} + ` + + await core.summary + .addHeading('Test failures') + .addTable([ + [ + { + data: 'Test', + header: true, + }, + { + data: 'Link', + header: true, + }, + ], + ...Object.entries(errorsPerTests).map(([test], idx) => { + return [test, `[Link](#${idx})`] + }), + ]) + .addRaw(outputTemplate) + .write() + } + if (outputTimings) { const curTimings = {} // let junitData = `` From 05c1f072957e8cfd5c56822b5aaf9f06036d429a Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Thu, 12 Oct 2023 12:57:03 +0200 Subject: [PATCH 02/16] break test on purpose --- packages/next/src/client/app-index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/next/src/client/app-index.tsx b/packages/next/src/client/app-index.tsx index c4053df4e82be..4eb6d331b8aef 100644 --- a/packages/next/src/client/app-index.tsx +++ b/packages/next/src/client/app-index.tsx @@ -29,6 +29,8 @@ window.addEventListener('error', (ev: WindowEventMap['error']): void => { } }) +throw new Error('lol') + /// const appElement: HTMLElement | Document | null = document From 37a65fac17e6010f51cbaeefd05defdf9567f704 Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Thu, 12 Oct 2023 13:04:44 +0200 Subject: [PATCH 03/16] fix summary --- run-tests.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/run-tests.js b/run-tests.js index f9ac30e013481..e09710b588cb4 100644 --- a/run-tests.js +++ b/run-tests.js @@ -478,12 +478,9 @@ ${ENDGROUP}`) // run out of log room in CI for (const { chunk } of outputChunks) { process.stdout.write(chunk) - } - - if (process.env.CI) { errorsPerTests.set( test.file, - outputChunks.map(({ chunk }) => chunk.toString()).join('') + errorsPerTests.get(test.file).concat(chunk.toString()) ) } @@ -632,7 +629,7 @@ ${ENDGROUP}`) }) ) - if (process.env.CI) { + if (process.env.CI && errorsPerTests.size > 0) { const outputTemplate = ` ## Output per test From dc1dde4fc7c2d302edfcb29e2b75808927c4bad8 Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Thu, 12 Oct 2023 13:09:20 +0200 Subject: [PATCH 04/16] fix summary --- packages/next/src/client/app-index.tsx | 3 +-- run-tests.js | 11 +++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/next/src/client/app-index.tsx b/packages/next/src/client/app-index.tsx index 4eb6d331b8aef..ffe32074b648c 100644 --- a/packages/next/src/client/app-index.tsx +++ b/packages/next/src/client/app-index.tsx @@ -29,8 +29,6 @@ window.addEventListener('error', (ev: WindowEventMap['error']): void => { } }) -throw new Error('lol') - /// const appElement: HTMLElement | Document | null = document @@ -313,3 +311,4 @@ export function hydrate() { linkGc() } } +throw new Error('lol') diff --git a/run-tests.js b/run-tests.js index e09710b588cb4..ed25b9464bfc1 100644 --- a/run-tests.js +++ b/run-tests.js @@ -474,14 +474,17 @@ ${ENDGROUP}`) } else { process.stdout.write(`${GROUP}❌ ${test.file} output\n`) } + + let output = '' // limit out to last 64kb so that we don't // run out of log room in CI for (const { chunk } of outputChunks) { process.stdout.write(chunk) - errorsPerTests.set( - test.file, - errorsPerTests.get(test.file).concat(chunk.toString()) - ) + output += chunk + } + + if (process.env.CI) { + errorsPerTests.set(test.file, output) } if (isExpanded) { From 90e27b020d0562f667494db56846c63a9fd8c608 Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Thu, 12 Oct 2023 13:14:52 +0200 Subject: [PATCH 05/16] add debug --- run-tests.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/run-tests.js b/run-tests.js index ed25b9464bfc1..cdd30976c0211 100644 --- a/run-tests.js +++ b/run-tests.js @@ -480,10 +480,14 @@ ${ENDGROUP}`) // run out of log room in CI for (const { chunk } of outputChunks) { process.stdout.write(chunk) - output += chunk + output += chunk.toString() } if (process.env.CI) { + console.log( + 'DEBUG: writing output to', + test.file + '.log' + output.length + ) errorsPerTests.set(test.file, output) } From 230d0d10f14de6541ad217584a6d72d517e7573f Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Thu, 12 Oct 2023 13:16:02 +0200 Subject: [PATCH 06/16] add id hash --- run-tests.js | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/run-tests.js b/run-tests.js index cdd30976c0211..e3265432ab981 100644 --- a/run-tests.js +++ b/run-tests.js @@ -637,13 +637,26 @@ ${ENDGROUP}`) ) if (process.env.CI && errorsPerTests.size > 0) { + const toIDHash = (str) => { + let hash = 0, + i, + chr + if (str.length === 0) return hash + for (i = 0; i < str.length; i++) { + chr = str.charCodeAt(i) + hash = (hash << 5) - hash + chr + hash |= 0 // Convert to 32bit integer + } + return hash + } + const outputTemplate = ` ## Output per test ${Object.entries(errorsPerTests) - .map(([test, output], idx) => { + .map(([test, output]) => { return ` - ### ${test} + ### ${test} \`\`\`bash ${output} @@ -666,8 +679,8 @@ ${ENDGROUP}`) header: true, }, ], - ...Object.entries(errorsPerTests).map(([test], idx) => { - return [test, `[Link](#${idx})`] + ...Object.entries(errorsPerTests).map(([test]) => { + return [test, `[Link](#${toIDHash(test)})`] }), ]) .addRaw(outputTemplate) From 76e460f2426ae317cc3617e3c250ac4532b88413 Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Thu, 12 Oct 2023 13:21:51 +0200 Subject: [PATCH 07/16] add some debug --- run-tests.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/run-tests.js b/run-tests.js index e3265432ab981..8d17af6be67ca 100644 --- a/run-tests.js +++ b/run-tests.js @@ -636,6 +636,7 @@ ${ENDGROUP}`) }) ) + console.log('DEBUG - tests failed', errorsPerTests.size) if (process.env.CI && errorsPerTests.size > 0) { const toIDHash = (str) => { let hash = 0, @@ -653,7 +654,7 @@ ${ENDGROUP}`) const outputTemplate = ` ## Output per test - ${Object.entries(errorsPerTests) + ${Array.from(errorsPerTests.entries()) .map(([test, output]) => { return ` ### ${test} @@ -666,6 +667,7 @@ ${ENDGROUP}`) .join('\n')} ` + console.log('DEBUG - outputTemplate', outputTemplate) await core.summary .addHeading('Test failures') .addTable([ @@ -679,7 +681,7 @@ ${ENDGROUP}`) header: true, }, ], - ...Object.entries(errorsPerTests).map(([test]) => { + ...Array.from(errorsPerTests.entries()).map(([test]) => { return [test, `[Link](#${toIDHash(test)})`] }), ]) From a64d64208ade20e39205bb2a01e97cf2fe685bf7 Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Thu, 12 Oct 2023 13:36:30 +0200 Subject: [PATCH 08/16] tweak format --- run-tests.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/run-tests.js b/run-tests.js index 8d17af6be67ca..5d68801484ea9 100644 --- a/run-tests.js +++ b/run-tests.js @@ -656,16 +656,15 @@ ${ENDGROUP}`) ${Array.from(errorsPerTests.entries()) .map(([test, output]) => { - return ` - ### ${test} + return `### ${test} - \`\`\`bash - ${output} - \`\`\` - ` +\`\`\`bash +${output} + +\`\`\` +` }) - .join('\n')} - ` + .join('\n')}` console.log('DEBUG - outputTemplate', outputTemplate) await core.summary From 8b4dc8bbbe6c4d8fad4e936ec2ee3cc14a52d0f3 Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Thu, 12 Oct 2023 13:43:48 +0200 Subject: [PATCH 09/16] tweak format --- run-tests.js | 111 +++++++++++++++++++++++++++------------------------ 1 file changed, 58 insertions(+), 53 deletions(-) diff --git a/run-tests.js b/run-tests.js index 5d68801484ea9..08ab51bf249e2 100644 --- a/run-tests.js +++ b/run-tests.js @@ -74,6 +74,61 @@ const mockTrace = () => ({ // which types we have configured to run separate const configuredTestTypes = Object.values(testFilters) +const errorsPerTests = new Map() + +async function maybeLogSummary() { + console.log('DEBUG - tests failed', errorsPerTests.size) + if (process.env.CI && errorsPerTests.size > 0) { + const toIDHash = (str) => { + let hash = 0, + i, + chr + if (str.length === 0) return hash + for (i = 0; i < str.length; i++) { + chr = str.charCodeAt(i) + hash = (hash << 5) - hash + chr + hash |= 0 // Convert to 32bit integer + } + return hash + } + + const outputTemplate = ` + ## Output per test + + ${Array.from(errorsPerTests.entries()) + .map(([test, output]) => { + return `### ${test} + +\`\`\`bash +${output} + +\`\`\` +` + }) + .join('\n')}` + + console.log('DEBUG - outputTemplate', outputTemplate) + await core.summary + .addHeading('Test failures') + .addTable([ + [ + { + data: 'Test', + header: true, + }, + { + data: 'Link', + header: true, + }, + ], + ...Array.from(errorsPerTests.entries()).map(([test]) => { + return [test, `[Link](#${toIDHash(test)})`] + }), + ]) + .addRaw(outputTemplate) + .write() + } +} const cleanUpAndExit = async (code) => { if (process.env.NEXT_TEST_STARTER) { @@ -82,6 +137,9 @@ const cleanUpAndExit = async (code) => { if (process.env.NEXT_TEST_TEMP_REPO) { await fs.remove(process.env.NEXT_TEST_TEMP_REPO) } + if (process.env.CI) { + await maybeLogSummary() + } console.log(`exiting with code ${code}`) setTimeout(() => { @@ -138,7 +196,6 @@ async function main() { const testPattern = testPatternIdx !== -1 && process.argv[testPatternIdx + 1] const testTypeIdx = process.argv.indexOf('--type') const testType = testTypeIdx > -1 ? process.argv[testTypeIdx + 1] : undefined - const errorsPerTests = new Map() let filterTestsBy switch (testType) { @@ -636,58 +693,6 @@ ${ENDGROUP}`) }) ) - console.log('DEBUG - tests failed', errorsPerTests.size) - if (process.env.CI && errorsPerTests.size > 0) { - const toIDHash = (str) => { - let hash = 0, - i, - chr - if (str.length === 0) return hash - for (i = 0; i < str.length; i++) { - chr = str.charCodeAt(i) - hash = (hash << 5) - hash + chr - hash |= 0 // Convert to 32bit integer - } - return hash - } - - const outputTemplate = ` - ## Output per test - - ${Array.from(errorsPerTests.entries()) - .map(([test, output]) => { - return `### ${test} - -\`\`\`bash -${output} - -\`\`\` -` - }) - .join('\n')}` - - console.log('DEBUG - outputTemplate', outputTemplate) - await core.summary - .addHeading('Test failures') - .addTable([ - [ - { - data: 'Test', - header: true, - }, - { - data: 'Link', - header: true, - }, - ], - ...Array.from(errorsPerTests.entries()).map(([test]) => { - return [test, `[Link](#${toIDHash(test)})`] - }), - ]) - .addRaw(outputTemplate) - .write() - } - if (outputTimings) { const curTimings = {} // let junitData = `` From 7b92b2d0dad7b52392fe6637c28c219dca3a1c25 Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Thu, 12 Oct 2023 13:59:03 +0200 Subject: [PATCH 10/16] tweak format --- run-tests.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/run-tests.js b/run-tests.js index 08ab51bf249e2..faa0e0e523b06 100644 --- a/run-tests.js +++ b/run-tests.js @@ -97,12 +97,14 @@ async function maybeLogSummary() { ${Array.from(errorsPerTests.entries()) .map(([test, output]) => { - return `### ${test} - -\`\`\`bash + return ` +
+${test} +\`\`\` ${output} \`\`\` +
` }) .join('\n')}` @@ -122,7 +124,10 @@ ${output} }, ], ...Array.from(errorsPerTests.entries()).map(([test]) => { - return [test, `[Link](#${toIDHash(test)})`] + return [ + `${test}`, + `Output`, + ] }), ]) .addRaw(outputTemplate) From c3172ed34f256ec937e6dee314df9e92ebd777c5 Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Thu, 12 Oct 2023 14:00:51 +0200 Subject: [PATCH 11/16] tweak format --- run-tests.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/run-tests.js b/run-tests.js index faa0e0e523b06..dccd2f0d2ca79 100644 --- a/run-tests.js +++ b/run-tests.js @@ -101,9 +101,8 @@ async function maybeLogSummary() {
${test} \`\`\` -${output} +${output}\`\`\` -\`\`\`
` }) From c3214cda6e8481a1b2d9a7d28e5a92f90d7a4936 Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Thu, 12 Oct 2023 14:03:43 +0200 Subject: [PATCH 12/16] dont log killed tests --- run-tests.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/run-tests.js b/run-tests.js index dccd2f0d2ca79..9a30596bfea85 100644 --- a/run-tests.js +++ b/run-tests.js @@ -77,7 +77,6 @@ const configuredTestTypes = Object.values(testFilters) const errorsPerTests = new Map() async function maybeLogSummary() { - console.log('DEBUG - tests failed', errorsPerTests.size) if (process.env.CI && errorsPerTests.size > 0) { const toIDHash = (str) => { let hash = 0, @@ -100,15 +99,16 @@ async function maybeLogSummary() { return `
${test} + +\`\`\` +${output} \`\`\` -${output}\`\`\`
` }) .join('\n')}` - console.log('DEBUG - outputTemplate', outputTemplate) await core.summary .addHeading('Test failures') .addTable([ @@ -544,11 +544,7 @@ ${ENDGROUP}`) output += chunk.toString() } - if (process.env.CI) { - console.log( - 'DEBUG: writing output to', - test.file + '.log' + output.length - ) + if (process.env.CI && !killed) { errorsPerTests.set(test.file, output) } From 209529cde133cd3898cf6d8ade6b3c224e63a6f2 Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Thu, 12 Oct 2023 14:15:18 +0200 Subject: [PATCH 13/16] test --- run-tests.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/run-tests.js b/run-tests.js index 9a30596bfea85..6bbee04838fdd 100644 --- a/run-tests.js +++ b/run-tests.js @@ -92,13 +92,13 @@ async function maybeLogSummary() { } const outputTemplate = ` - ## Output per test - - ${Array.from(errorsPerTests.entries()) - .map(([test, output]) => { - return ` -
-${test} +${Array.from(errorsPerTests.entries()) + .map(([test, output]) => { + return ` +
+ +${test} + \`\`\` ${output} @@ -106,15 +106,15 @@ ${output}
` - }) - .join('\n')}` + }) + .join('\n')}` await core.summary - .addHeading('Test failures') + .addHeading('Tests failures') .addTable([ [ { - data: 'Test', + data: 'Test suite', header: true, }, { @@ -125,7 +125,7 @@ ${output} ...Array.from(errorsPerTests.entries()).map(([test]) => { return [ `${test}`, - `Output`, + `Logs`, ] }), ]) From 86c55a576c256cf6a91b1456d06fc83ba62eb49d Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Thu, 12 Oct 2023 14:24:28 +0200 Subject: [PATCH 14/16] tweaks --- run-tests.js | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/run-tests.js b/run-tests.js index 6bbee04838fdd..38589c6c3dfc8 100644 --- a/run-tests.js +++ b/run-tests.js @@ -72,38 +72,27 @@ const mockTrace = () => ({ traceChild: () => mockTrace(), }) +function pathToHashSimple(fsPath) { + return fsPath.replace(/[^a-zA-Z0-9]/g, '_') + process.env.NEXT_TEST_MODE +} // which types we have configured to run separate const configuredTestTypes = Object.values(testFilters) const errorsPerTests = new Map() async function maybeLogSummary() { if (process.env.CI && errorsPerTests.size > 0) { - const toIDHash = (str) => { - let hash = 0, - i, - chr - if (str.length === 0) return hash - for (i = 0; i < str.length; i++) { - chr = str.charCodeAt(i) - hash = (hash << 5) - hash + chr - hash |= 0 // Convert to 32bit integer - } - return hash - } - const outputTemplate = ` ${Array.from(errorsPerTests.entries()) .map(([test, output]) => { return ` -
- -${test} - +
+${test} +
\`\`\` ${output} \`\`\` - +
` }) @@ -125,7 +114,7 @@ ${output} ...Array.from(errorsPerTests.entries()).map(([test]) => { return [ `${test}`, - `Logs`, + `Logs`, ] }), ]) From f13a7c09c190f9d38e5279ceeefbeca3ece9e134 Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Thu, 12 Oct 2023 14:31:02 +0200 Subject: [PATCH 15/16] remove links --- run-tests.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/run-tests.js b/run-tests.js index 38589c6c3dfc8..23c73a83b2fc0 100644 --- a/run-tests.js +++ b/run-tests.js @@ -72,9 +72,6 @@ const mockTrace = () => ({ traceChild: () => mockTrace(), }) -function pathToHashSimple(fsPath) { - return fsPath.replace(/[^a-zA-Z0-9]/g, '_') + process.env.NEXT_TEST_MODE -} // which types we have configured to run separate const configuredTestTypes = Object.values(testFilters) const errorsPerTests = new Map() @@ -88,11 +85,10 @@ ${Array.from(errorsPerTests.entries())
${test} -
\`\`\` ${output} \`\`\` -
+
` }) @@ -106,15 +102,10 @@ ${output} data: 'Test suite', header: true, }, - { - data: 'Link', - header: true, - }, ], ...Array.from(errorsPerTests.entries()).map(([test]) => { return [ `${test}`, - `Logs`, ] }), ]) From e23c348e96345cfa9dd2eeb64fbefb39a56e2a4f Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Thu, 12 Oct 2023 14:55:35 +0200 Subject: [PATCH 16/16] remove failure --- packages/next/src/client/app-index.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/next/src/client/app-index.tsx b/packages/next/src/client/app-index.tsx index ffe32074b648c..c4053df4e82be 100644 --- a/packages/next/src/client/app-index.tsx +++ b/packages/next/src/client/app-index.tsx @@ -311,4 +311,3 @@ export function hydrate() { linkGc() } } -throw new Error('lol')