Skip to content

fix(libvirt): give cloud-hypervisor source build a dedicated timeout - #4590

Merged
vyadavmsft merged 1 commit into
mainfrom
users/vyadav/ch-source-build-timeout
Jul 13, 2026
Merged

fix(libvirt): give cloud-hypervisor source build a dedicated timeout#4590
vyadavmsft merged 1 commit into
mainfrom
users/vyadav/ch-source-build-timeout

Conversation

@vyadavmsft

Copy link
Copy Markdown
Collaborator

CloudHypervisorSourceInstaller ran cargo build --release with LISA's default 600-second command timeout. A cold, from-scratch release build compiles vendored native crates -- openssl-src (which builds OpenSSL from C source), zstd-sys and libssh2-sys -- that can exceed 600s on a slow bare-metal agent or a cold cache.

Observed in job the build was killed at 600.223s while only 140/243 crates in, raising "AssertionError: Failed to build cloud-hypervisor" and failing the job before any test ran.

Add CLOUD_HYPERVISOR_BUILD_TIMEOUT_SECONDS = 1800 (mirroring RUSTUP_INSTALL_TIMEOUT_SECONDS) and pass it to the build execute so a legitimately-long build is not killed prematurely.

Description

Related Issue

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation update

Checklist

  • Description is filled in above
  • No credentials, secrets, or internal details are included
  • Peer review requested (if not, add required peer reviewers after raising PR)
  • Tests executed and results posted below

Test Validation

Key Test Cases:

Impacted LISA Features:

Tested Azure Marketplace Images:

Test Results

Image VM Size Result
PASSED / FAILED / SKIPPED

CloudHypervisorSourceInstaller ran `cargo build --release` with LISA's default
600-second command timeout. A cold, from-scratch release build compiles vendored
native crates -- openssl-src (which builds OpenSSL from C source), zstd-sys and
libssh2-sys -- that can exceed 600s on a slow bare-metal agent or a cold cache.

Observed in build 20260708.1 (BareMetal L1VH Test), job "GUEST Stress TESTS -
Shard 2": the build was killed at 600.223s while only 140/243 crates in, raising
"AssertionError: Failed to build cloud-hypervisor" and failing the job before any
test ran.

Add CLOUD_HYPERVISOR_BUILD_TIMEOUT_SECONDS = 1800 (mirroring
RUSTUP_INSTALL_TIMEOUT_SECONDS) and pass it to the build execute so a
legitimately-long build is not killed prematurely.
Copilot AI review requested due to automatic review settings July 9, 2026 19:02
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

🤖 AI Test Selection

No test cases were selected for this PR.

Copilot AI left a comment

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.

Pull request overview

This PR reduces CI flakiness in the libvirt SUT orchestrator by preventing cloud-hypervisor source builds from being killed by LISA’s default 600-second command timeout during cold-cache, from-scratch cargo build --release runs.

Changes:

  • Add a dedicated CLOUD_HYPERVISOR_BUILD_TIMEOUT_SECONDS = 1800 constant alongside the existing Rustup timeout constant.
  • Pass the new timeout to the cargo build --release invocation in CloudHypervisorSourceInstaller._build_and_install().

Comment thread lisa/sut_orchestrator/libvirt/transformers.py
@vyadavmsft
vyadavmsft merged commit ce84619 into main Jul 13, 2026
62 checks passed
@vyadavmsft
vyadavmsft deleted the users/vyadav/ch-source-build-timeout branch July 13, 2026 15: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.

4 participants