Skip to content

Conversation

@abhijat
Copy link
Contributor

@abhijat abhijat commented Nov 25, 2025

To fix failing installer tests in CI, the arm debian package is downloaded, this was earlier missing.

Also ARM rpm is not generated for fedora, so this test is skipped on ARM.

fixes #6109

The rpm is only built for this one architecture.

Signed-off-by: Abhijat Malviya <[email protected]>
@abhijat abhijat marked this pull request as ready for review November 25, 2025 03:05
@abhijat abhijat requested a review from vyavdoshenko November 25, 2025 03:06
Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 2 suggestions posted.

Comment augment review to trigger a new review at any time.

assert result.exit_code == 0, f"command {cmd} failed with result {result}"


@pytest.mark.skipif(platform.processor() != "x86_64", reason="rpm is only built for x86_64")
Copy link

Choose a reason for hiding this comment

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

platform.processor() can return an empty string on some Linux environments, which could cause this test to be skipped even on x86_64; platform.machine() tends to be more reliable for architecture checks.

🤖 Was this useful? React with 👍 or 👎

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Consider this

@pytest.mark.skipif(
    platform.architecture()[0] != "64bit",
    reason="test requires 64-bit platform"
)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

    platform.architecture()[0] != "64bit",

Because this analyzes the output of the file command, it will also return true on 64 bit ARM which we have to skip, eg from an arm machine

# uname -a
Linux ... aarch64 aarch64 aarch64 GNU/Linux
>>> platform.architecture()
('64bit', 'ELF')

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did not apply the bot's suggestion because machine() can also return empty string on some environments, it doesn't appear to be any better than processor() which we already use in some other places in code.

for package in packages:
if package.kind == AssetKind.DEB and deb_done:
# Download the latest arm and amd64 package for .deb format
if package.kind == AssetKind.DEB and deb_done == 2:
Copy link

Choose a reason for hiding this comment

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

This logic assumes exactly two DEB architectures and relies on asset ordering; it may download two of the same arch across releases and miss the other. Tracking unique architectures downloaded would ensure one per arch regardless of order (also applies to the increment below).

🤖 Was this useful? React with 👍 or 👎

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a valid suggestion but kind of overkill as we have a specific schema and order for packages on the release page. It might be something to apply in a follow up PR

Copy link
Collaborator

Choose a reason for hiding this comment

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

no need

@abhijat abhijat merged commit f2ad638 into main Nov 25, 2025
10 checks passed
@abhijat abhijat deleted the abhijat/fix/dl-arm-package branch November 25, 2025 07:39
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.

test_install_package_fedora and test_install_package_ubuntu fail in CI

4 participants