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

Store the ClearLinux distribution and version used for Mix #30

Closed
mdhorn opened this issue Nov 22, 2017 · 3 comments
Closed

Store the ClearLinux distribution and version used for Mix #30

mdhorn opened this issue Nov 22, 2017 · 3 comments

Comments

@mdhorn
Copy link
Contributor

mdhorn commented Nov 22, 2017

Have Mixer save the upstream URL and version used when generating the new Mix.

This information is both useful historical information about the Mix as well as needed by any automation used to generate new mixes.

The primary use would be to identify the upstream's original Swupd Format when generating a new Mix. The Format of the upstream, and how many times it has bumped, are needed in order to generate the necessary mixes for upgrading the downstream client of the Mix.

Assuming a new Mix stream is created based on the Public ClearLinux distribution plus some additional bundles (i.e. for a production product), the following steps would be required.

A new production Mix, version 10 Format 1, is made based on the ClearLinux 18030 which is Format 19 . When the next Mix is needed, the public ClearLinux is now at version 19110 which is Format 21; the Upstream Format has bumped 2 times.

One suggested solution is saving the URL used for the Upstream and the version into files in the Mix when it is created.
mdhorn@d102d77

With that information, the Format of the Upstream can be found:
https://download.clearlinux.org/update/18030/format = 19
Next, the latest release of Format 19 can be determined:
https://download.clearlinux.org/update/version/format19/latest = 18500

So the first new Mix (20; still at Mix Format 1) will need to be based on Upstream's 18500.
The next Mix (30; Mix Format 2) would need to be based on the First release of Format 20:
https://download.clearlinux.org/update/version/format20/first = 18510
And then another Mix (40; Mix Format 2) based on the Last release of Format 20:
https://download.clearlinux.org/update/version/format20/latest = 18930
Next Mix (50; Mix Format 3) based on the First release of Format 21:
https://download.clearlinux.org/update/version/format21/first = 18940

Finally, we can make our last Mix (60; Mix Format 3) based on the choose 19110.

The summary would be:

Upstream Version Upstream Format Mix Version Mix Format
18030 19 10 1
18500 19 20 1
18510 20 30 2
18930 20 40 2
18940 21 50 3
19110 21 60 3

Without having the URL and version the previous Mix was created from, the upgrade path could not be created.

The reason to have the Upstream URL as well as the version is that a Mix could be based on another Mix, not just the public ClearLinux release.

@cmarcelo
Copy link
Contributor

Have #31 fixed this issue?

@cmarcelo
Copy link
Contributor

@mdhorn has #31 fixed this issue?

@mdhorn
Copy link
Contributor Author

mdhorn commented Dec 22, 2017

Yes, fixed by PR #31

@mdhorn mdhorn closed this as completed Dec 22, 2017
mbelluzzo pushed a commit to clearlinux/clr-distro-factory that referenced this issue Feb 14, 2019
Format bump will results in two (or more) mixing generated.

See clearlinux/mixer-tools#30

Signed-off-by: Mark Horn <mark.d.horn@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants