Skip to content

Conversation

@frhuelsz
Copy link
Contributor

🔍 Description

Depends on microsoft/storm#13 (and subsequent release)

Adds code to connect to the libvirt console in the background and scan it live to have debug output in an artifact.

@frhuelsz frhuelsz marked this pull request as ready for review December 23, 2025 21:25
@frhuelsz frhuelsz requested a review from a team as a code owner December 23, 2025 21:25
Copilot AI review requested due to automatic review settings December 23, 2025 21:25
@frhuelsz
Copy link
Contributor Author

/AzurePipelines run [GITHUB]-trident-pr-e2e

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

Copilot AI left a comment

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 adds VM serial console monitoring functionality to the storm-e2e testing framework. The implementation connects to the libvirt console in the background during test execution to capture and analyze serial output, providing enhanced debugging capabilities through artifact logging. The changes depend on the Storm framework v0.4.0-alpha1 release.

Key changes:

  • Implements live VM serial console monitoring that captures output to test artifacts
  • Adds libvirt connection management and serial log path resolution
  • Updates test execution to include serial monitoring with timeout handling

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
tools/storm/utils/io/notify_writer.go New writer wrapper to track when first data is written to a stream
tools/storm/e2e/scenario/trident.go Updated scenario structure with VM timeout parameter and conditional test registration
tools/storm/e2e/scenario/setup.go Added VM host info interfaces and libvirt connection handling with cleanup
tools/storm/e2e/scenario/params.go Added helper methods to check hardware type (IsVM/IsBM)
tools/storm/e2e/scenario/monitoring.go Core serial monitoring implementation with login prompt detection and console streaming
tools/storm/e2e/scenario/install.go Integrated serial monitor spawning with netlaunch execution and timeout handling
tools/pkg/virtdeploy/vm.go Updated serial log filename format for consistency
tools/pkg/virtdeploy/status.go Added domain definition and libvirt domain fields to VM status
tools/pkg/virtdeploy/resources.go Store full domain XML definition after creation for status reporting
tools/pkg/virtdeploy/namespace.go Added serialPoolName helper method (unused in this diff)
tools/pkg/virtdeploy/config.go Added domainDefinition field to VirtDeployVM struct
tools/pkg/ref/ref.go Added IsNilInterface utility to safely check for nil interface values
tools/go.mod Updated storm dependency to v0.4.0-alpha1
tools/go.sum Updated checksums for storm v0.4.0-alpha1 and related dependencies
.pipelines/templates/stages/testing_e2e/test_execution_template.yml Added output directory flag to storm-trident command

ndubchak
ndubchak previously approved these changes Dec 29, 2025
Copilot AI review requested due to automatic review settings December 30, 2025 01:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 13 changed files in this pull request and generated 3 comments.

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copilot AI review requested due to automatic review settings December 31, 2025 00:23
@frhuelsz
Copy link
Contributor Author

/AzurePipelines run [GITHUB]-trident-pr-e2e

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 13 changed files in this pull request and generated 2 comments.

@frhuelsz
Copy link
Contributor Author

/AzurePipelines run [GITHUB]-trident-pr-e2e

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copilot AI review requested due to automatic review settings January 5, 2026 18:28
@frhuelsz
Copy link
Contributor Author

frhuelsz commented Jan 5, 2026

/AzurePipelines run [GITHUB]-trident-pr-e2e

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 13 changed files in this pull request and generated 8 comments.

Copilot AI review requested due to automatic review settings January 5, 2026 18:45
@frhuelsz
Copy link
Contributor Author

frhuelsz commented Jan 5, 2026

/AzurePipelines run [GITHUB]-trident-pr-e2e

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 13 changed files in this pull request and generated 5 comments.

@frhuelsz
Copy link
Contributor Author

frhuelsz commented Jan 6, 2026

/AzurePipelines run [GITHUB]-trident-pr-e2e

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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