Skip to content

test: fix smoke test failures on xen/vmware#13628

Draft
weizhouapache wants to merge 1 commit into
apache:mainfrom
weizhouapache:4.23-fix-smoke-test-failures
Draft

test: fix smoke test failures on xen/vmware#13628
weizhouapache wants to merge 1 commit into
apache:mainfrom
weizhouapache:4.23-fix-smoke-test-failures

Conversation

@weizhouapache

Copy link
Copy Markdown
Member

Description

This PR fixes some smoke test failures on vmware or xenserver/xcpng

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

Copilot AI review requested due to automatic review settings July 16, 2026 11:34
@boring-cyborg boring-cyborg Bot added component:integration-test Python Warning... Python code Ahead! labels Jul 16, 2026
@weizhouapache weizhouapache added this to the 4.23.0 milestone Jul 16, 2026
@weizhouapache

Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress.

@weizhouapache weizhouapache added this to the 4.23.0 milestone Jul 16, 2026

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 targets integration smoke test stability across hypervisors (notably XenServer/XCP-ng and VMware) by skipping KVM-specific checks/tests when not running on KVM, and by adjusting a few timing/host prerequisite assumptions that can cause intermittent failures.

Changes:

  • Skip KVM-only paths in smoke tests when the detected hypervisor is not KVM.
  • Add additional host-tool prerequisite checks for a VPC source NAT IP update test.
  • Add delays around affinity-group migration steps and make the events-resource test more tolerant around volume attach/detach operations.

Reviewed changes

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

File Description
test/integration/smoke/test_nonstrict_affinity_group.py Adds waits before migration steps in non-strict affinity group tests.
test/integration/smoke/test_network_extension_namespace.py Skips KVM prerequisite checks on non-KVM hypervisors; expands required host tools for one test.
test/integration/smoke/test_kms_lifecycle.py Skips a VM root-disk encryption test on non-KVM hypervisors.
test/integration/smoke/test_events_resource.py Wraps volume attach/detach operations to avoid hard failures in some environments.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/integration/smoke/test_nonstrict_affinity_group.py
Comment thread test/integration/smoke/test_nonstrict_affinity_group.py
Comment on lines +150 to +154
try:
virtual_machine.attach_volume(
self.apiclient,
volume
)
@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 19.64%. Comparing base (75748a5) to head (09fca9b).

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #13628      +/-   ##
============================================
- Coverage     19.65%   19.64%   -0.01%     
+ Complexity    19792    19790       -2     
============================================
  Files          6368     6368              
  Lines        575107   575107              
  Branches      70370    70370              
============================================
- Hits         113016   112987      -29     
- Misses       449808   449846      +38     
+ Partials      12283    12274       -9     
Flag Coverage Δ
uitests 3.41% <ø> (ø)
unittests 20.92% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 18593

@weizhouapache

Copy link
Copy Markdown
Member Author

@blueorangutan test ubuntu26 xcpng82 keepEnv

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SL] Trillian-Jenkins test job (ubuntu26 mgmt + xcpng82) has been kicked to run smoke tests

@weizhouapache

weizhouapache commented Jul 16, 2026

Copy link
Copy Markdown
Member Author

@blueorangutan test ubuntu26 vmware-80u3e keepEnv

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SL] Trillian-Jenkins test job (ubuntu26 mgmt + vmware-80u3e) has been kicked to run smoke tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:integration-test Python Warning... Python code Ahead!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants