CodeceptJS: [Asking for help] Process are blocking when throw error in scenario with Retry enabled

When i run to all test (~70) in 4 workers, at the end, i get stuck with this error message

✖ "after all" hook: codeceptjs.afterSuite in "Homepage feature" in 0ms
  • CodeceptJS version: 3.6.2
  • NodeJS Version: 20
  • playwright: 1.43.0
  • allure-codeceptjs: 2.15.1
  • Configuration file:

    Playwright: {
      url: testConfig.url,
      show: false,
      locale: "en-EN",
      browser: 'chromium',
      chromium: {
        args: ['--auth-server-whitelist=""'],
      },
      ignoreHTTPSErrors: true,
      fullPageScreenshots: true,
      windowSize: '1920x1080',
      waitForAction: 250,
      waitForTimeout: 10000, 
      waitForNavigation: 'load',
      restart: 'context',
      keepCookies: false,
      keepBrowserState: false
    },

I have allready open here https://github.com/codeceptjs/CodeceptJS/issues/3640 an issue before, but no response and the probleme has gone, but it’s here again 😢

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 25 (18 by maintainers)

Commits related to this issue

Most upvoted comments

I think using a console.log inside of this force JavaScript to load this part of code. And thus import Suite from Mocha: https://github.com/Horsty80/CodeceptJS/blob/3c009e0759b3ddda7caa1984209fe248213553d2/lib/scenario.js#L175

test.retries is an inside method of Mocha: https://github.com/mochajs/mocha/blob/master/lib/suite.js#L129

to me, test.retries should not be undefined. Not sure where should be the root cause