codeceptjs / codeceptjs/CodeceptJS

Self healing AI capability doesn't work in parallel mode

Open
#4,526 1 comment 0 reactions 1 assignee Claimed by @DavertMik View on GitHub
stale
Dominant language
JavaScript
Stars
4.2k
Forks
757
Avg merge
2d 9h
Merged PRs (30d)
16

Description

#### What are you trying to achieve?
We would like to use self healing AI capability https://codecept.io/ai/#self-healing-tests on CI

#### What do you get instead?
Self-healing capability works only for single test execution run --ai

```bash
npx codeceptjs run --ai --grep @T6f98b591 --config=./codeceptjs/codecept.conf.common.js
```

![Screenshot 2024-10-25 at 12 13 50](https://github.com/user-attachments/assets/d7f6612a-cf0e-4c0e-b23d-accc553d70fc)

but doesn't work with parallel execution using workers

```bash
npx codeceptjs run-workers 2 --ai --grep @T6f98b591 --config=./codeceptjs/codecept.conf.common.js
```
no generation of the self-healing report for this command

### Details

* CodeceptJS version: 3.6.5
* NodeJS Version: 20.16.0
* Operating System: MacOS
* playwright: 1.38.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.