[scout] migrate Lens API tests#267993
Conversation
|
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (30)
💤 Files with no reviewable changes (21)
📝 WalkthroughWalkthroughThis PR migrates Lens API tests from the FTR framework to Scout. New Scout-based test suites are added under 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
jbudz
left a comment
There was a problem hiding this comment.
.buildkite/ftr_platform_stateful_configs.yml lgtm
walterra
left a comment
There was a problem hiding this comment.
Looks great, just added one comment/question. Ran the tests locally too.
| */ | ||
| export const COMMON_HEADERS = { | ||
| 'kbn-xsrf': 'some-xsrf-token', | ||
| 'x-elastic-internal-origin': 'kibana', |
There was a problem hiding this comment.
As of 9.4 /api/visualizations is a public API - I wonder should we remove this header or maybe even do 2 runs to simulate internal and external API access?
There was a problem hiding this comment.
Good point. If it is public we should drop the header, as for the 2nd case it really depends if Kibana keeps calling it this way?
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
|
|
Starting backport for target branches: 8.19, 9.3, 9.4 https://github.com/elastic/kibana/actions/runs/25563268298 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
|
Starting backport for target branches: 9.3, 9.4 https://github.com/elastic/kibana/actions/runs/25566872454 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
|
About the backports: The APIs tested are only available since 9.4 so the 9.3 backports isn't necessary. |
# Backport This will backport the following commits from `main` to `9.4`: - [[scout] migrate Lens API tests (#267993)](#267993) <!--- Backport version: 11.0.2 --> ### 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":"2026-05-08T15:10:42Z","message":"[scout] migrate Lens API tests (#267993)\n\n## Summary\n\nThis PR migrates Lens API tests to Scout:\n\nbefore: `x-pack/platform/test/api_integration/apis/lens`\nafter: `x-pack/platform/plugins/shared/lens/test/scout/api`\n\n<img width=\"1954\" height=\"879\" alt=\"Screenshot 2026-05-07 at 17 42 01\"\nsrc=\"https://github.com/user-attachments/assets/38f27bbd-2078-4212-9076-02112aa1769b\"\n/>\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"b99d043eaa2b88309d9c6c22502e7285d0193718","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","test:scout","v9.5.0"],"title":"[scout] migrate Lens API tests","number":267993,"url":"https://github.com/elastic/kibana/pull/267993","mergeCommit":{"message":"[scout] migrate Lens API tests (#267993)\n\n## Summary\n\nThis PR migrates Lens API tests to Scout:\n\nbefore: `x-pack/platform/test/api_integration/apis/lens`\nafter: `x-pack/platform/plugins/shared/lens/test/scout/api`\n\n<img width=\"1954\" height=\"879\" alt=\"Screenshot 2026-05-07 at 17 42 01\"\nsrc=\"https://github.com/user-attachments/assets/38f27bbd-2078-4212-9076-02112aa1769b\"\n/>\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"b99d043eaa2b88309d9c6c22502e7285d0193718"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/267993","number":267993,"mergeCommit":{"message":"[scout] migrate Lens API tests (#267993)\n\n## Summary\n\nThis PR migrates Lens API tests to Scout:\n\nbefore: `x-pack/platform/test/api_integration/apis/lens`\nafter: `x-pack/platform/plugins/shared/lens/test/scout/api`\n\n<img width=\"1954\" height=\"879\" alt=\"Screenshot 2026-05-07 at 17 42 01\"\nsrc=\"https://github.com/user-attachments/assets/38f27bbd-2078-4212-9076-02112aa1769b\"\n/>\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"b99d043eaa2b88309d9c6c22502e7285d0193718"}}]}] BACKPORT-->
# Backport This will backport the following commits from `main` to `9.3`: - [[scout] migrate Lens API tests (#267993)](#267993) <!--- Backport version: 11.0.2 --> ### 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":"2026-05-08T15:10:42Z","message":"[scout] migrate Lens API tests (#267993)\n\n## Summary\n\nThis PR migrates Lens API tests to Scout:\n\nbefore: `x-pack/platform/test/api_integration/apis/lens`\nafter: `x-pack/platform/plugins/shared/lens/test/scout/api`\n\n<img width=\"1954\" height=\"879\" alt=\"Screenshot 2026-05-07 at 17 42 01\"\nsrc=\"https://github.com/user-attachments/assets/38f27bbd-2078-4212-9076-02112aa1769b\"\n/>\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"b99d043eaa2b88309d9c6c22502e7285d0193718","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","test:scout","v9.5.0"],"title":"[scout] migrate Lens API tests","number":267993,"url":"https://github.com/elastic/kibana/pull/267993","mergeCommit":{"message":"[scout] migrate Lens API tests (#267993)\n\n## Summary\n\nThis PR migrates Lens API tests to Scout:\n\nbefore: `x-pack/platform/test/api_integration/apis/lens`\nafter: `x-pack/platform/plugins/shared/lens/test/scout/api`\n\n<img width=\"1954\" height=\"879\" alt=\"Screenshot 2026-05-07 at 17 42 01\"\nsrc=\"https://github.com/user-attachments/assets/38f27bbd-2078-4212-9076-02112aa1769b\"\n/>\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"b99d043eaa2b88309d9c6c22502e7285d0193718"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/267993","number":267993,"mergeCommit":{"message":"[scout] migrate Lens API tests (#267993)\n\n## Summary\n\nThis PR migrates Lens API tests to Scout:\n\nbefore: `x-pack/platform/test/api_integration/apis/lens`\nafter: `x-pack/platform/plugins/shared/lens/test/scout/api`\n\n<img width=\"1954\" height=\"879\" alt=\"Screenshot 2026-05-07 at 17 42 01\"\nsrc=\"https://github.com/user-attachments/assets/38f27bbd-2078-4212-9076-02112aa1769b\"\n/>\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"b99d043eaa2b88309d9c6c22502e7285d0193718"}},{"url":"https://github.com/elastic/kibana/pull/268499","number":268499,"branch":"9.4","state":"OPEN"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
## Summary This PR migrates Lens API tests to Scout: before: `x-pack/platform/test/api_integration/apis/lens` after: `x-pack/platform/plugins/shared/lens/test/scout/api` <img width="1954" height="879" alt="Screenshot 2026-05-07 at 17 42 01" src="https://github.com/user-attachments/assets/38f27bbd-2078-4212-9076-02112aa1769b" /> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Summary
This PR migrates Lens API tests to Scout:
before:
x-pack/platform/test/api_integration/apis/lensafter:
x-pack/platform/plugins/shared/lens/test/scout/api