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

Bundle luet versions in the framework #1748

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

Itxaka
Copy link
Member

@Itxaka Itxaka commented Aug 21, 2023

Use the new luet 0.35 which provides a way of storing the installed artifacts in the system to bundle the versions file with the framework files so we always have a reference for what was installed in the framework and what versions.

Also reworks the CI pipeline for the bump repos to provide a diff of changes to installed packages, not to the full repo unfortunately, as part of the PR creation so its easily visible what changed that directly affects kairos

Also during iso building, extract and upload the versions to the artifacts so its easier to check what packages were installed in a given iso during CI.

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@Itxaka Itxaka requested a review from a team August 21, 2023 11:09
@Itxaka
Copy link
Member Author

Itxaka commented Aug 21, 2023

PR messages looks like:

Bump of Kairos repositories

Warning

There were changes to installed packages

--- build/versions.old.yaml	2023-08-21 13:05:18.190300544 +0200
+++ build/versions.new.yaml	2023-08-21 13:05:18.208300883 +0200
@@ -1,6 +1,6 @@
 - name: grub-config
   category: static
-  version: "0.4"
+  version: "0.5"
 - name: grub2-efi
   category: system
   version: 2.06-150404

Important

Full package list from new repo

- name: grub-config
  category: static
  version: "0.5"
- name: grub2-efi
  category: system
  version: 2.06-150404
- name: immucore
  category: dracut
  version: 0.1.2
- name: immucore
  category: system
  version: 0.1.2
- name: kairos-agent
  category: system
  version: 2.2.7
- name: kcrypt
  category: system
  version: 0.7.0
- name: kcrypt-challenger
  category: system
  version: 0.5.0
- name: network
  category: systemd-default
  version: "1.0"
- name: network-legacy
  category: dracut
  version: "0.9"
- name: suc-upgrade
  category: system
  version: 0.2.1
- name: sysext
  category: dracut
  version: "0.9"
- name: systemd
  category: init-svc
  version: 0.8.0

Use the new luet 0.35 which provides a way of storing the installed
artifacts in the system to bundle the versions file with the framework
files so we always have a reference for what was installed in the
framework and what versions.

Also reworks the CI pipeline for the bump repos to provide a diff of
changes to **installed** packages, not to the full repo unfortunately,
as part of the PR creation so its easily visible what changed that
directly affects kairos

By cleaning at the end of the actual targets we carry the luet database
to the end of the target so we can generate ALL the packages for
whaverer artifact we are building so we dont need to mangle the
different versions.

Either the framework-image or the core/standard base-image will provide
a final /etc/kairos/versions.yaml which provider all the artifacts
installed by luet

Signed-off-by: Itxaka <itxaka@kairos.io>
@Itxaka Itxaka requested review from jimmykarily and a team August 21, 2023 13:21
Copy link
Member

@mauromorales mauromorales left a comment

Choose a reason for hiding this comment

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

fancy!

@Itxaka Itxaka merged commit 281e961 into kairos-io:master Aug 21, 2023
21 checks passed
@Itxaka Itxaka deleted the versions_luet_packages branch August 21, 2023 14:44
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.

None yet

3 participants