Skip to content
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

yarn kbn reset will clean data/ as well to avoid stale state #188298

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

delanni
Copy link
Contributor

@delanni delanni commented Jul 15, 2024

Summary

In some cases, the data/ folder sticking around is causing developers' environments to be corrupted. None of the current reset/clean methods clean that folder. This PR adds this small adjustment.

Closes: #187914

@delanni delanni added Team:Operations Team label for Operations Team release_note:skip Skip the PR/issue when compiling release notes backport:all-open Backport to all branches that could still receive a release labels Jul 15, 2024
@delanni delanni requested a review from a team as a code owner July 15, 2024 10:47
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

@delanni delanni merged commit f1fa221 into elastic:main Jul 15, 2024
27 of 29 checks passed
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 15, 2024
…ic#188298)

## Summary
In some cases, the `data/` folder sticking around is causing developers'
environments to be corrupted. None of the current reset/clean methods
clean that folder. This PR adds this small adjustment.

Closes: elastic#187914
(cherry picked from commit f1fa221)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
7.17 Backport failed because of merge conflicts

You might need to backport the following PRs to 7.17:
- [Infra] Limit the number of metrics accepted by Snapshot API (#188181)
8.15

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 188298

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jul 15, 2024
…tale state (#188298) (#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 (#188298)](#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 (#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 (#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 (#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]>
@mistic
Copy link
Member

mistic commented Jul 17, 2024

@delanni just a note that in order to backport this into 7.17 we will have to change it here https://github.com/elastic/kibana/blob/7.17/packages/kbn-pm/src/commands/reset.ts

@delanni
Copy link
Contributor Author

delanni commented Jul 18, 2024

@mistic - #188626 it's here

delanni added a commit that referenced this pull request Jul 19, 2024
## Summary
Manual backport of #188298

Also deletes the data folder when `yarn kbn reset` is ran.
adelisle pushed a commit to Makila-AI/kibana that referenced this pull request Aug 5, 2024
## Summary
Manual backport of elastic#188298

Also deletes the data folder when `yarn kbn reset` is ran.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:all-open Backport to all branches that could still receive a release release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v8.15.0 v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modify the yarn kbn reset script to delete the /data directory
5 participants