currents-dev / currents-nx

MIT License
7 stars 3 forks source link

Process got stuck when there are not tests to execute. #21

Closed mikejav closed 1 year ago

mikejav commented 1 year ago

Before opening, please confirm:

Environment information

``` System: OS: Linux 6.1 Amazon Linux 2 CPU: (16) x64 Intel(R) Xeon(R) Platinum 8275CL CPU @ 3.00GHz Memory: 26.60 GB / 30.64 GB Container: Yes Shell: 4.2.46 - /bin/bash Binaries: Node: 16.20.0 - /usr/bin/node npm: 8.19.4 - /usr/bin/npm Browsers: Chrome: 114.0.5735.198 npmPackages: @currents/nx: ^2.0.1 => 2.0.1 @nx/cypress: 16.4.2 => 16.4.2 @nx/webpack: 16.4.2 => 16.4.2 @nx/workspace: 16.4.2 => 16.4.2 ... the other dependencies removed for the privacy reasons npmGlobalPackages: corepack: 0.17.0 npm: 8.19.4 ```

Describe the bug

I'm executing the tests in parallel using 7 workers. I have 6 projects right now. Sometimes it can happen that when there are no tests to be executed by the worker - the process is gonna finish its work and it prevents e.g. CI check to finish.

Expected behavior

The process exit with code 0.

Command and Setup

nx affected -- --target=currents --browser=chrome

Full log and debug output

``` > nx run my-project-5:currents --browser=chrome --key RecordKey1 --ci-build-id 123 > NX SUCCESS Enable IIS Proxy for the app /user-data/dist/apps/my-project-5/web.config [webpack-dev-server] Project is running at: [webpack-dev-server] Loopback: http://localhost:8092/, http://127.0.0.1:8092/ [webpack-dev-server] 404s will fallback to '/foo/index.html' > NX Web Development Server is listening at http://localhost:8092/foo 2023-07-11 08:48:57: webpack compiled in 33048 ms Using config file: 'file:///user-data/apps/my-project-5/currents.config.js' Copyright (C) 2023 Currents Software Inc https://currents.dev This is free software, and you are welcome to redistribute it under certain conditions. This program comes with no warranty. Parts of this program are MIT licensed. Refer to the license for details https://github.com/currents-dev/cypress-cloud/blob/main/LICENSE.md No errors found. Discovered 4 spec files Tags: false; Group: false; Parallel: true; Batch Size: 5 Connecting to cloud orchestration service... 🎥 Run URL: http:// ==================================================================================================== Cloud Run Finished ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Spec Tests Passing Failing Pending Skipped │ ├────────────────────────────────────────────────────────────────────────────────────────────────┤ │ ✔ No specs executed 0ms - - - - - │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ 🏁 Recorded Run: http:// ```
mikejav commented 1 year ago

Additional note: for now I don't use the more verbose debug mode as this error happens pretty randomly, and when it happened I didn't have the debug mode enabled. I'll try to catch it with the debug mode on.

mikejav commented 1 year ago

The anonymized partial logs for the worker that works properly:

``` cypress:config:project:utils using CYPRESS_INTERNAL_ENV production +3ms cypress:config:project:utils resolved config is { value: [], from: 'default' } +0ms cypress:config:browser validating configuration { component: { videosFolder: '../../dist/cypress/apps/app1/videos', screenshotsFolder: '../../dist/cypress/apps/app1/screenshots', video: false, chromeWebSecurity: false, devServer: { framework: 'react', bundler: 'webpack', webpackConfig: [Object] }, indexHtmlFile: '/user-data/cypress/support/component-index.html', supportFile: '/user-data/cypress/support/component.ts', downloadsFolder: '/user-data/cypress/downloads', fixturesFolder: '/user-data/cypress/fixtures', viewportWidth: 1000, viewportHeight: 600, defaultCommandTimeout: 10000, responseTimeout: 10000, requestTimeout: 10000, retries: { runMode: 3 }, excludeSpecPattern: './src/integration/**/*.cy.{js,jsx,ts,tsx}', setupNodeEvents: '[Function setupNodeEvents]', specPattern: '**/*.cy.{js,jsx,ts,tsx}' }, e2e: { videosFolder: '../../dist/cypress/apps/app1/videos', screenshotsFolder: '../../dist/cypress/apps/app1/screenshots', video: false, chromeWebSecurity: false, fileServerFolder: '/user-data/apps/app1', supportFile: '/user-data/apps/app1/cypress/support/integration.ts', specPattern: './src/integration/**/*.cy.{js,jsx,ts,tsx}', fixturesFolder: '/user-data/apps/app1/cypress/fixtures', downloadsFolder: '/user-data/cypress/downloads', excludeSpecPattern: [ '**/__snapshots__/*', '**/__image_snapshots__/*' ], defaultCommandTimeout: 10000, responseTimeout: 10000, requestTimeout: 10000, retries: { runMode: 3, openMode: 0 }, setupNodeEvents: '[Function setupNodeEvents]', baseUrl: 'http://localhost:12003/app1/' }, videosFolder: '../../dist/cypress/apps/app1/videos', screenshotsFolder: '../../dist/cypress/apps/app1/screenshots', video: false, chromeWebSecurity: false, fileServerFolder: '/user-data/apps/app1', supportFile: '/user-data/apps/app1/cypress/support/integration.ts', specPattern: './src/integration/**/*.cy.{js,jsx,ts,tsx}', fixturesFolder: '/user-data/apps/app1/cypress/fixtures', downloadsFolder: '/user-data/cypress/downloads', excludeSpecPattern: [ '**/__snapshots__/*', '**/__image_snapshots__/*' ], defaultCommandTimeout: 10000, responseTimeout: 10000, requestTimeout: 10000, retries: { runMode: 3, openMode: 0 }, setupNodeEvents: '[Function setupNodeEvents]', baseUrl: 'http://localhost:12003/app1/', projectRoot: '/user-data/apps/app1', projectName: 'app1', repoRoot: '/user-data', rawJson: { component: { videosFolder: '../../dist/cypress/apps/app1/videos', screenshotsFolder: '../../dist/cypress/apps/app1/screenshots', video: false, chromeWebSecurity: false, devServer: [Object], indexHtmlFile: '/user-data/cypress/support/component-index.html', supportFile: '/user-data/cypress/support/component.ts', downloadsFolder: '/user-data/cypress/downloads', fixturesFolder: '/user-data/cypress/fixtures', viewportWidth: 1000, viewportHeight: 600, defaultCommandTimeout: 10000, responseTimeout: 10000, requestTimeout: 10000, retries: [Object], excludeSpecPattern: './src/integration/**/*.cy.{js,jsx,ts,tsx}', setupNodeEvents: '[Function setupNodeEvents]' }, e2e: { videosFolder: '../../dist/cypress/apps/app1/videos', screenshotsFolder: '../../dist/cypress/apps/app1/screenshots', video: false, chromeWebSecurity: false, fileServerFolder: '/user-data/apps/app1', supportFile: '/user-data/apps/app1/cypress/support/integration.ts', specPattern: './src/integration/**/*.cy.{js,jsx,ts,tsx}', fixturesFolder: '/user-data/apps/app1/cypress/fixtures', downloadsFolder: '/user-data/cypress/downloads', excludeSpecPattern: [Array], defaultCommandTimeout: 10000, responseTimeout: 10000, requestTimeout: 10000, retries: [Object], setupNodeEvents: '[Function setupNodeEvents]', baseUrl: 'http://localhost:12003/app1/' }, videosFolder: '../../dist/cypress/apps/app1/videos', screenshotsFolder: '../../dist/cypress/apps/app1/screenshots', video: false, chromeWebSecurity: false, fileServerFolder: '/user-data/apps/app1', supportFile: '/user-data/apps/app1/cypress/support/integration.ts', specPattern: './src/integration/**/*.cy.{js,jsx,ts,tsx}', fixturesFolder: '/user-data/apps/app1/cypress/fixtures', downloadsFolder: '/user-data/cypress/downloads', excludeSpecPattern: [ '**/__snapshots__/*', '**/__image_snapshots__/*' ], defaultCommandTimeout: 10000, responseTimeout: 10000, requestTimeout: 10000, retries: { runMode: 3 }, setupNodeEvents: '[Function setupNodeEvents]', baseUrl: 'http://localhost:12003/app1/', envFile: {}, projectRoot: '/user-data/apps/app1', projectName: 'app1', repoRoot: '/user-data' }, configFile: 'cypress.config.ts', morgan: false, isTextTerminal: true, socketId: 'ze8ym2et00', report: true, trashAssetsBeforeRuns: false, animationDistanceThreshold: 5, arch: 'x64', blockHosts: null, clientCertificates: [], env: { currents_ws: 34341 }, execTimeout: 60000, experimentalCspAllowList: false, experimentalFetchPolyfill: false, experimentalInteractiveRunEvents: false, experimentalRunAllSpecs: false, experimentalMemoryManagement: false, experimentalModifyObstructiveThirdPartyCode: false, experimentalSkipDomainInjection: null, experimentalOriginDependencies: false, experimentalSourceRewriting: false, experimentalSingleTabRunMode: false, experimentalStudio: false, experimentalWebKitSupport: false, includeShadowDom: false, keystrokeDelay: 0, modifyObstructiveCode: true, nodeVersion: undefined, numTestsKeptInMemory: 0, platform: 'linux', pageLoadTimeout: 60000, port: null, projectId: null, redirectionLimit: 20, reporter: 'spec', reporterOptions: null, resolvedNodePath: null, resolvedNodeVersion: null, screenshotOnRunFailure: true, slowTestThreshold: 10000, scrollBehavior: 'top', supportFolder: false, taskTimeout: 60000, testIsolation: true, userAgent: null, videoCompression: 32, videoUploadOnPasses: true, viewportHeight: 660, viewportWidth: 1000, waitForAnimations: true, watchForFileChanges: false, additionalIgnorePattern: [], autoOpen: false, clientRoute: '/__/', cypressBinaryRoot: '/user-data/.cache/Cypress/12.16.0/Cypress/resources/app', devServerPublicPathRoute: '/__cypress/src', hosts: null, isInteractive: true, namespace: '__cypress', reporterRoute: '/__cypress/reporter', socketIoCookie: '__socket', socketIoRoute: '/__socket', version: '12.16.0', cypressEnv: 'production', resolved: { animationDistanceThreshold: { value: 5, from: 'default' }, arch: { value: 'x64', from: 'default' }, baseUrl: { value: 'http://localhost:12003/app1/', from: 'config' }, blockHosts: { value: null, from: 'default' }, chromeWebSecurity: { value: false, from: 'config' }, clientCertificates: { value: [], from: 'default' }, component: { value: [Object], from: 'config' }, defaultCommandTimeout: { value: 10000, from: 'config' }, downloadsFolder: { value: '/user-data/cypress/downloads', from: 'config' }, e2e: { value: [Object], from: 'config' }, env: { currents_ws: [Object] }, execTimeout: { value: 60000, from: 'default' }, experimentalCspAllowList: { value: false, from: 'default' }, experimentalFetchPolyfill: { value: false, from: 'default' }, experimentalInteractiveRunEvents: { value: false, from: 'default' }, experimentalRunAllSpecs: { value: false, from: 'default' }, experimentalMemoryManagement: { value: false, from: 'default' }, experimentalModifyObstructiveThirdPartyCode: { value: false, from: 'default' }, experimentalSkipDomainInjection: { value: null, from: 'default' }, experimentalOriginDependencies: { value: false, from: 'default' }, experimentalSourceRewriting: { value: false, from: 'default' }, experimentalSingleTabRunMode: { value: false, from: 'default' }, experimentalStudio: { value: false, from: 'default' }, experimentalWebKitSupport: { value: false, from: 'default' }, fileServerFolder: { value: '/user-data/apps/app1', from: 'config' }, fixturesFolder: { value: '/user-data/apps/app1/cypress/fixtures', from: 'config' }, excludeSpecPattern: { value: [Array], from: 'config' }, includeShadowDom: { value: false, from: 'default' }, keystrokeDelay: { value: 0, from: 'default' }, modifyObstructiveCode: { value: true, from: 'default' }, nodeVersion: { value: undefined, from: 'default' }, numTestsKeptInMemory: { value: 0, from: 'config' }, platform: { value: 'linux', from: 'default' }, pageLoadTimeout: { value: 60000, from: 'default' }, port: { value: null, from: 'default' }, projectId: { value: null, from: 'default' }, redirectionLimit: { value: 20, from: 'default' }, reporter: { value: 'spec', from: 'default' }, reporterOptions: { value: null, from: 'default' }, requestTimeout: { value: 10000, from: 'config' }, resolvedNodePath: { value: null, from: 'default' }, resolvedNodeVersion: { value: null, from: 'default' }, responseTimeout: { value: 10000, from: 'config' }, retries: { value: [Object], from: 'config' }, screenshotOnRunFailure: { value: true, from: 'default' }, screenshotsFolder: { value: '../../dist/cypress/apps/app1/screenshots', from: 'config' }, slowTestThreshold: { value: 10000, from: 'default' }, scrollBehavior: { value: 'top', from: 'default' }, supportFile: { value: '/user-data/apps/app1/cypress/support/integration.ts', from: 'config' }, supportFolder: { value: false, from: 'default' }, taskTimeout: { value: 60000, from: 'default' }, testIsolation: { value: true, from: 'default' }, trashAssetsBeforeRuns: { value: false, from: 'cli' }, userAgent: { value: null, from: 'default' }, video: { value: false, from: 'config' }, videoCompression: { value: 32, from: 'default' }, videosFolder: { value: '../../dist/cypress/apps/app1/videos', from: 'config' }, videoUploadOnPasses: { value: true, from: 'default' }, viewportHeight: { value: 660, from: 'default' }, viewportWidth: { value: 1000, from: 'default' }, waitForAnimations: { value: true, from: 'default' }, watchForFileChanges: { value: false, from: 'config' }, specPattern: { value: './src/integration/**/*.cy.{js,jsx,ts,tsx}', from: 'config' }, browsers: { value: [], from: 'default' }, hosts: { value: null, from: 'default' }, isInteractive: { value: true, from: 'default' } } pipelines-cypress-worker-2 | } +9ms cypress:server:validation clientCerts: [] +0ms cypress:config:project:utils validate that there is no breaking config options before setupNodeEvents +2ms cypress:data-context:sources:FileDataSource globbing pattern(s): [ 'cypress/support/integration.ts' ] +0ms cypress:data-context:sources:FileDataSource within directory: /user-data/apps/app1 +0ms cypress:lifecycle:child:run_require_async_child:14007 loaded config from /user-data/apps/app1/cypress.config.ts { component: { videosFolder: '../../dist/cypress/apps/app1/videos', screenshotsFolder: '../../dist/cypress/apps/app1/screenshots', video: false, chromeWebSecurity: false, devServer: { framework: 'react', bundler: 'webpack', webpackConfig: [Object] }, indexHtmlFile: '/user-data/cypress/support/component-index.html', supportFile: '/user-data/cypress/support/component.ts', downloadsFolder: '/user-data/cypress/downloads', fixturesFolder: '/user-data/cypress/fixtures', viewportWidth: 1000, viewportHeight: 600, defaultCommandTimeout: 10000, responseTimeout: 10000, requestTimeout: 10000, retries: { runMode: 3 }, excludeSpecPattern: './src/integration/**/*.cy.{js,jsx,ts,tsx}', setupNodeEvents: [Function: setupNodeEvents] }, e2e: { videosFolder: '../../dist/cypress/apps/app1/videos', screenshotsFolder: '../../dist/cypress/apps/app1/screenshots', video: false, chromeWebSecurity: false, fileServerFolder: '/user-data/apps/app1', supportFile: '/user-data/apps/app1/cypress/support/integration.ts', specPattern: './src/integration/**/*.cy.{js,jsx,ts,tsx}', fixturesFolder: '/user-data/apps/app1/cypress/fixtures', downloadsFolder: '/user-data/cypress/downloads', excludeSpecPattern: [ '**/__snapshots__/*', '**/__image_snapshots__/*' ], defaultCommandTimeout: 10000, responseTimeout: 10000, requestTimeout: 10000, retries: { runMode: 3 }, setupNodeEvents: [AsyncFunction: setupNodeEvents], baseUrl: 'http://localhost:12003/app1/' } } +1ms cypress:config:project:utils setting support file /user-data/apps/app1/cypress/support/integration.ts +14ms cypress:config:project:utils for project root /user-data/apps/app1 +0ms cypress:config:project:utils resolved support file /user-data/apps/app1/cypress/support/integration.ts +1ms cypress:config:project:utils set support folder /user-data/apps/app1/cypress/support +1ms cypress:config:browser validating configuration { videosFolder: '/user-data/dist/cypress/apps/app1/videos', screenshotsFolder: '/user-data/dist/cypress/apps/app1/screenshots', video: false, chromeWebSecurity: false, fileServerFolder: '/user-data/apps/app1', supportFile: '/user-data/apps/app1/cypress/support/integration.ts', specPattern: './src/integration/**/*.cy.{js,jsx,ts,tsx}', fixturesFolder: '/user-data/apps/app1/cypress/fixtures', downloadsFolder: '/user-data/cypress/downloads', excludeSpecPattern: [ '**/__snapshots__/*', '**/__image_snapshots__/*' ], defaultCommandTimeout: 10000, responseTimeout: 10000, requestTimeout: 10000, retries: { runMode: 3, openMode: 0 }, setupNodeEvents: '[Function setupNodeEvents]', baseUrl: 'http://localhost:12003/app1/', projectRoot: '/user-data/apps/app1', projectName: 'app1', repoRoot: '/user-data', rawJson: { component: { videosFolder: '../../dist/cypress/apps/app1/videos', screenshotsFolder: '../../dist/cypress/apps/app1/screenshots', video: false, chromeWebSecurity: false, devServer: [Object], indexHtmlFile: '/user-data/cypress/support/component-index.html', supportFile: '/user-data/cypress/support/component.ts', downloadsFolder: '/user-data/cypress/downloads', fixturesFolder: '/user-data/cypress/fixtures', viewportWidth: 1000, viewportHeight: 600, defaultCommandTimeout: 10000, responseTimeout: 10000, requestTimeout: 10000, retries: [Object], excludeSpecPattern: './src/integration/**/*.cy.{js,jsx,ts,tsx}', setupNodeEvents: '[Function setupNodeEvents]' }, e2e: { videosFolder: '../../dist/cypress/apps/app1/videos', screenshotsFolder: '../../dist/cypress/apps/app1/screenshots', video: false, chromeWebSecurity: false, fileServerFolder: '/user-data/apps/app1', supportFile: '/user-data/apps/app1/cypress/support/integration.ts', specPattern: './src/integration/**/*.cy.{js,jsx,ts,tsx}', fixturesFolder: '/user-data/apps/app1/cypress/fixtures', downloadsFolder: '/user-data/cypress/downloads', excludeSpecPattern: [Array], defaultCommandTimeout: 10000, responseTimeout: 10000, requestTimeout: 10000, retries: [Object], setupNodeEvents: '[Function setupNodeEvents]', baseUrl: 'http://localhost:12003/app1/' }, videosFolder: '../../dist/cypress/apps/app1/videos', screenshotsFolder: '../../dist/cypress/apps/app1/screenshots', video: false, chromeWebSecurity: false, fileServerFolder: '/user-data/apps/app1', supportFile: '/user-data/apps/app1/cypress/support/integration.ts', specPattern: './src/integration/**/*.cy.{js,jsx,ts,tsx}', fixturesFolder: '/user-data/apps/app1/cypress/fixtures', downloadsFolder: '/user-data/cypress/downloads', excludeSpecPattern: [ '**/__snapshots__/*', '**/__image_snapshots__/*' ], defaultCommandTimeout: 10000, responseTimeout: 10000, requestTimeout: 10000, retries: { runMode: 3 }, setupNodeEvents: '[Function setupNodeEvents]', baseUrl: 'http://localhost:12003/app1/', envFile: {}, projectRoot: '/user-data/apps/app1', projectName: 'app1', repoRoot: '/user-data' }, configFile: 'cypress.config.ts', morgan: false, isTextTerminal: true, socketId: 'ze8ym2et00', report: true, trashAssetsBeforeRuns: false, animationDistanceThreshold: 5, arch: 'x64', blockHosts: null, clientCertificates: [], env: { currents_ws: 34341 }, execTimeout: 60000, experimentalCspAllowList: false, experimentalFetchPolyfill: false, experimentalInteractiveRunEvents: false, experimentalRunAllSpecs: false, experimentalMemoryManagement: false, experimentalModifyObstructiveThirdPartyCode: false, experimentalSkipDomainInjection: null, experimentalOriginDependencies: false, experimentalSourceRewriting: false, experimentalSingleTabRunMode: false, experimentalStudio: false, experimentalWebKitSupport: false, includeShadowDom: false, keystrokeDelay: 0, modifyObstructiveCode: true, nodeVersion: undefined, numTestsKeptInMemory: 0, platform: 'linux', pageLoadTimeout: 60000, port: null, projectId: null, redirectionLimit: 20, reporter: 'spec', reporterOptions: null, resolvedNodePath: '/usr/bin/node', resolvedNodeVersion: '16.20.0', screenshotOnRunFailure: true, slowTestThreshold: 10000, scrollBehavior: 'top', supportFolder: '/user-data/apps/app1/cypress/support', taskTimeout: 60000, testIsolation: true, userAgent: null, videoCompression: 32, videoUploadOnPasses: true, viewportHeight: 660, viewportWidth: 1000, waitForAnimations: true, watchForFileChanges: false, additionalIgnorePattern: [], autoOpen: false, browsers: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '114.0.5735.198', path: 'google-chrome', minSupportedVersion: 64, majorVersion: '114' }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '106.0.5249.51', path: '', majorVersion: 106 } ], clientRoute: '/__/', cypressBinaryRoot: '/user-data/.cache/Cypress/12.16.0/Cypress/resources/app', devServerPublicPathRoute: '/__cypress/src', hosts: null, isInteractive: true, namespace: '__cypress', reporterRoute: '/__cypress/reporter', socketIoCookie: '__socket', socketIoRoute: '/__socket', version: '12.16.0', cypressEnv: 'production', resolved: { animationDistanceThreshold: { value: 5, from: 'default' }, arch: { value: 'x64', from: 'default' }, baseUrl: { value: 'http://localhost:12003/app1/', from: 'config' }, blockHosts: { value: null, from: 'default' }, chromeWebSecurity: { value: false, from: 'config' }, clientCertificates: { value: [], from: 'default' }, defaultCommandTimeout: { value: 10000, from: 'config' }, downloadsFolder: { value: '/user-data/cypress/downloads', from: 'config' }, env: { currents_ws: [Object] }, execTimeout: { value: 60000, from: 'default' }, experimentalCspAllowList: { value: false, from: 'default' }, experimentalFetchPolyfill: { value: false, from: 'default' }, experimentalInteractiveRunEvents: { value: false, from: 'default' }, experimentalRunAllSpecs: { value: false, from: 'default' }, experimentalMemoryManagement: { value: false, from: 'default' }, experimentalModifyObstructiveThirdPartyCode: { value: false, from: 'default' }, experimentalSkipDomainInjection: { value: null, from: 'default' }, experimentalOriginDependencies: { value: false, from: 'default' }, experimentalSourceRewriting: { value: false, from: 'default' }, experimentalSingleTabRunMode: { value: false, from: 'default' }, experimentalStudio: { value: false, from: 'default' }, experimentalWebKitSupport: { value: false, from: 'default' }, fileServerFolder: { value: '/user-data/apps/app1', from: 'config' }, fixturesFolder: { value: '/user-data/apps/app1/cypress/fixtures', from: 'config' }, excludeSpecPattern: { value: [Array], from: 'config' }, includeShadowDom: { value: false, from: 'default' }, keystrokeDelay: { value: 0, from: 'default' }, modifyObstructiveCode: { value: true, from: 'default' }, nodeVersion: { value: undefined, from: 'default' }, numTestsKeptInMemory: { value: 0, from: 'config' }, platform: { value: 'linux', from: 'default' }, pageLoadTimeout: { value: 60000, from: 'default' }, port: { value: null, from: 'default' }, projectId: { value: null, from: 'default' }, redirectionLimit: { value: 20, from: 'default' }, reporter: { value: 'spec', from: 'default' }, reporterOptions: { value: null, from: 'default' }, requestTimeout: { value: 10000, from: 'config' }, resolvedNodePath: { value: null, from: 'default' }, resolvedNodeVersion: { value: null, from: 'default' }, responseT pipelines-cypress-worker-2 exited with code 0 ```

and the one that don't:

``` cypress:lifecycle:EventRegistrar plugin event registered? { eventName: 'after:run', isRegistered: false } +40ms cypress:server:run saving output results { outputPath: '/tmp/tmp-165-fCOH94iOYBH6' } +4ms cypress:server:request aborting { requestId: 'request1505' } +3s cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 39246 } +20s cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 50154 } +0ms cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 50144 } +0ms cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 39242 } +0ms cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 39240 } +0ms cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 39264 } +1ms cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 39252 } +0ms tput: No value for $TERM and no -T specified cypress:server:cypress about to exit with code 0 +4m cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 42644 } +49ms cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 42690 } +0ms cypress:server:socket-base socket-disconnecting transport close +2s cypress:server:socket-base socket-disconnect transport close +0ms cypress:server:browsers killing browser process +4m cypress:server:browsers:chrome closing remote interface client +3s cypress:server:browsers:chrome closing chrome +0ms cypress:proxy:http:util:prerequests metrics: { browserPreRequestsReceived: 5748, proxyRequestsReceived: 762, immediatelyMatchedRequests: 232, unmatchedRequests: 20, unmatchedPreRequests: 4638 } +0ms cypress:launcher:browsers chrome stderr: No valid task runner, exiting ungracefully. +1m cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 50130 } +6ms cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 55364 } +0ms cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 55356 } +0ms ================================================================================ (Run Finished) Spec Tests Passing Failing Pending Skipped ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ ✔ test1.cy.ts 03:33 6 6 - - - │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ ✔ All specs passed! 03:33 6 6 - - - 2023-07-12T13:31:20.372Z cypress:cli child event fired { event: 'exit', code: 0, signal: null } Reporting results and artifacts in background... 2023-07-12T13:31:20.376Z cypress:cli child event fired { event: 'close', code: 0, signal: null } ==================================================================================================== Cloud Run Finished ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Spec Tests Passing Failing Pending Skipped │ ├────────────────────────────────────────────────────────────────────────────────────────────────┤ │ ✔ test2.cy.ts 12.6s 2 2 - - - │ │ ✔ test3.cy.ts 42.3s 7 7 - - - │ │ ✔ test4.cy.ts 10.9s 1 1 - - - │ │ ✔ test5.cy.ts 34s 3 3 - - - │ │ ✔ test1.cy.ts 3m 33.4s 6 6 - - - │ │ ✔ All specs passed! 5m 13.4s 19 19 - - - │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ 🏁 Recorded Run: http:///run/59a63927af92896c01010c3acca537a7 > nx run app2:currents --browser=chrome --key RecordKey1 --ci-build-id 20230712.14 2023-07-12T13:31:21.185Z cypress:cli exporting Cypress module interface > NX SUCCESS Enable IIS Proxy for the app /user-data/dist/apps/group1/web.config [webpack-dev-server] Project is running at: [webpack-dev-server] Loopback: http://localhost:12000/, http://127.0.0.1:12000/ [webpack-dev-server] 404s will fallback to '/apps/index.html' > NX Web Development Server is listening at http://localhost:12000/apps 2023-07-12 13:31:35: webpack compiled in 11878 ms Using config file: 'file:///user-data/libs/group1/module1/mod/currents.config.js' Copyright (C) 2023 Currents Software Inc https://currents.dev This is free software, and you are welcome to redistribute it under certain conditions. This program comes with no warranty. Parts of this program are MIT licensed. Refer to the license for details https://github.com/currents-dev/cypress-cloud/blob/main/LICENSE.md Type-checking in progress... 2023-07-12T13:31:35.615Z cy2 Cypress normalized binary path: /user-data/node_modules/cypress/bin/cypress Discovered 2 spec files Tags: false; Group: false; Parallel: true; Batch Size: 5 Connecting to cloud orchestration service... 🎥 Run URL: http:///run/d3289655eff6864c9bf1b0105eb990a6 ==================================================================================================== Cloud Run Finished ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Spec Tests Passing Failing Pending Skipped │ ├────────────────────────────────────────────────────────────────────────────────────────────────┤ │ ✔ No specs executed 0ms - - - - - │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ 🏁 Recorded Run: http:///run/d3289655eff6864c9bf1b0105eb990a6 > nx run group1-app2:currents --browser=chrome --key RecordKey1 --ci-build-id 20230712.14 2023-07-12T13:31:41.138Z cypress:cli exporting Cypress module interface > NX SUCCESS Enable IIS Proxy for the app /user-data/dist/apps/group1/web.config [webpack-dev-server] Project is running at: [webpack-dev-server] Loopback: http://localhost:12000/, http://127.0.0.1:12000/ [webpack-dev-server] 404s will fallback to '/apps/index.html' > NX Web Development Server is listening at http://localhost:12000/apps 2023-07-12 13:31:56: webpack compiled in 12717 ms Using config file: 'file:///user-data/libs/group1/module2/mod/currents.config.js' Copyright (C) 2023 Currents Software Inc https://currents.dev This is free software, and you are welcome to redistribute it under certain conditions. This program comes with no warranty. Parts of this program are MIT licensed. Refer to the license for details https://github.com/currents-dev/cypress-cloud/blob/main/LICENSE.md Type-checking in progress... 2023-07-12T13:31:56.866Z cy2 Cypress normalized binary path: /user-data/node_modules/cypress/bin/cypress Discovered 1 spec files Tags: false; Group: false; Parallel: true; Batch Size: 5 Connecting to cloud orchestration service... 🎥 Run URL: http:///run/34f5c02e18c86e2e79fe15a1eef1d789 ==================================================================================================== Cloud Run Finished ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Spec Tests Passing Failing Pending Skipped │ ├────────────────────────────────────────────────────────────────────────────────────────────────┤ │ ✔ No specs executed 0ms - - - - - │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ 🏁 Recorded Run: http:///run/34f5c02e18c86e2e79fe15a1eef1d789 > nx run app3:currents --browser=chrome --key RecordKey1 --ci-build-id 20230712.14 2023-07-12T13:32:03.271Z cypress:cli exporting Cypress module interface > NX SUCCESS Enable IIS Proxy for the app /user-data/dist/apps/app3/web.config [webpack-dev-server] Project is running at: [webpack-dev-server] Loopback: http://localhost:12005/, http://127.0.0.1:12005/ [webpack-dev-server] 404s will fallback to '/app3/index.html' > NX Web Development Server is listening at http://localhost:12005/app3 2023-07-12 13:32:26: webpack compiled in 21041 ms Using config file: 'file:///user-data/libs/app3/module3/mod/currents.config.js' Copyright (C) 2023 Currents Software Inc https://currents.dev This is free software, and you are welcome to redistribute it under certain conditions. This program comes with no warranty. Parts of this program are MIT licensed. Refer to the license for details https://github.com/currents-dev/cypress-cloud/blob/main/LICENSE.md No errors found. 2023-07-12T13:32:27.093Z cy2 Cypress normalized binary path: /user-data/node_modules/cypress/bin/cypress Discovered 6 spec files Tags: false; Group: false; Parallel: true; Batch Size: 5 Connecting to cloud orchestration service... 🎥 Run URL: http:///run/fb17d0cfc5c79c4afcdd4575f2f05daa ==================================================================================================== Cloud Run Finished ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Spec Tests Passing Failing Pending Skipped │ ├────────────────────────────────────────────────────────────────────────────────────────────────┤ │ ✔ No specs executed 0ms - - - - - │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ 🏁 Recorded Run: http:///run/fb17d0cfc5c79c4afcdd4575f2f05daa > nx run app4:currents --browser=chrome --key RecordKey1 --ci-build-id 20230712.14 2023-07-12T13:32:32.958Z cypress:cli exporting Cypress module interface > NX SUCCESS Enable IIS Proxy for the app /user-data/dist/apps/app4/web.config [webpack-dev-server] Project is running at: [webpack-dev-server] Loopback: http://localhost:12004/, http://127.0.0.1:12004/ [webpack-dev-server] 404s will fallback to '/app2/index.html' > NX Web Development Server is listening at http://localhost:12004/app2 2023-07-12 13:32:54: webpack compiled in 19720 ms Using config file: 'file:///user-data/apps/app4/currents.config.js' Copyright (C) 2023 Currents Software Inc https://currents.dev This is free software, and you are welcome to redistribute it under certain conditions. This program comes with no warranty. Parts of this program are MIT licensed. Refer to the license for details https://github.com/currents-dev/cypress-cloud/blob/main/LICENSE.md No errors found. 2023-07-12T13:32:55.015Z cy2 Cypress normalized binary path: /user-data/node_modules/cypress/bin/cypress Discovered 3 spec files Tags: false; Group: false; Parallel: true; Batch Size: 5 Connecting to cloud orchestration service... 🎥 Run URL: http:///run/458de0dadd8f5ea0b921c15dd1e753ce ==================================================================================================== Cloud Run Finished ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Spec Tests Passing Failing Pending Skipped │ ├────────────────────────────────────────────────────────────────────────────────────────────────┤ │ ✔ No specs executed 0ms - - - - - │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ 🏁 Recorded Run: http:///run/458de0dadd8f5ea0b921c15dd1e753ce ```

Note the lack of pipelines-cypress-worker-<worker number here> exited with code 0 at the end of the 2nd case (it's basically a docker container related indicator).

agoldis commented 1 year ago

We really need the debug log (for the handing tests) to proceed. Please see here https://github.com/currents-dev/cypress-cloud#troubleshooting. Please reopen and tag me when the debug is enabled

mikejav commented 1 year ago

@agoldis the full debug logs contain a lot of data that I can't expose. E.g. the tests/assertions content, project paths etc. Tell me pls - can I omit such data or it's mandatory as well?

agoldis commented 1 year ago

@mikejav not necessarily, I need to figure out what's happening after this line of code: https://github.com/currents-dev/cypress-cloud/blob/main/packages/cypress-cloud/lib/run.ts#L140

mikejav commented 1 year ago

After I enabled debug mode for currents - everything started to work as expected. So I disabled debug mode and now this problem is gone. Maybe some cache was cleared out or something. If I'll catch it once again - I'll send you those logs. Thanks @agoldis for your assistance :)

mikejav commented 1 year ago

Note for future readers. It looks like not a problem with the Currents but with the Cypress itself. https://github.com/cypress-io/cypress/issues/27264