Skip to content

Commit

Permalink
[8.15] `yarn kbn reset` will clean data/ as well to avoid s…
Browse files Browse the repository at this point in the history
…tale state (elastic#188298) (elastic#188316)

# Backport

This will backport the following commits from `main` to `8.15`:
- [`yarn kbn reset` will clean data/ as well to avoid stale
state (elastic#188298)](elastic#188298)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Alex
Szabo","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-07-15T14:38:57Z","message":"`yarn
kbn reset` will clean data/ as well to avoid stale state (elastic#188298)\n\n##
Summary\r\nIn some cases, the `data/` folder sticking around is causing
developers'\r\nenvironments to be corrupted. None of the current
reset/clean methods\r\nclean that folder. This PR adds this small
adjustment.\r\n\r\nCloses:
https://github.com/elastic/kibana/issues/187914","sha":"f1fa22125115c13638e3470891f62fbbe02c71bb","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v8.16.0"],"title":"`yarn
kbn reset` will clean data/ as well to avoid stale
state","number":188298,"url":"https://github.com/elastic/kibana/pull/188298","mergeCommit":{"message":"`yarn
kbn reset` will clean data/ as well to avoid stale state (elastic#188298)\n\n##
Summary\r\nIn some cases, the `data/` folder sticking around is causing
developers'\r\nenvironments to be corrupted. None of the current
reset/clean methods\r\nclean that folder. This PR adds this small
adjustment.\r\n\r\nCloses:
https://github.com/elastic/kibana/issues/187914","sha":"f1fa22125115c13638e3470891f62fbbe02c71bb"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/188298","number":188298,"mergeCommit":{"message":"`yarn
kbn reset` will clean data/ as well to avoid stale state (elastic#188298)\n\n##
Summary\r\nIn some cases, the `data/` folder sticking around is causing
developers'\r\nenvironments to be corrupted. None of the current
reset/clean methods\r\nclean that folder. This PR adds this small
adjustment.\r\n\r\nCloses:
https://github.com/elastic/kibana/issues/187914","sha":"f1fa22125115c13638e3470891f62fbbe02c71bb"}}]}]
BACKPORT-->

Co-authored-by: Alex Szabo <[email protected]>
  • Loading branch information
kibanamachine and delanni authored Jul 15, 2024
1 parent ec48c9e commit 4689d70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kbn_pm/src/commands/reset_command.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const command = {
await cleanPaths(log, [
Path.resolve(REPO_ROOT, 'node_modules'),
Path.resolve(REPO_ROOT, 'x-pack/node_modules'),
Path.resolve(REPO_ROOT, 'data'),
...readCleanPatterns(REPO_ROOT),
...(await findPluginCleanPaths(log)),
]);
Expand Down

0 comments on commit 4689d70

Please sign in to comment.