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

Fix update rulesets - WINDUP-701 #643

Closed

Conversation

OndraZizka
Copy link
Contributor

I refactored the whole code and made the tests to work, and now I am going to check how it works practically.

The command will be removed. Instead it will be --updateRulesets, handled either in Bootstrap or as an ConfigurationOption and a rule, if that works.

I had to add this to the windup-ui-tests POM to prevent CNFEx,
but it's wrong since threre already is this one with forge-addon, only as provided which is then not picked up in tests (despite @AddonDependency(name = "org.jboss.forge.addon:maven") .)

    <!-- Trying to prevent windup-ui-tests throwing CNFEx with class from org.jboss.forge.addon:maven -->
    <dependency>
        <groupId>org.jboss.forge.addon</groupId>
        <artifactId>maven</artifactId>
        <version>2.16.2.Final</version>
        <scope>test</scope>
    </dependency>

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-core-PR-dependents-check/331/
Test PASSed.

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-pr-builder/960/

Failed Tests: 1

org.jboss.windup.ui:windup-ui-tests: 1


Test FAILed.

@OndraZizka OndraZizka force-pushed the fixUpdateRulesets-WINDUP-701 branch from 549b344 to 5566774 Compare July 27, 2015 14:41
@OndraZizka
Copy link
Contributor Author

Currently I am hitting
java.lang.NoClassDefFoundError: org/jboss/forge/addon/maven/resources/MavenModelResource
And I don't know how to make that class available.

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-core-PR-dependents-check/334/
Test PASSed.

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-pr-builder/963/

Failed Tests: 1

org.jboss.windup.ui:windup-ui-tests: 1


Test FAILed.

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-core-PR-dependents-check/337/
Test PASSed.

@OndraZizka OndraZizka force-pushed the fixUpdateRulesets-WINDUP-701 branch from 1a89b1c to fffaabd Compare July 28, 2015 02:44
@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-pr-builder/967/
Test PASSed.

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-core-PR-dependents-check/338/
Test PASSed.

@OndraZizka OndraZizka force-pushed the fixUpdateRulesets-WINDUP-701 branch from 2b5c916 to 8596fd2 Compare July 29, 2015 06:26

FileUtils.deleteDirectory(addonsDir.toFile());
FileUtils.deleteDirectory(libDir.toFile());
FileUtils.deleteDirectory(binDir.toFile());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these line will not work for Windows because Windows will not let you remove files that are in use or am I wrong?

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-core-PR-dependents-check/340/

Failed Tests: 1

org.jboss.windup.rules:windup-rulesets: 1


Test FAILed.

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-core-PR-dependents-check/341/

Failed Tests: 1

org.jboss.windup.rules:windup-rulesets: 1


Test FAILed.

@OndraZizka
Copy link
Contributor Author

Locally the tests all pass.

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-core-PR-dependents-check/343/

Failed Tests: 1

org.jboss.windup.rules:windup-rulesets: 1


Test FAILed.

@OndraZizka
Copy link
Contributor Author

The tests pass locally.

@jsight
Copy link
Member

jsight commented Jul 29, 2015

retest

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-core-PR-dependents-check/344/

Failed Tests: 1

org.jboss.windup.rules:windup-rulesets: 1


Test FAILed.

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-pr-builder/973/
Test PASSed.

@OndraZizka OndraZizka force-pushed the fixUpdateRulesets-WINDUP-701 branch from 3c26abf to ca77162 Compare July 30, 2015 11:14
@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-pr-builder/974/
Test PASSed.

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-core-PR-dependents-check/345/
Test PASSed.

@OndraZizka OndraZizka force-pushed the fixUpdateRulesets-WINDUP-701 branch from 81114f6 to 87b2006 Compare July 30, 2015 13:46
WINDUP-705 Fix automatic distribution updating - partial (shares some code with 701)
@OndraZizka OndraZizka force-pushed the fixUpdateRulesets-WINDUP-701 branch from 87b2006 to a7ce016 Compare July 30, 2015 15:15
@OndraZizka
Copy link
Contributor Author

Squashed

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-pr-builder/975/
Test PASSed.

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-core-PR-dependents-check/346/

Failed Tests: 1

org.jboss.windup.rules:windup-rulesets: 1


Test FAILed.

@@ -258,31 +257,32 @@ else if ("--generateCompletionData".equals(arg))
furnaceService.getFurnace().addRepository(AddonRepositoryMode.MUTABLE, new File(getUserWindupDir(), "addons"));
}

if (command == null && updateRulesets && onlyRulesetsUpdateRequested(arguments))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if --updateRulesets is specified in addition to windup execution/analysis information? It currently looks like it will skip the ruleset update silently. That doesn't seem right.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like we probably need to be able to do both comments (e.g. allow multiple commands to be executed based on CLI values supplied.)

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-pr-builder/976/
Test PASSed.

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-core-PR-dependents-check/347/
Test PASSed.

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-pr-builder/977/
Test PASSed.

@windupgithubbot1
Copy link

Refer to this link for build results (access rights to CI server needed):
http://10.3.8.5//job/windup-core-PR-dependents-check/348/
Test PASSed.

@OndraZizka
Copy link
Contributor Author

Maybe I could move the RulesetsUpdater and DistributionUpdater to the same addon. And maybe join them to one class.

@lincolnthree
Copy link
Contributor

Closed in favor of PR that includes this commit.

PhilipCattanach pushed a commit to PhilipCattanach/windup that referenced this pull request Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants