diff --git a/.circleci/config.yml b/.circleci/config.yml index d8512a461d5495..df450f0b3af4d6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -125,7 +125,7 @@ jobs: NX_E2E_CI_CACHE_KEY: e2e-circleci-<< parameters.os >> SELECTED_PM: << parameters.pm >> NX_E2E_RUN_CYPRESS: 'true' - NX_VERBOSE_LOGGING: 'false' + NX_VERBOSE_LOGGING: 'true' NX_PERF_LOGGING: 'false' steps: - run: @@ -151,7 +151,7 @@ jobs: executor: linux environment: NX_E2E_CI_CACHE_KEY: e2e-circleci-linux - NX_VERBOSE_LOGGING: 'false' + NX_VERBOSE_LOGGING: 'true' NX_DAEMON: 'true' NX_PERF_LOGGING: 'false' steps: diff --git a/docs/generated/packages/jest/executors/jest.json b/docs/generated/packages/jest/executors/jest.json index 21f6d2d65ba10b..324a02e14ab016 100644 --- a/docs/generated/packages/jest/executors/jest.json +++ b/docs/generated/packages/jest/executors/jest.json @@ -108,7 +108,7 @@ "type": "boolean" }, "randomize": { - "description": "Shuffle the order of the tests within a file. The shuffling is based on the seed. This option is only supported using the default jest-circus test runner.", + "description": "Shuffle delte methe order of the tests within a file. The shuffling is based on the seed. This option is only supported using the default jest-circus test runner.", "type": "boolean" }, "runInBand": { diff --git a/packages/cypress/src/executors/cypress/cypress.impl.ts b/packages/cypress/src/executors/cypress/cypress.impl.ts index b41b68e99fd7b8..9f4ef472c665e4 100644 --- a/packages/cypress/src/executors/cypress/cypress.impl.ts +++ b/packages/cypress/src/executors/cypress/cypress.impl.ts @@ -72,11 +72,14 @@ export default async function cypressExecutor( for await (const devServerValues of devServerIter) { try { + console.log('Running Cypress...'); success = await runCypress(devServerValues.baseUrl, { ...options, portLockFilePath: devServerValues.portLockFilePath, }); + console.log('Cypress finished', { success }); if (!options.watch) { + console.log('Cypress tests finished, trying to exit the dev server'); devServerIter.return(); break; } @@ -84,6 +87,10 @@ export default async function cypressExecutor( logger.error(e.message); success = false; if (!options.watch) { + console.log( + 'Cypress tests finished with error, trying to exit the dev server', + e + ); devServerIter.return(); break; } diff --git a/packages/jest/src/executors/jest/schema.json b/packages/jest/src/executors/jest/schema.json index d9a4b3b09bf60c..73798cd1e069be 100644 --- a/packages/jest/src/executors/jest/schema.json +++ b/packages/jest/src/executors/jest/schema.json @@ -124,7 +124,7 @@ "type": "boolean" }, "randomize": { - "description": "Shuffle the order of the tests within a file. The shuffling is based on the seed. This option is only supported using the default jest-circus test runner.", + "description": "Shuffle delte methe order of the tests within a file. The shuffling is based on the seed. This option is only supported using the default jest-circus test runner.", "type": "boolean" }, "runInBand": { diff --git a/packages/next/src/executors/server/server.impl.ts b/packages/next/src/executors/server/server.impl.ts index b13d5951a00f87..a9f428d1353ed9 100644 --- a/packages/next/src/executors/server/server.impl.ts +++ b/packages/next/src/executors/server/server.impl.ts @@ -54,6 +54,7 @@ export default async function* serveExecutor( // Client to check if server is ready. const client = new net.Socket(); const cleanupClient = () => { + console.log('cleanupClient'); client.removeAllListeners('connect'); client.removeAllListeners('error'); client.end(); @@ -62,9 +63,11 @@ export default async function* serveExecutor( }; const waitForServerReady = (retries = 30) => { + console.log('waitForServerReady', retries); const allowedErrorCodes = ['ECONNREFUSED', 'ECONNRESET']; client.once('connect', () => { + console.log('connect'); cleanupClient(); next({ success: true, @@ -73,10 +76,13 @@ export default async function* serveExecutor( }); client.on('error', (err) => { + console.log('error', err); if (retries === 0 || !allowedErrorCodes.includes(err['code'])) { + console.log('actual error'); cleanupClient(); error(err); } else { + console.log('retrying', retries); setTimeout(() => waitForServerReady(retries - 1), 1000); } }); @@ -84,6 +90,7 @@ export default async function* serveExecutor( client.connect({ port, host: '127.0.0.1' }); }; + console.log('spawning', command); const server = spawn(command, { cwd: options.dev ? root : nextDir, stdio: 'inherit', @@ -93,6 +100,7 @@ export default async function* serveExecutor( waitForServerReady(); server.once('exit', (code) => { + console.log('server exit', code); cleanupClient(); if (code === 0) { done(); @@ -102,6 +110,7 @@ export default async function* serveExecutor( }); process.on('exit', async (code) => { + console.log('process exit', code); if (code === 128 + 2) { server.kill('SIGINT'); } else if (code === 128 + 1) {