Skip to content

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

…tic#234390)

## Summary

Adding new rule to prevent playwright runner configuration overrides in
spec files. It is important to keep runner functionality unified across
all the Scout tests and having custom logic may lead to unexpected CI
behavior or wrong test results ingestion.
We already have unified functionality in place:
- retrying failure is handled on CI script level
- parallel test execution is limited to test spec level (we don't allow
concurrent run of tests within the same file)
- explicit timeouts for test execution is not recommended, but can be
accepted for individual cases

Adding smth like:

```
spaceTest.describe('Discover app - errors', { tag: tags.ESS_ONLY }, () => {
  spaceTest.describe.configure({
    retries: 2,
    timeout: 120000,
  });
```

will be blocked by pre-commit hook:

```
*[scout/scout_no_describe_configure][~/github/kibana]$ gc "add configure"
ERROR
      /Users/dmle/github/kibana/x-pack/platform/plugins/private/discover_enhanced/test/scout/ui/parallel_tests/error_handling.spec.ts
        12:3  error  Using describe.configure is not allowed in Scout tests  @kbn/eslint/scout_no_describe_configure
```

(cherry picked from commit 1d540a7)
@kibanamachine kibanamachine merged commit a540496 into elastic:9.1 Sep 10, 2025
16 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @dmlemeshko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants