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

Add sort-key during install based on the entry name #609

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

Itxaka
Copy link
Member

@Itxaka Itxaka commented Nov 27, 2024

@Itxaka Itxaka requested a review from a team November 27, 2024 11:01
@Itxaka Itxaka force-pushed the add_sort_key_on_install branch from 79fcdf6 to 9f62e90 Compare November 27, 2024 11:02
pkg/uki/common.go Fixed Show fixed Hide fixed
Signed-off-by: Itxaka <[email protected]>
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

Attention: Patch coverage is 0% with 48 lines in your changes missing coverage. Please review.

Project coverage is 48.09%. Comparing base (7be897c) to head (a539a48).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/uki/common.go 0.00% 36 Missing ⚠️
pkg/uki/install.go 0.00% 4 Missing ⚠️
pkg/uki/reset.go 0.00% 4 Missing ⚠️
pkg/uki/upgrade.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #609      +/-   ##
==========================================
- Coverage   48.47%   48.09%   -0.38%     
==========================================
  Files          48       48              
  Lines        6100     6148      +48     
==========================================
  Hits         2957     2957              
- Misses       2862     2910      +48     
  Partials      281      281              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

var sortKey string
// If we have 2 different files that start with active, like with the extra-cmdline, how do we set this?
// Ideally if they both have the same sort key, they will be sorted by name so the single one will be first
// and the extra-cmdline will be second. This is the best we can do currently without making this a mess
Copy link
Contributor

Choose a reason for hiding this comment

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

If the extra was meant to be the "default", it would not be set as extra cmdline. I think extra cmdlines were always meant to be alternative boot entries, not part of the "active", "passive", "recovery" dance.

Copy link
Contributor

Choose a reason for hiding this comment

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

Having said that, if "active" fails to boot, I don't think we would want to try "active_myops" next, would we? The next thing we would want to try would be "passive". Unless I'm missing some user flow.

Copy link
Member Author

Choose a reason for hiding this comment

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

Im not sure, maybe active and active_debug should be tried one after the other?

Thats why this has a big explanation, I guess we can add this then move into a more detailed thing or explain it better?

In any case, this is just the first implementation, usually this would not matter much (the order) as we select explicit entries, so this will come later down the line when people start implementing assessment and such?

@Itxaka Itxaka requested a review from jimmykarily November 27, 2024 13:18
@Itxaka Itxaka enabled auto-merge (squash) November 27, 2024 14:17
@Itxaka Itxaka merged commit 07480ab into main Nov 27, 2024
14 checks passed
@Itxaka Itxaka deleted the add_sort_key_on_install branch November 27, 2024 14:18
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.

feat: implement sort-key in UKI confs
2 participants