Skip to content

[Issue] RPM native install test fails: amdrocm-core-sdk package not found #5077

@chiranjeevipattigidi

Description

@chiranjeevipattigidi

Description:

The native Linux RPM install test fails (repo setup and install) because the script attempts to install RPM packages that do not exist in the repo.

Context:

  • Platform: Linux
  • Workflow: Multi-Arch CI ASAN

Logs:

Error Snippet:

[PASS] Repository metadata refreshed

================================================================================
INSTALLING RPM PACKAGES FROM REPOSITORY
================================================================================

Packages to install (in order): ['amdrocm', 'amdrocm-core-sdk']
[INFO] Using zypper for SLES package installation

Running: zypper --non-interactive --no-gpg-checks install -y amdrocm amdrocm-core-sdk
================================================================================
Installation progress (streaming output):

Refreshing service 'container-suseconnect-zypp'.
Retrieving repository 'SLE_BCI' metadata [...
Looking for gpg keys in repository SLE_BCI.
  gpgkey=file:/usr/lib/rpm/gnupg/keys/gpg-pubkey-3fa1d6ce-67c856ee.asc
...done]
Building repository 'SLE_BCI' cache [....done]
Loading repository data...
Reading installed packages...
'amdrocm' not found in package names. Trying capabilities.
No provider of 'amdrocm' found.
'amdrocm-core-sdk' not found in package names. Trying capabilities.
No provider of 'amdrocm-core-sdk' found.

================================================================================
[FAIL] Failed to install RPM packages (exit code: 104)

[FAIL] Step 1 (repo setup and install) failed.
FAILED

=================================== FAILURES ===================================
______________________ test_native_linux_package_install _______________________

    def test_native_linux_package_install() -> None:
        """Pytest entry: same run as CLI, driven by env vars in CI."""
        import pytest
    
        argv = _argv_from_ci_env()
        if argv is None:
            if os.environ.get("GITHUB_ACTIONS") == "true":
                pytest.fail(
                    "Missing required environment variables for native install test "
                    "(expected OS_PROFILE, REPO_URL, GFX_ARCH, RELEASE_TYPE, INSTALL_PREFIX; "
                    "or for simulate: PACKAGES_DIR)."
                )
            pytest.skip(
                "Set workflow env vars (OS_PROFILE, REPO_URL, GFX_ARCH, RELEASE_TYPE, INSTALL_PREFIX)."
            )
    
        args = parse_cli_arguments(argv, raise_instead_of_exit=True)
        rc = run_tests(args)
>       assert rc == 0, f"run_tests exited with code {rc}"
E       AssertionError: run_tests exited with code 1
E       assert 1 == 0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions