-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Sustainable Kibana Architecture: Move modules owned by @elastic/security-generative-ai
#202848
Sustainable Kibana Architecture: Move modules owned by @elastic/security-generative-ai
#202848
Conversation
A documentation preview will be available soon. Request a new doc build by commenting
If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here. |
Pinging @elastic/kibana-core (Team:Core) |
0ad279d
to
5b3a95b
Compare
|
||
Fortunately, Kibana is already instrumented with APM, so if you configure an APM server, you will automatically start ingesting logs from this source (by setting ```elastic.apm.active: true```). See the [README](https://github.com/elastic/kibana/blob/main/x-pack/plugins/elastic_assistant/server/lib/langchain/tracers/README.mdx) for more details. | ||
Fortunately, Kibana is already instrumented with APM, so if you configure an APM server, you will automatically start ingesting logs from this source (by setting ```elastic.apm.active: true```). See the [README](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/elastic_assistant/server/lib/langchain/tracers/README.mdx) for more details. |
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.
Seems like this hyperlink was wrong originally already.
Fortunately, Kibana is already instrumented with APM, so if you configure an APM server, you will automatically start ingesting logs from this source (by setting ```elastic.apm.active: true```). See the [README](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/elastic_assistant/server/lib/langchain/tracers/README.mdx) for more details. | |
Fortunately, Kibana is already instrumented with APM, so if you configure an APM server, you will automatically start ingesting logs from this source (by setting ```elastic.apm.active: true```). See the [README](https://github.com/elastic/kibana/blob/main/x-pack/platform/packages/shared/kbn-langchain/server/tracers/README.mdx) for more details. |
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.
Thanks! I'm re-running the script on this PR (against latest main).
The logic has ben enhanced since the previous run, so it'll now take into account references in .buildkite/scripts/steps/code_generation/elastic_assistant_codegen.sh
(the culprit of CI failure).
Can you please update the broken path on a separate PR AFTER this one is merged? TIA
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.
Looks good. Tested locally with no issues.
6e1b13c
to
b9f322e
Compare
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.
Changes to .github/codeql/codeql-config.yml LGTM
afcd19d
to
6c886e4
Compare
There is a missing update in the code owners here: https://github.com/elastic/kibana/blob/794fe0dc2d3484d93f046f5b3bf760602cd95504/.github/CODEOWNERS#L2457C1-L2457C50. Will this be updated in another team's PR? |
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -
794fe0d
to
bb416ea
Compare
…thub.com:gsoldevila/kibana into kbn-team-1309-move-kibana-security-generative-ai
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
History
|
Starting backport for target branches: 8.x |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
…rity-generative-ai` (elastic#202848) ## Summary This PR aims at relocating some of the Kibana modules (plugins and packages) into a new folder structure, according to the _Sustainable Kibana Architecture_ initiative. > [!IMPORTANT] > * We kindly ask you to: > * Manually fix the errors in the error section below (if there are any). > * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the source code (Babel and Eslint config files), and update them appropriately. > * Manually review `.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that any CI pipeline customizations continue to be correctly applied after the changed path names > * Review all of the updated files, specially the `.ts` and `.js` files listed in the sections below, as some of them contain relative paths that have been updated. > * Think of potential impact of the move, including tooling and configuration files that can be pointing to the relocated modules. E.g.: > * customised eslint rules > * docs pointing to source code > [!NOTE] > * This PR has been auto-generated. > * Any manual contributions will be lost if the 'relocate' script is re-run. > * Try to obtain the missing reviews / approvals before applying manual fixes, and/or keep your changes in a .patch / git stash. > * Please use [#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E) Slack channel for feedback. #### 1 plugin(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/elastic-assistant-plugin` | `x-pack/solutions/security/plugins/elastic_assistant` | #### 3 packages(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/elastic-assistant` | `x-pack/platform/packages/shared/kbn-elastic-assistant` | | `@kbn/elastic-assistant-common` | `x-pack/platform/packages/shared/kbn-elastic-assistant-common` | | `@kbn/langchain` | `x-pack/platform/packages/shared/kbn-langchain` | <details > <summary>Updated references</summary> ``` ./.buildkite/scripts/steps/code_generation/elastic_assistant_codegen.sh ./.buildkite/scripts/steps/openapi_bundling/security_solution_openapi_bundling.sh ./.eslintrc.js ./.github/codeql/codeql-config.yml ./docs/developer/plugin-list.asciidoc ./oas_docs/scripts/merge_ess_oas.js ./oas_docs/scripts/merge_serverless_oas.js ./package.json ./packages/kbn-repo-packages/package-map.json ./packages/kbn-ts-projects/config-paths.json ./tsconfig.base.json ./tsconfig.base.type_check.json ./tsconfig.refs.json ./x-pack/.i18nrc.json ./x-pack/packages/kbn-elastic-assistant-common/README.md ./x-pack/platform/packages/shared/kbn-elastic-assistant-common/README.md ./x-pack/platform/packages/shared/kbn-elastic-assistant-common/env/README.md ./x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/capabilities/README.md ./x-pack/platform/packages/shared/kbn-elastic-assistant-common/jest.config.js ./x-pack/platform/packages/shared/kbn-elastic-assistant/README.md ./x-pack/platform/packages/shared/kbn-elastic-assistant/jest.config.js ./x-pack/platform/packages/shared/kbn-langchain/jest.config.js ./x-pack/plugins/elastic_assistant/README.md ./x-pack/plugins/security_solution/docs/openapi/README.md ./x-pack/solutions/security/plugins/elastic_assistant/README.md ./x-pack/solutions/security/plugins/elastic_assistant/jest.config.js ./x-pack/solutions/security/plugins/elastic_assistant/scripts/create_conversations_script.ts ./x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/docs_from_directory_loader.ts ./x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/embedding_security_in_llm_workflows.md ./x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/index.ts ./yarn.lock ``` </details><details > <summary>Updated relative paths</summary> ``` x-pack/platform/packages/shared/kbn-elastic-assistant-common/jest.config.js:21 x-pack/platform/packages/shared/kbn-elastic-assistant-common/scripts/openapi/bundle.js:8 x-pack/platform/packages/shared/kbn-elastic-assistant-common/scripts/openapi/generate.js:8 x-pack/platform/packages/shared/kbn-elastic-assistant-common/tsconfig.json:2 x-pack/platform/packages/shared/kbn-elastic-assistant/jest.config.js:21 x-pack/platform/packages/shared/kbn-elastic-assistant/tsconfig.json:15 x-pack/platform/packages/shared/kbn-elastic-assistant/tsconfig.json:2 x-pack/platform/packages/shared/kbn-langchain/jest.config.js:20 x-pack/platform/packages/shared/kbn-langchain/tsconfig.json:2 x-pack/solutions/security/plugins/elastic_assistant/jest.config.js:14 x-pack/solutions/security/plugins/elastic_assistant/scripts/create_conversations.js:8 x-pack/solutions/security/plugins/elastic_assistant/scripts/draw_graph.js:8 x-pack/solutions/security/plugins/elastic_assistant/scripts/model_evaluator.js:8 x-pack/solutions/security/plugins/elastic_assistant/tsconfig.json:13 x-pack/solutions/security/plugins/elastic_assistant/tsconfig.json:2 ``` </details> --------- Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit 6de695a) # Conflicts: # .github/CODEOWNERS # oas_docs/scripts/merge_serverless_oas.js # x-pack/.i18nrc.json # x-pack/platform/packages/shared/kbn-elastic-assistant/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 |
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
backport: #204468 |
…c/security-generative-ai` (#202848) (#204468) ## Summary Summarize your PR. If it involves visual changes include a screenshot or gif. ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [ ] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The `release_note:breaking` label should be applied in these situations. - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [ ] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) ### Identify risks Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss. Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging. - [ ] [See some risk examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) - [ ] ... --------- Co-authored-by: Gerard Soldevila <[email protected]> Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Summary
This PR aims at relocating some of the Kibana modules (plugins and packages) into a new folder structure, according to the Sustainable Kibana Architecture initiative.
Important
packages[\/\\]
andplugins[\/\\]
patterns in the source code (Babel and Eslint config files), and update them appropriately..buildkite/scripts/pipelines/pull_request/pipeline.ts
to ensure that any CI pipeline customizations continue to be correctly applied after the changed path names.ts
and.js
files listed in the sections below, as some of them contain relative paths that have been updated.Note
1 plugin(s) are going to be relocated:
@kbn/elastic-assistant-plugin
x-pack/solutions/security/plugins/elastic_assistant
3 packages(s) are going to be relocated:
@kbn/elastic-assistant
x-pack/platform/packages/shared/kbn-elastic-assistant
@kbn/elastic-assistant-common
x-pack/platform/packages/shared/kbn-elastic-assistant-common
@kbn/langchain
x-pack/platform/packages/shared/kbn-langchain
Updated references
Updated relative paths