Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[scout] enable eslint plugin playwright #210666

Merged

Conversation

dmlemeshko
Copy link
Member

@dmlemeshko dmlemeshko commented Feb 11, 2025

Summary

Closes #210300

It was a quick work to do while we don't have many tests yet.

For reviewers: we most likely will review and update the rules to align better with final test design for Scout before GA. I don't think we have to deep dive into what rules are missing, but just to make sure I didn't restrict something important from your perspective.

Rules are described in https://github.com/playwright-community/eslint-plugin-playwright?tab=readme-ov-file#rules

@dmlemeshko dmlemeshko self-assigned this Feb 12, 2025
@dmlemeshko dmlemeshko added release_note:skip Skip the PR/issue when compiling release notes v9.0.0 backport:version Backport to applied version labels v9.1.0 v8.19.0 test:scout labels Feb 12, 2025
@dmlemeshko dmlemeshko marked this pull request as ready for review February 12, 2025 09:58
@dmlemeshko dmlemeshko requested review from a team as code owners February 12, 2025 09:58
Copy link
Contributor

@mykolaharmash mykolaharmash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obs Onboarding change LGTM ✨

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts / Serverless Observability - Deployment-agnostic API integration tests Observability Alerting Burn rate rule Rule creation should set correct information in the alert document

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
@kbn/scout 0 1 +1

Total ESLint disabled count

id before after diff
@kbn/scout 0 1 +1

History

cc @dmlemeshko

Copy link
Member

@pheyos pheyos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dmlemeshko dmlemeshko merged commit ddd0fdb into elastic:main Feb 14, 2025
10 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x, 9.0

https://github.com/elastic/kibana/actions/runs/13326217262

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 14, 2025
## Summary

Closes elastic#21030

It was a quick work to do while we don't have many tests yet.

For reviewers: we most likely will review and update the rules to align
better with final test design for Scout before GA. I don't think we have
to deep dive into what rules are missing, but just to make sure I didn't
restrict something important from your perspective.

Rules are described in
https://github.com/playwright-community/eslint-plugin-playwright?tab=readme-ov-file#rules

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit ddd0fdb)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.x Backport failed because of merge conflicts

You might need to backport the following PRs to 8.x:
- chore(NA): upgrade to webpack 5 (#191106)
- Remove dependency date-fns !! (#209539)
- github-actions: notify github commands for all the observability code (#195219)
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 210666

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 14, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [[scout] enable eslint plugin playwright
(#210666)](#210666)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Dzmitry
Lemechko","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-14T09:21:49Z","message":"[scout]
enable eslint plugin playwright (#210666)\n\n## Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/21030\r\n\r\nIt was a quick
work to do while we don't have many tests yet. \r\n\r\nFor reviewers: we
most likely will review and update the rules to align\r\nbetter with
final test design for Scout before GA. I don't think we have\r\nto deep
dive into what rules are missing, but just to make sure I
didn't\r\nrestrict something important from your
perspective.\r\n\r\nRules are described
in\r\nhttps://github.com/playwright-community/eslint-plugin-playwright?tab=readme-ov-file#rules\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"ddd0fdb4794b71f7c500f5d7d03a846bf21174b9","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:version","test:scout","v9.1.0","v8.19.0"],"title":"[scout]
enable eslint plugin
playwright","number":210666,"url":"https://github.com/elastic/kibana/pull/210666","mergeCommit":{"message":"[scout]
enable eslint plugin playwright (#210666)\n\n## Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/21030\r\n\r\nIt was a quick
work to do while we don't have many tests yet. \r\n\r\nFor reviewers: we
most likely will review and update the rules to align\r\nbetter with
final test design for Scout before GA. I don't think we have\r\nto deep
dive into what rules are missing, but just to make sure I
didn't\r\nrestrict something important from your
perspective.\r\n\r\nRules are described
in\r\nhttps://github.com/playwright-community/eslint-plugin-playwright?tab=readme-ov-file#rules\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"ddd0fdb4794b71f7c500f5d7d03a846bf21174b9"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/210666","number":210666,"mergeCommit":{"message":"[scout]
enable eslint plugin playwright (#210666)\n\n## Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/21030\r\n\r\nIt was a quick
work to do while we don't have many tests yet. \r\n\r\nFor reviewers: we
most likely will review and update the rules to align\r\nbetter with
final test design for Scout before GA. I don't think we have\r\nto deep
dive into what rules are missing, but just to make sure I
didn't\r\nrestrict something important from your
perspective.\r\n\r\nRules are described
in\r\nhttps://github.com/playwright-community/eslint-plugin-playwright?tab=readme-ov-file#rules\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"ddd0fdb4794b71f7c500f5d7d03a846bf21174b9"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Dzmitry Lemechko <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes test:scout v8.19.0 v9.0.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Scout] add ESLint Plugin Playwright
6 participants