-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[ska] remove test-helper imports that lead to circular dependencies issue #229587
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
Conversation
maxcold
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cloud_security_posture changes lgtm
| serverless: true, | ||
|
|
||
| services: {}, // define later | ||
| services: svlServices, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config without services loaded was failing when Cypress tests started with FTR were trying to use KibanaServer call
gergoabraham
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elastic/security-defend-workflows related changes look good 👍
💚 Build Succeeded
Metrics [docs]
History
cc @dmlemeshko |
|
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/16571629384 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
…ssue (elastic#229587) ## Summary This PR is a preparation before moving solution tests from `x-pack/test_serverless`. Since we move tests in chunks, having backward imports (solution imports in "platform" code) will lead to circular dependency issue. And we can't move all in 1 PR, it is just too much code. This PR temporarily copies helpers/constants/page objects to `x-pack/test_serverless` so that directory has only imports from `kbn/test-suites-xpack-platform` and not solutions. Duplicates will be removed after we finish relocating all the Security Solution tests. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 83029af) # Conflicts: # x-pack/test_serverless/tsconfig.json
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…cies issue (#229587) (#230006) # Backport This will backport the following commits from `main` to `9.1`: - [[ska] remove test-helper imports that lead to circular dependencies issue (#229587)](#229587) <!--- Backport version: 10.0.1 --> ### 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-07-28T14:21:14Z","message":"[ska] remove test-helper imports that lead to circular dependencies issue (#229587)\n\n## Summary\n\nThis PR is a preparation before moving solution tests from\n`x-pack/test_serverless`. Since we move tests in chunks, having backward\nimports (solution imports in \"platform\" code) will lead to circular\ndependency issue. And we can't move all in 1 PR, it is just too much\ncode.\n\nThis PR temporarily copies helpers/constants/page objects to\n`x-pack/test_serverless` so that directory has only imports from\n`kbn/test-suites-xpack-platform` and not solutions. Duplicates will be\nremoved after we finish relocating all the Security Solution tests.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"83029af8a13b74b4f3c70da2cb4c330ac03edcf1","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport missing","backport:version","v9.2.0","v9.1.1","v8.19.1"],"title":"[ska] remove test-helper imports that lead to circular dependencies issue","number":229587,"url":"https://github.com/elastic/kibana/pull/229587","mergeCommit":{"message":"[ska] remove test-helper imports that lead to circular dependencies issue (#229587)\n\n## Summary\n\nThis PR is a preparation before moving solution tests from\n`x-pack/test_serverless`. Since we move tests in chunks, having backward\nimports (solution imports in \"platform\" code) will lead to circular\ndependency issue. And we can't move all in 1 PR, it is just too much\ncode.\n\nThis PR temporarily copies helpers/constants/page objects to\n`x-pack/test_serverless` so that directory has only imports from\n`kbn/test-suites-xpack-platform` and not solutions. Duplicates will be\nremoved after we finish relocating all the Security Solution tests.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"83029af8a13b74b4f3c70da2cb4c330ac03edcf1"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/229587","number":229587,"mergeCommit":{"message":"[ska] remove test-helper imports that lead to circular dependencies issue (#229587)\n\n## Summary\n\nThis PR is a preparation before moving solution tests from\n`x-pack/test_serverless`. Since we move tests in chunks, having backward\nimports (solution imports in \"platform\" code) will lead to circular\ndependency issue. And we can't move all in 1 PR, it is just too much\ncode.\n\nThis PR temporarily copies helpers/constants/page objects to\n`x-pack/test_serverless` so that directory has only imports from\n`kbn/test-suites-xpack-platform` and not solutions. Duplicates will be\nremoved after we finish relocating all the Security Solution tests.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"83029af8a13b74b4f3c70da2cb4c330ac03edcf1"}},{"branch":"9.1","label":"v9.1.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…ssue (elastic#229587) ## Summary This PR is a preparation before moving solution tests from `x-pack/test_serverless`. Since we move tests in chunks, having backward imports (solution imports in "platform" code) will lead to circular dependency issue. And we can't move all in 1 PR, it is just too much code. This PR temporarily copies helpers/constants/page objects to `x-pack/test_serverless` so that directory has only imports from `kbn/test-suites-xpack-platform` and not solutions. Duplicates will be removed after we finish relocating all the Security Solution tests. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…ssue (elastic#229587) ## Summary This PR is a preparation before moving solution tests from `x-pack/test_serverless`. Since we move tests in chunks, having backward imports (solution imports in "platform" code) will lead to circular dependency issue. And we can't move all in 1 PR, it is just too much code. This PR temporarily copies helpers/constants/page objects to `x-pack/test_serverless` so that directory has only imports from `kbn/test-suites-xpack-platform` and not solutions. Duplicates will be removed after we finish relocating all the Security Solution tests. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 83029af) # Conflicts: # x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/serverless_metering/cloud_security_metering.ts # x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexed.ts # x-pack/test_serverless/tsconfig.json
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…ncies issue (#229587) (#231326) # Backport This will backport the following commits from `main` to `8.19`: - [[ska] remove test-helper imports that lead to circular dependencies issue (#229587)](#229587) <!--- Backport version: 10.0.1 --> ### 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-07-28T14:21:14Z","message":"[ska] remove test-helper imports that lead to circular dependencies issue (#229587)\n\n## Summary\n\nThis PR is a preparation before moving solution tests from\n`x-pack/test_serverless`. Since we move tests in chunks, having backward\nimports (solution imports in \"platform\" code) will lead to circular\ndependency issue. And we can't move all in 1 PR, it is just too much\ncode.\n\nThis PR temporarily copies helpers/constants/page objects to\n`x-pack/test_serverless` so that directory has only imports from\n`kbn/test-suites-xpack-platform` and not solutions. Duplicates will be\nremoved after we finish relocating all the Security Solution tests.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"83029af8a13b74b4f3c70da2cb4c330ac03edcf1","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:version","v9.2.0","v9.1.1","v8.19.1"],"title":"[ska] remove test-helper imports that lead to circular dependencies issue","number":229587,"url":"https://github.com/elastic/kibana/pull/229587","mergeCommit":{"message":"[ska] remove test-helper imports that lead to circular dependencies issue (#229587)\n\n## Summary\n\nThis PR is a preparation before moving solution tests from\n`x-pack/test_serverless`. Since we move tests in chunks, having backward\nimports (solution imports in \"platform\" code) will lead to circular\ndependency issue. And we can't move all in 1 PR, it is just too much\ncode.\n\nThis PR temporarily copies helpers/constants/page objects to\n`x-pack/test_serverless` so that directory has only imports from\n`kbn/test-suites-xpack-platform` and not solutions. Duplicates will be\nremoved after we finish relocating all the Security Solution tests.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"83029af8a13b74b4f3c70da2cb4c330ac03edcf1"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/229587","number":229587,"mergeCommit":{"message":"[ska] remove test-helper imports that lead to circular dependencies issue (#229587)\n\n## Summary\n\nThis PR is a preparation before moving solution tests from\n`x-pack/test_serverless`. Since we move tests in chunks, having backward\nimports (solution imports in \"platform\" code) will lead to circular\ndependency issue. And we can't move all in 1 PR, it is just too much\ncode.\n\nThis PR temporarily copies helpers/constants/page objects to\n`x-pack/test_serverless` so that directory has only imports from\n`kbn/test-suites-xpack-platform` and not solutions. Duplicates will be\nremoved after we finish relocating all the Security Solution tests.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"83029af8a13b74b4f3c70da2cb4c330ac03edcf1"}},{"branch":"9.1","label":"v9.1.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/230006","number":230006,"state":"MERGED","mergeCommit":{"sha":"d4b9bb4c78f908e4460100d50cd952128419269c","message":"[9.1] [ska] remove test-helper imports that lead to circular dependencies issue (#229587) (#230006)\n\n# Backport\n\nThis will backport the following commits from `main` to `9.1`:\n- [[ska] remove test-helper imports that lead to circular dependencies\nissue (#229587)](https://github.com/elastic/kibana/pull/229587)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>"}},{"branch":"8.19","label":"v8.19.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Summary
This PR is a preparation before moving solution tests from
x-pack/test_serverless. Since we move tests in chunks, having backward imports (solution imports in "platform" code) will lead to circular dependency issue. And we can't move all in 1 PR, it is just too much code.This PR temporarily copies helpers/constants/page objects to
x-pack/test_serverlessso that directory has only imports fromkbn/test-suites-xpack-platformand not solutions. Duplicates will be removed after we finish relocating all the Security Solution tests.