[ska] relocate common services and utils to security_solution_api_integration dir#228780
Conversation
opauloh
left a comment
There was a problem hiding this comment.
Cloud Security Posture changes LGTM
spong
left a comment
There was a problem hiding this comment.
Security GenAI changes LGTM! 👍 Thanks for helping with this refactor @dmlemeshko! 🙂
rylnd
left a comment
There was a problem hiding this comment.
Detection Engine changes LGTM
There was a problem hiding this comment.
@dmlemeshko This file along a bunch of others are now duplicated. Was this intentional? Couldn't we find a way to extract the files in a place where they car be reused?
There was a problem hiding this comment.
Yes, it is intentional but only for a short time till we relocate main test directories. Moving it to package could be a better way, but since we will remove duplicates later I would leave it for test owners
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Page load bundle
History
cc @dmlemeshko |
|
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/16827372145 |
💔 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. |
1 similar comment
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
…egration dir (elastic#228780) ## Summary It is a preparation work before we relocate `x-pack/test/security_solution_api_integration` under `x-pack/solutions/security/test`: - moving helpers/utils inside directory to avoid updating imports after relocation - importing from `security_solution_api_integration` inside `x-pack/solutions/security/test` leads to circular dependency issue, so I copied `common/utils/detections_response` as a temporary workaround until tests dir is relocated --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co> (cherry picked from commit 0051e2c) # Conflicts: # x-pack/test/api_integration/services/security_solution_api.gen.ts # x-pack/test/common/services/index.ts # x-pack/test/security_solution_api_integration/test_suites/siem_migrations/rules/trial_license_complete_tier/get_prebuilt_rules.ts # x-pack/test/security_solution_api_integration/test_suites/siem_migrations/rules/trial_license_complete_tier/install.ts # x-pack/test/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 |
…pi_integration dir (#228780) (#231623) # Backport This will backport the following commits from `main` to `9.1`: - [[ska] relocate common services and utils to security_solution_api_integration dir (#228780)](#228780) <!--- 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-08-08T09:48:47Z","message":"[ska] relocate common services and utils to security_solution_api_integration dir (#228780)\n\n## Summary\n\nIt is a preparation work before we relocate\n`x-pack/test/security_solution_api_integration` under\n`x-pack/solutions/security/test`:\n\n- moving helpers/utils inside directory to avoid updating imports after\nrelocation\n- importing from `security_solution_api_integration` inside\n`x-pack/solutions/security/test` leads to circular dependency issue, so\nI copied `common/utils/detections_response` as a temporary workaround\nuntil tests dir is relocated\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Maxim Palenov <maxim.palenov@elastic.co>","sha":"0051e2c7d2c1cb10124de1385bb3fd7974173a3c","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] relocate common services and utils to security_solution_api_integration dir","number":228780,"url":"https://github.com/elastic/kibana/pull/228780","mergeCommit":{"message":"[ska] relocate common services and utils to security_solution_api_integration dir (#228780)\n\n## Summary\n\nIt is a preparation work before we relocate\n`x-pack/test/security_solution_api_integration` under\n`x-pack/solutions/security/test`:\n\n- moving helpers/utils inside directory to avoid updating imports after\nrelocation\n- importing from `security_solution_api_integration` inside\n`x-pack/solutions/security/test` leads to circular dependency issue, so\nI copied `common/utils/detections_response` as a temporary workaround\nuntil tests dir is relocated\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Maxim Palenov <maxim.palenov@elastic.co>","sha":"0051e2c7d2c1cb10124de1385bb3fd7974173a3c"}},"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/228780","number":228780,"mergeCommit":{"message":"[ska] relocate common services and utils to security_solution_api_integration dir (#228780)\n\n## Summary\n\nIt is a preparation work before we relocate\n`x-pack/test/security_solution_api_integration` under\n`x-pack/solutions/security/test`:\n\n- moving helpers/utils inside directory to avoid updating imports after\nrelocation\n- importing from `security_solution_api_integration` inside\n`x-pack/solutions/security/test` leads to circular dependency issue, so\nI copied `common/utils/detections_response` as a temporary workaround\nuntil tests dir is relocated\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Maxim Palenov <maxim.palenov@elastic.co>","sha":"0051e2c7d2c1cb10124de1385bb3fd7974173a3c"}},{"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>
…egration dir (elastic#228780) ## Summary It is a preparation work before we relocate `x-pack/test/security_solution_api_integration` under `x-pack/solutions/security/test`: - moving helpers/utils inside directory to avoid updating imports after relocation - importing from `security_solution_api_integration` inside `x-pack/solutions/security/test` leads to circular dependency issue, so I copied `common/utils/detections_response` as a temporary workaround until tests dir is relocated --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co>
…egration dir (elastic#228780) ## Summary It is a preparation work before we relocate `x-pack/test/security_solution_api_integration` under `x-pack/solutions/security/test`: - moving helpers/utils inside directory to avoid updating imports after relocation - importing from `security_solution_api_integration` inside `x-pack/solutions/security/test` leads to circular dependency issue, so I copied `common/utils/detections_response` as a temporary workaround until tests dir is relocated --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co>
Summary
It is a preparation work before we relocate
x-pack/test/security_solution_api_integrationunderx-pack/solutions/security/test:security_solution_api_integrationinsidex-pack/solutions/security/testleads to circular dependency issue, so I copiedcommon/utils/detections_responseas a temporary workaround until tests dir is relocated