Skip to content

modules: runtime: Expose AutomatedInstall and InteractiveMode on Runtime UserInterface#6980

Draft
KKoukiou wants to merge 3 commits intorhinstaller:mainfrom
KKoukiou:webui-automated-installations
Draft

modules: runtime: Expose AutomatedInstall and InteractiveMode on Runtime UserInterface#6980
KKoukiou wants to merge 3 commits intorhinstaller:mainfrom
KKoukiou:webui-automated-installations

Conversation

@KKoukiou
Copy link
Copy Markdown
Contributor

No description provided.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the Anaconda installer's runtime environment by exposing critical installation mode flags, AutomatedInstall and InteractiveMode, through a standardized D-Bus Runtime UserInterface. This provides a consistent way for various UI components to query and manage the installation's automation and interactivity status. Additionally, it refines the Web UI's handling of automated installations, explicitly preventing partial automated setups while confirming support for fully automated ones.

Highlights

  • Runtime UserInterface Enhancement: Exposed AutomatedInstall and InteractiveMode properties and their corresponding setter methods on the Runtime UserInterface D-Bus interface, providing a standardized way to query and manage installation modes.
  • Early Initialization: Integrated the setting of these new Runtime UserInterface properties early in the anaconda.py startup process, reflecting the system's current automated and interactive states based on existing flags.
  • Web UI Clarification: Updated the Web UI initialization logic to specifically disallow 'kickstart prompt' (partial automated) installations, while implicitly supporting fully automated installations, removing previous generic FIXME comments.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • anaconda.py
    • Added logic to retrieve the USER_INTERFACE proxy and set its AutomatedInstall and InteractiveMode properties based on existing flags.automatedInstall and anaconda.interactive_mode.
  • pyanaconda/modules/runtime/user_interface/ui.py
    • Initialized _automated_install to False and _interactive_mode to True in the constructor.
    • Implemented automated_install and interactive_mode properties with corresponding set_automated_install and set_interactive_mode methods.
  • pyanaconda/modules/runtime/user_interface/ui_interface.py
    • Added AutomatedInstall and InteractiveMode properties, along with SetAutomatedInstall and SetInteractiveMode methods, to the UIInterface D-Bus definition.
  • pyanaconda/ui/webui/init.py
    • Modified the setup method to raise a NotImplementedError specifically for 'kickstart prompt (partial) installations' when flags.automatedInstall and flags.ksprompt are both true, replacing previous generic FIXME comments.
Activity
  • No human activity recorded for this pull request.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request exposes AutomatedInstall and InteractiveMode flags on the UserInterface DBus service, allowing UIs to be aware of the installation mode. The changes look good, but I have a few suggestions to improve the implementation. My main feedback is regarding the new DBus methods, which should notify clients when the properties change, to allow UIs to react accordingly. I've also suggested a minor code organization improvement in anaconda.py.

Comment on lines +142 to +144
def SetAutomatedInstall(self, value: Bool):
"""Set AutomatedInstall."""
self.implementation.set_automated_install(value)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

This method updates the AutomatedInstall property, but it doesn't notify listening DBus clients about the change. To enable notifications, you should:

  1. In UIModule (ui.py), add a automated_install_changed = Signal() in __init__ and call self.automated_install_changed.emit() in set_automated_install.
  2. In this file, add self.watch_property("AutomatedInstall", self.implementation.automated_install_changed) to connect_signals.

For better API consistency with other settable properties like DisplayMode, consider refactoring this to a property setter (@AutomatedInstall.setter). This would also require decorating it with @emits_properties_changed and updating the call site in anaconda.py to use property assignment (e.g., ui_proxy.AutomatedInstall = ...).

Comment on lines +157 to +159
def SetInteractiveMode(self, value: Bool):
"""Set InteractiveMode."""
self.implementation.set_interactive_mode(value)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

Similar to SetAutomatedInstall, this method updates the InteractiveMode property but doesn't notify DBus clients. To enable notifications, you should:

  1. In UIModule (ui.py), add an interactive_mode_changed = Signal() in __init__ and call self.interactive_mode_changed.emit() in set_interactive_mode.
  2. In this file, add self.watch_property("InteractiveMode", self.implementation.interactive_mode_changed) to connect_signals.

For better API consistency, consider refactoring this to a property setter (@InteractiveMode.setter) and updating its call site.

# Expose to UIs via Runtime UserInterface: AutomatedInstall and
# InteractiveMode (matches anaconda.interactive_mode). Fully automated
# when AutomatedInstall True and InteractiveMode False.
from pyanaconda.modules.common.constants.objects import USER_INTERFACE
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

This local import can be moved to group it with other similar imports for better code organization. Specifically, you can add USER_INTERFACE to the import statement on line 357 (which is outside this diff) and remove this line.

Wait on the installation summary for user confirmation before starting
install when using a kickstart. Expose PauseAtSummary on the Runtime
UserInterface DBus object; GUI hub auto-continue and TUI summary hub
honor the flag. Document the boot option and wire argparse/--help.
Do not allow yet partial KS installations.
@KKoukiou KKoukiou force-pushed the webui-automated-installations branch from f698d49 to 6b8d327 Compare March 23, 2026 09:13
@KKoukiou
Copy link
Copy Markdown
Contributor Author

/kickstart-tests --testtype smoke

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant