#1695: Clone settings to temporary directory, analyse, and then move - #2335
Draft
laim2003 wants to merge 49 commits into
Draft
#1695: Clone settings to temporary directory, analyse, and then move#2335laim2003 wants to merge 49 commits into
laim2003 wants to merge 49 commits into
Conversation
Signed-off-by: laim2003 <luk.faber@gmx.de>
Signed-off-by: laim2003 <luk.faber@gmx.de>
…itory. Signed-off-by: laim2003 <luk.faber@gmx.de>
…ir, verifies its health and then moves it to the IDE_HOME Signed-off-by: laim2003 <luk.faber@gmx.de>
Signed-off-by: laim2003 <luk.faber@gmx.de>
Signed-off-by: laim2003 <luk.faber@gmx.de>
Signed-off-by: laim2003 <luk.faber@gmx.de>
Signed-off-by: laim2003 <luk.faber@gmx.de>
Signed-off-by: laim2003 <luk.faber@gmx.de>
Signed-off-by: laim2003 <luk.faber@gmx.de>
…mpdir-verification' into feature/devonfw#1695-settings-tempdir-verification
7 tasks
Signed-off-by: laim2003 <luk.faber@gmx.de>
Signed-off-by: laim2003 <luk.faber@gmx.de>
Signed-off-by: laim2003 <luk.faber@gmx.de>
Signed-off-by: laim2003 <luk.faber@gmx.de>
…mpdir-verification' into feature/devonfw#1695-settings-tempdir-verification
Collaborator
Coverage Report for CI Build 32955274423Coverage decreased (-0.08%) to 73.548%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions22 previously-covered lines in 4 files lost coverage.
Coverage Stats💛 - Coveralls |
laim2003
marked this pull request as ready for review
August 17, 2026 13:15
…ss, added recursivity check to RepositoryUtil Signed-off-by: laim2003 <luk.faber@gmx.de>
Signed-off-by: laim2003 <luk.faber@gmx.de>
laim2003
marked this pull request as draft
August 26, 2026 16:00
… after the health checks succeeded.
…nto verify & apply steps
… URL as a mock URL (for testing new workflow)
Contributor
Author
|
@hohwille there is still some cleanup necessary, i did a bit of refactoring... |
…xists yet; update workflow WIP
Contributor
Author
|
Cases that have been explicitly tested:
Update:
|
… (--force-pull). - SettingsUpdater now correctly saves the commit Id after cloning/pulling. - Improved repositoryType with helper method
… for the case of `ide update` - Changed error strategy in AbstractUpdateCommandlet to use CliException for non-fatal cases instead of step.error() with return -
…mpdir-verification' into feature/devonfw#1695-settings-tempdir-verification
…Mode() - Fixed "Update settings" step not failing if "Apply update" step fails - RepositoryUtil now also checks for the presence of a .git folder - Fixed some altered log messages in UpdateCommandletTest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes #1695
Implemented changes:
ide create projectname <<git-url>>is pulled to a temporary directory. There, we check whether the repository is a valid settings or code-settings repository and if the check succeeds, we move it to the final location depending on the repo type (and symlink in case of acode-settingsrepo).--codeflag ofide createas we now automatically detect the type of the repository.Testing instructions
Please add conscise, understandable instructions on how a reviewer can test/verify the functionality of your contribution here:
Create commandlet
ide createusing the configurable running executions in intellij, so you dont accidentally test the create commandlet from the latest release, but the state from this PR. For the parameters: Pick a random project name. For thegit-urlparameter see below:IDE_HOME/workspaces/main/[repository name, in our case "code-settings-repo"]/settingsUpdate commandlet
In order to test the update commandlet, you need to create your own settings repository.
ide createcommandlet (again with the IntelliJ run configuration) and as thegit-urluse your newly created settings repo. It should succeed normally.NODE_VERSION=v18*tov23*, and commit the changes.ide eclipse.ide update(again, using the run configuration in intellij), it should succeed.ide updateagain. It should detect the empty folder and prompt you to input a new Git Url. You can use the same URL you used before. This step should also succeed.Checklist for this PR
Make sure everything is checked before merging this PR. For further info please also see
our DoD.
mvn clean testlocally all tests pass and build is successful#«issue-id»: «brief summary»(e.g.#921: fixed setup.batand notfeature/921 fixed setup.bat). If no issue ID exists, title only.In Progressand assigned to you or there is no issue (might happen for very small PRs)with
internalpom.xmlfiles or otherwise if runtime dependencies changed, you have updated our LICENSE.asciidoc