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

Extend channels versions operation to identify active and inactive channels #648

Open
spyrkob opened this issue May 1, 2024 · 2 comments
Labels
enhancement Enhancement of existing feature ready Issue can be worked on

Comments

@spyrkob
Copy link
Collaborator

spyrkob commented May 1, 2024

Overview:

Currently channels versions operation returns a list of channels that were used in the latest update of the server. The information is based entirely on the manifest's name field.

To provide more informations, we should check if the artifact versions declared in the manifest were used to provision the server.

The outcome of the modified command would look like following:

Installed server components:
 * wildfly                           org.wildfly.channels:wildfly                                          32.0.0.Final                        ACTIVE (PARTIAL)
 * one-offs                       org.wildflychannels.oneoff:customer-zero                 1.0.0                                    ACTIVE (FULL)

active(partial) - some of the installed artifacts are from this channel
active(full) - all the artifacts provided by this channel are installed in versions defined by this channel
inactive - none of the artifact versions from this channel are used by the installation
unknown - unable to figure out the artifacts in manifest (open manifest, no-cache+offline)

Implementation notes

Cached manifests together with manifest_versions record can be used to check what artifacts channels provide. Generated manifest.yaml provides information for what artifacts were used.

Compare artifacts installed currently (.installation/manifest.yaml) with artifacts defined by each subscribed channel manifest. The subscribed channel manifests can be found in the cache.

The operation should provide an option to run in offline mode or with offline repositories.

Nice-to-have

Extend the operation to provide information about which streams from a partial channel are overwritten by which channel. i.e. if one-off channel overwrites undertow-core, the base wildfly channel should report it.

@spyrkob spyrkob added enhancement Enhancement of existing feature ready Issue can be worked on labels May 1, 2024
spyrkob added a commit to spyrkob/prospero that referenced this issue May 1, 2024
@spyrkob
Copy link
Collaborator Author

spyrkob commented May 1, 2024

@parsharma
Copy link
Contributor

@spyrkob are you working on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing feature ready Issue can be worked on
Projects
None yet
Development

No branches or pull requests

2 participants