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

Bootloader force user input #1840

Merged
merged 5 commits into from
Dec 20, 2024
Merged

Bootloader force user input #1840

merged 5 commits into from
Dec 20, 2024

Conversation

jreidinger
Copy link
Contributor

@jreidinger jreidinger commented Dec 16, 2024

Problem

In order to support the QA use-case, we need to make it possible to configure the boot loader to stop at the menu without a timeout.

trello: https://trello.com/c/dKYmc0K7/4018-5-agama-ped-10810-new-section-to-configure-bootloader
jira:

Solution

Add to profile section Bootloader with key stopOnBootMenu and boolean value. This allows QA to use jq -n ".bootloader.stopOnBootMenu = true" | agama config load after selecting product and before start of installation to force stop without any timeout.

Testing

  • Added a new unit test
  • Tested manually

@coveralls
Copy link

coveralls commented Dec 16, 2024

Pull Request Test Coverage Report for Build 12431357610

Details

  • 9 of 59 (15.25%) changed or added relevant lines in 9 files are covered.
  • 36 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.1%) to 70.907%

Changes Missing Coverage Covered Lines Changed/Added Lines %
rust/agama-server/src/web.rs 0 1 0.0%
service/lib/agama/dbus/storage/manager.rb 8 9 88.89%
rust/agama-lib/src/store.rs 0 4 0.0%
rust/agama-lib/src/bootloader/http_client.rs 0 5 0.0%
rust/agama-server/src/web/docs/bootloader.rs 0 6 0.0%
rust/agama-lib/src/bootloader/store.rs 0 8 0.0%
rust/agama-lib/src/bootloader/client.rs 0 12 0.0%
rust/agama-server/src/bootloader/web.rs 0 13 0.0%
Files with Coverage Reduction New Missed Lines %
service/lib/agama/storage/manager.rb 4 97.1%
service/lib/agama/dbus/storage/manager.rb 32 78.33%
Totals Coverage Status
Change from base Build 12416892456: -0.1%
Covered Lines: 17056
Relevant Lines: 24054

💛 - Coveralls

Copy link
Contributor

@imobachgs imobachgs left a comment

Choose a reason for hiding this comment

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

The overall approach looks good. Thanks!

rust/agama-lib/src/bootloader/client/bootloader.rs Outdated Show resolved Hide resolved
rust/agama-lib/src/bootloader/model/bootloader.rs Outdated Show resolved Hide resolved
rust/agama-lib/src/bootloader/model/bootloader.rs Outdated Show resolved Hide resolved
service/test/agama/storage/bootloader_test.rb Outdated Show resolved Hide resolved
@jreidinger jreidinger force-pushed the bootloader_force_user_input branch 2 times, most recently from 9a8d488 to 5492568 Compare December 19, 2024 18:13
@jreidinger jreidinger marked this pull request as ready for review December 19, 2024 18:15
Copy link
Contributor

@imobachgs imobachgs left a comment

Choose a reason for hiding this comment

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

It looks good. Thanks a lot for helping to unblock QA 🥳

//! Implements support for handling the storage settings

pub mod client;
// pub mod http_client;
Copy link
Contributor

Choose a reason for hiding this comment

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

leftover?

@jreidinger jreidinger merged commit 1cca04c into master Dec 20, 2024
8 checks passed
@jreidinger jreidinger deleted the bootloader_force_user_input branch December 20, 2024 12:41
dgdavid added a commit that referenced this pull request Dec 23, 2024
## Problem

There is collision between
#1848 and
#1840 where bootloader adds
another interface with Get/SetConfig on Storage service. This result
that generic access no longer works and needs access via specific
interface.

reported on slack
https://suse.slack.com/archives/C02TLF25571/p1734924853266999

## Solution

Change code to avoid ambitious code.


## Testing

- *Tested manually*
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