[FSH] Migrated fs usage to kbn/fs for sample ingest#244163
[FSH] Migrated fs usage to kbn/fs for sample ingest#244163elena-shostak merged 19 commits intoelastic:mainfrom
Conversation
…tak/kibana into 239385-fs-usage-sample-ingest
…tak/kibana into 239385-fs-usage-sample-ingest
| const sampleDataManager = new SampleDataManager({ | ||
| kibanaVersion: this.context.env.packageInfo.version, | ||
| artifactsFolder: Path.join(getDataPath(), 'sample-data-artifacts'), | ||
| artifactsFolder: 'sample-data-artifacts', |
There was a problem hiding this comment.
Note
There is no need to form a full path anymore, @kbn/fs saves to data folder under the hood
| const artifactFileName = getArtifactName({ productName, productVersion }); | ||
| const artifactUrl = `${this.artifactRepositoryUrl}/${artifactFileName}`; | ||
| const artifactPath = `${this.artifactsFolder}/${artifactFileName}`; | ||
| const artifactPathAtVolume = `${this.artifactsFolder}/${artifactFileName}`; |
There was a problem hiding this comment.
Note
sample-data-artifacts folder will be created under the hood
|
Pinging @elastic/kibana-security (Team:Security) |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Public APIs missing comments
History
|
|
Starting backport for target branches: 8.19, 9.1, 9.2 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
* commit '6647f813c9fa03ac0378e3d4756246e8dc4b4c76': (33 commits) [Detection Engine] Extracts Rules/Alerts/Exceptions permission to new Rules feature privileges (elastic#239634) [Agent Builder] Add Intro Tour (elastic#245551) Add datastream lifecycle support to indices metadata (elastic#245548) [Serverless] Update preconfigured connectors (elastic#245445) [Metrics][Discover] Discover to prefer line chars for time series data (elastic#244595) Update dependency @elastic/ebt to ^1.4.1 (main) (elastic#241629) [One Workflow] fix: request bodies with oneof schemas (`kibana.SetAlertsStatus`, etc) (elastic#245344) Update dependency ai to v5 (elastic#244675) Fix Discover trace waterfall behavior with duplicate spans (elastic#244984) [FSH] Migrated fs usage to kbn/fs for sample ingest (elastic#244163) Streamlang: Unskip type coercion test (elastic#245519) [Response Ops][Reporting] Fixing error in calculating delay value between retries (elastic#245431) Add TopNavMenuBeta to navigation plugin (elastic#243578) [scout] support custom servers configuration (elastic#244306) [Fleet] Run agentless background sync without dry run (elastic#245286) Fix Change Password Flaky Test (elastic#245443) Add new gap fill status for rules (elastic#242595) [Kibana Search] Move SLOs higher up in search results (elastic#245518) feat(slo): introduce find SLO instances internal route (elastic#245333) [FSH] Dropped unnecessary `fs` persistence for synthetics project code (elastic#244338) ...
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary Migrated `fs` usage to `@kbn/fs` for sample ingest in scope of filesystem hardening initiative. ### Checklist - [x] [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 - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. __Relates: https://github.com/elastic/kibana/issues/239385__ --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Yan Savitski <yan.savitski@elastic.co> (cherry picked from commit e7ebe47) # Conflicts: # x-pack/platform/plugins/shared/sample_data_ingest/moon.yml # x-pack/platform/plugins/shared/sample_data_ingest/server/plugin.ts # x-pack/platform/plugins/shared/sample_data_ingest/server/services/artifact_manager/artifact_manager.ts # x-pack/platform/plugins/shared/sample_data_ingest/server/services/artifact_manager/utils/download.test.ts # x-pack/platform/plugins/shared/sample_data_ingest/server/services/artifact_manager/utils/download.ts # x-pack/platform/plugins/shared/sample_data_ingest/tsconfig.json
|
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. |
1 similar comment
|
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. |
…245613) # Backport This will backport the following commits from `main` to `9.2`: - [[FSH] Migrated fs usage to kbn/fs for sample ingest (#244163)](#244163) <!--- Backport version: 10.2.0 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Elena Shostak","email":"165678770+elena-shostak@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-12-08T16:44:42Z","message":"[FSH] Migrated fs usage to kbn/fs for sample ingest (#244163)\n\n## Summary\n\nMigrated `fs` usage to `@kbn/fs` for sample ingest in scope of\nfilesystem hardening initiative.\n\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] Review the [backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand apply applicable `backport:*` labels.\n\n__Relates: https://github.com/elastic/kibana/issues/239385__\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Yan Savitski <yan.savitski@elastic.co>","sha":"e7ebe47f5f80d4e0e848ba560ce8c9bacb203d02","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Security","release_note:skip","Feature:Hardening","backport:version","v9.3.0","v8.19.8","v9.2.2","v9.1.8"],"title":"[FSH] Migrated fs usage to kbn/fs for sample ingest","number":244163,"url":"https://github.com/elastic/kibana/pull/244163","mergeCommit":{"message":"[FSH] Migrated fs usage to kbn/fs for sample ingest (#244163)\n\n## Summary\n\nMigrated `fs` usage to `@kbn/fs` for sample ingest in scope of\nfilesystem hardening initiative.\n\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] Review the [backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand apply applicable `backport:*` labels.\n\n__Relates: https://github.com/elastic/kibana/issues/239385__\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Yan Savitski <yan.savitski@elastic.co>","sha":"e7ebe47f5f80d4e0e848ba560ce8c9bacb203d02"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","9.2","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/244163","number":244163,"mergeCommit":{"message":"[FSH] Migrated fs usage to kbn/fs for sample ingest (#244163)\n\n## Summary\n\nMigrated `fs` usage to `@kbn/fs` for sample ingest in scope of\nfilesystem hardening initiative.\n\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] Review the [backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand apply applicable `backport:*` labels.\n\n__Relates: https://github.com/elastic/kibana/issues/239385__\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Yan Savitski <yan.savitski@elastic.co>","sha":"e7ebe47f5f80d4e0e848ba560ce8c9bacb203d02"}},{"branch":"8.19","label":"v8.19.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.2","label":"v9.2.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Summary
Migrated
fsusage to@kbn/fsfor sample ingest in scope of filesystem hardening initiative.Checklist
backport:*labels.Relates: #239385