Skip to content

Conversation

@TomasHofman
Copy link
Collaborator

This is preparation for the implementation in wildfly-core (JBoss CLI).

Only the last commit is relevant, the other commits are from the as yet unmerged feature PR.

@TomasHofman
Copy link
Collaborator Author

CI jobs are expected to fail.

@pedro-hos
Copy link
Collaborator

@TomasHofman we need to approve this as well?

@TomasHofman TomasHofman force-pushed the update-version-manager-spi branch 2 times, most recently from bebf757 to 622457e Compare December 11, 2025 10:45
@TomasHofman
Copy link
Collaborator Author

TomasHofman commented Dec 11, 2025

@pedro-hos yes please, review this one as well, I was just waiting for merging of Bartek's PR to rebase this one.

@TomasHofman
Copy link
Collaborator Author

@yersan I'm keeping this one as draft until we have wildfly-installation-manager-api release ready, but it's ready for review as well.

@TomasHofman
Copy link
Collaborator Author

CI is going to keep failing because there is dependency on SNAPSHOT version of installation-manager-api.

@TomasHofman
Copy link
Collaborator Author

@yersan actually you don't have to review this one (unless you want to), it's OK if you just review the wildfly-core and installation-manager-api. My mistake... :)

Copy link
Collaborator

@pedro-hos pedro-hos left a comment

Choose a reason for hiding this comment

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

LGTM, only that small change.

}
String newVersion = manifestVersion.getVersion();
String oldVersion = channelVersion.getPhysicalVersion();
if (VersionMatcher.COMPARATOR.compare(newVersion, channelVersion.getPhysicalVersion()) < 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we use the oldVersion instead of the channelVersion.getPhysicalVersion() into this if condition?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will fix, thanks!

@TomasHofman TomasHofman force-pushed the update-version-manager-spi branch from e7d47fd to 9427433 Compare January 28, 2026 14:52
Copy link
Contributor

@yersan yersan left a comment

Choose a reason for hiding this comment

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

While getting familiar with the changes, I've noticed that the help provides unexpected description for the version argument

$ prospero.sh update perform --help                                                                                                                                  
Applies the latest available updates directly on the server instance.

Usage: prospero update perform [--dir=<path>] [OPTION]...
         (to update a server installation)
  or:  prospero update perform --self [--dir=<path>] [OPTION]...
         (to update prospero)

Options:
     ...
      --version=<versions>[,<versions>...]
                             Prints the version of prospero and exits.
     ...

@TomasHofman
Copy link
Collaborator Author

Thanks @yersan !

While possible to fix the wrong version help description, there is indeed the top level command --version parameter for printing the prospero version. I believe functionally it's not an issue, but I feel like it would be better to have distinct parameter names for these two functionalities.

I would rename --version to --manifest-versions. The parameter name would then be the same in Prospero and JBoss CLI. Do see any problem with that? Does --manifest-versions not seem confusing?

@yersan
Copy link
Contributor

yersan commented Jan 29, 2026

--manifest-versions sounds fine to me, indeed that was the name used for the installer command.

Example:

$ ./prospero.sh history
[e7fd6d5b] 2026-01-29T14:37:45Z - update
  * channels:wildfly-core:1.2
  * org.wildfly.channels:wildfly-ee:39.0.0.Final (WildFly EE 39.0.0.Final)
  * org.wildfly.prospero:prospero-wildfly-galleon-pack:1.4.0.Beta3-SNAPSHOT
[90097877] 2026-01-28T16:10:04Z - install
  * channels:wildfly-core:1.1
  * org.wildfly.channels:wildfly-ee:39.0.0.Final (WildFly EE 39.0.0.Final)
  * org.wildfly.prospero:prospero-wildfly-galleon-pack:1.4.0.Beta3-SNAPSHOT
@TomasHofman
Copy link
Collaborator Author

BTW I added the renaming commit, plus some improvement of history command output

@yersan
Copy link
Contributor

yersan commented Jan 29, 2026

If it is not yet, wildFly proposal should be updated accordingly

} else {
final String versions = manifestVersions.stream().map(Version::getDisplayVersion).collect(Collectors.joining("+"));
msg = "[" + versions + "]";
return String.format("[%s] %s - %s", hash, timestamp.toString(), type.toString().toLowerCase(Locale.ROOT));
Copy link
Contributor

Choose a reason for hiding this comment

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

This change left an unused import

import java.util.stream.Collectors;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants