Skip to content

Fix and normalize package path in package_installer validation#4304

Merged
LiliDeng merged 1 commit intomainfrom
andrewchiang/fix-package-installer-validate
Feb 27, 2026
Merged

Fix and normalize package path in package_installer validation#4304
LiliDeng merged 1 commit intomainfrom
andrewchiang/fix-package-installer-validate

Conversation

@andrew344c
Copy link
Collaborator

Problem

When running LISA with a runbook that uses rpm_package_installer, LISA would fail during the deployment transformer stage (before the test cases even start running) with errors such as:

FAILED deployment failed. AssertionError: Provided file kernel_source\foo.rpm is not an rpm

Root Cause

LISA regression introduced by commit d5f981c.
Before this commit PackageInstaller had no _initialize() overwrite; this commit introduced it.
PackageInstaller started validating RPMs in _initialize() by calling _validate(), which makes a call self._validate_package(str(directory / file)). On Windows-hosted LISA: str(directory / file) can produce paths like "kernel_source\foo.rpm". Validation then runs rpm -qp on the Linux target and fails with: "Provided file ... is not an rpm".

This problem wasn't seen before, likely because _validate() wasn't on an (regularly) executed code path.

Fix

Use correct node-normalized path conversion: self._node.get_str_path(directory / file).

@LiliDeng LiliDeng merged commit 0555fdc into main Feb 27, 2026
58 checks passed
@LiliDeng LiliDeng deleted the andrewchiang/fix-package-installer-validate branch February 27, 2026 03:20
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.

2 participants