Skip to content

Conversation

@dmlemeshko
Copy link
Member

Backport

This will backport the following commits from main to 8.19:

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)

# Conflicts:
#	.eslintrc.js
#	packages/kbn-eslint-plugin-eslint/index.js
@dmlemeshko dmlemeshko added the backport This PR is a backport of another PR label Sep 10, 2025
@dmlemeshko dmlemeshko enabled auto-merge (squash) September 10, 2025 07:23
@dmlemeshko dmlemeshko requested a review from csr September 10, 2025 08:27
@dmlemeshko dmlemeshko merged commit 20def40 into elastic:8.19 Sep 10, 2025
11 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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