Skip to content

Remove redundant install_* methods#4792

Open
AthreyVinay wants to merge 2 commits intomainfrom
avinay-simplify-install-methods
Open

Remove redundant install_* methods#4792
AthreyVinay wants to merge 2 commits intomainfrom
avinay-simplify-install-methods

Conversation

@AthreyVinay
Copy link
Copy Markdown
Member

originated from a comment here: #4605 (comment). Good to align before artifacts call various install methods.

also, a slight functional change in RpmOstree.sort_packages() which now batches the presence check.

@AthreyVinay AthreyVinay added step | prepare Stuff related to the prepare step ci | full test Pull request is ready for the full test execution code | cleanup labels Apr 8, 2026
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 consolidates package installation methods into a single 'install' call, removes redundant container rebuilds in the 'bootc' manager, and optimizes 'rpm-ostree' presence checks. Feedback requires passing 'options' to 'super().install()' in 'rpm-ostree' to ensure settings are respected and including the installable name in 'apk' error messages for better clarity.

Comment thread tmt/package_managers/rpm_ostree.py Outdated
Comment thread tmt/package_managers/apk.py
Copy link
Copy Markdown
Member

@LecrisUT LecrisUT left a comment

Choose a reason for hiding this comment

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

Sure, why not.

@AthreyVinay AthreyVinay force-pushed the avinay-simplify-install-methods branch from 7adab73 to 0f5df8c Compare April 14, 2026 21:05
@github-project-automation github-project-automation Bot moved this to backlog in planning Apr 15, 2026
@AthreyVinay AthreyVinay moved this from backlog to review in planning Apr 24, 2026
@AthreyVinay AthreyVinay force-pushed the avinay-simplify-install-methods branch from 0f5df8c to 4812107 Compare April 24, 2026 12:38

if missing_installables:
self.engine.install(*missing_installables, options=options)
return self.build_container() or CommandOutput(stdout=None, stderr=None)
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.

self.build_container() call being dropped is unexpected, what is the reason for it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Reason (if I remember...): PrepareInstall called install_from_repository() and install_from_url(), which didn't call build_container(). The build happened through finalize_installation() at the end. Are you hinting at other callers?

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

Labels

ci | full test Pull request is ready for the full test execution code | cleanup step | prepare Stuff related to the prepare step

Projects

Status: review

Development

Successfully merging this pull request may close these issues.

3 participants