[eslint_with_types] extend file patterns + checkThenables#234520
Merged
dmlemeshko merged 6 commits intoelastic:mainfrom Sep 11, 2025
Merged
[eslint_with_types] extend file patterns + checkThenables#234520dmlemeshko merged 6 commits intoelastic:mainfrom
dmlemeshko merged 6 commits intoelastic:mainfrom
Conversation
dmlemeshko
commented
Sep 10, 2025
| 'error', | ||
| { | ||
| ignoreIIFE: false, | ||
| checkThenables: true, // check for thenable objects (not just native Promises) |
Contributor
Author
There was a problem hiding this comment.
It turns out we won't catch without it a missing await in the test code like this:
supertest
.post(`/api/console/proxy?method=GET&path=${encodeURIComponent('/_cat')}`)
.set('kbn-xsrf', 'xxx')
.send()
.expect(401);
dmlemeshko
commented
Sep 10, 2025
| '*spaces_api_integration/common/services/basic_auth_supertest.ts', | ||
| // TODO: high chances missing awaits cause test flakiness, 37 errors spotted | ||
| 'x-pack/solutions/security/test/security_solution_api_integration/**/*'], | ||
| '*security_solution_api_integration/scripts/mki_api_ftr_execution.ts', |
Contributor
Author
There was a problem hiding this comment.
I checked that this script is fine not to have await before run call
jughosta
approved these changes
Sep 10, 2025
Contributor
jughosta
left a comment
There was a problem hiding this comment.
Changes in Data Discovery tests LGTM
nkhristinin
approved these changes
Sep 10, 2025
jbudz
approved these changes
Sep 10, 2025
PhilippeOberti
approved these changes
Sep 11, 2025
Dosant
approved these changes
Sep 11, 2025
patrykkopycinski
approved these changes
Sep 11, 2025
Contributor
|
Starting backport for target branches: 8.18, 8.19, 9.0, 9.1 https://github.com/elastic/kibana/actions/runs/17644638721 |
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
History
cc @dmlemeshko |
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Sep 11, 2025
…4520) ## Summary This PR extends the file patterns for the `@typescript-eslint/no-floating-promises` ESLint rule to cover more test files. Missing `await` has repeatedly caused test flakiness, so improving automated tracking is important. With the recent test relocations, we can now apply this rule repo-wide. Several test files were also updated to add missing `await` in async function calls. (cherry picked from commit 6fb6818)
Contributor
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
kibanamachine
added a commit
that referenced
this pull request
Sep 11, 2025
) (#234749) # Backport This will backport the following commits from `main` to `9.1`: - [[eslint_with_types] extend file patterns + checkThenables (#234520)](#234520) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Dzmitry Lemechko","email":"dzmitry.lemechko@elastic.co"},"sourceCommit":{"committedDate":"2025-09-11T12:33:06Z","message":"[eslint_with_types] extend file patterns + checkThenables (#234520)\n\n## Summary\n\nThis PR extends the file patterns for the\n`@typescript-eslint/no-floating-promises` ESLint rule to cover more test\nfiles. Missing `await` has repeatedly caused test flakiness, so\nimproving automated tracking is important.\n\nWith the recent test relocations, we can now apply this rule repo-wide.\nSeveral test files were also updated to add missing `await` in async\nfunction calls.","sha":"6fb6818b2cebfea82765fe8efd92c7ec42c7ec8d","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","v9.2.0"],"title":"[eslint_with_types] extend file patterns + checkThenables","number":234520,"url":"https://github.com/elastic/kibana/pull/234520","mergeCommit":{"message":"[eslint_with_types] extend file patterns + checkThenables (#234520)\n\n## Summary\n\nThis PR extends the file patterns for the\n`@typescript-eslint/no-floating-promises` ESLint rule to cover more test\nfiles. Missing `await` has repeatedly caused test flakiness, so\nimproving automated tracking is important.\n\nWith the recent test relocations, we can now apply this rule repo-wide.\nSeveral test files were also updated to add missing `await` in async\nfunction calls.","sha":"6fb6818b2cebfea82765fe8efd92c7ec42c7ec8d"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/234520","number":234520,"mergeCommit":{"message":"[eslint_with_types] extend file patterns + checkThenables (#234520)\n\n## Summary\n\nThis PR extends the file patterns for the\n`@typescript-eslint/no-floating-promises` ESLint rule to cover more test\nfiles. Missing `await` has repeatedly caused test flakiness, so\nimproving automated tracking is important.\n\nWith the recent test relocations, we can now apply this rule repo-wide.\nSeveral test files were also updated to add missing `await` in async\nfunction calls.","sha":"6fb6818b2cebfea82765fe8efd92c7ec42c7ec8d"}}]}] BACKPORT--> Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
KodeRad
pushed a commit
to KodeRad/kibana
that referenced
this pull request
Sep 15, 2025
…4520) ## Summary This PR extends the file patterns for the `@typescript-eslint/no-floating-promises` ESLint rule to cover more test files. Missing `await` has repeatedly caused test flakiness, so improving automated tracking is important. With the recent test relocations, we can now apply this rule repo-wide. Several test files were also updated to add missing `await` in async function calls.
CAWilson94
pushed a commit
to CAWilson94/kibana
that referenced
this pull request
Sep 24, 2025
…4520) ## Summary This PR extends the file patterns for the `@typescript-eslint/no-floating-promises` ESLint rule to cover more test files. Missing `await` has repeatedly caused test flakiness, so improving automated tracking is important. With the recent test relocations, we can now apply this rule repo-wide. Several test files were also updated to add missing `await` in async function calls.
niros1
pushed a commit
that referenced
this pull request
Sep 30, 2025
## Summary This PR extends the file patterns for the `@typescript-eslint/no-floating-promises` ESLint rule to cover more test files. Missing `await` has repeatedly caused test flakiness, so improving automated tracking is important. With the recent test relocations, we can now apply this rule repo-wide. Several test files were also updated to add missing `await` in async function calls.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR extends the file patterns for the
@typescript-eslint/no-floating-promisesESLint rule to cover more test files. Missingawaithas repeatedly caused test flakiness, so improving automated tracking is important.With the recent test relocations, we can now apply this rule repo-wide. Several test files were also updated to add missing
awaitin async function calls.