Skip to content

test: fix test_hostha_simulator.py and test_outofbandmanagement.py - #10815

Merged
DaanHoogland merged 2 commits into
apache:4.20from
weizhouapache:4.20-ci-fix-test-test_ha_multiple_mgmt_server_ownership
May 8, 2025
Merged

test: fix test_hostha_simulator.py and test_outofbandmanagement.py#10815
DaanHoogland merged 2 commits into
apache:4.20from
weizhouapache:4.20-ci-fix-test-test_ha_multiple_mgmt_server_ownership

Conversation

@weizhouapache

Copy link
Copy Markdown
Member

this fixes the test failure below

======================================================================
FAIL: Tests ha resource ownership expiry across multi-mgmt server
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/test/integration/smoke/test_hostha_simulator.py", line 462, in test_ha_multiple_mgmt_server_ownership
self.fail("Management server failed to turn down or remove fake mgmt server")
AssertionError: Management server failed to turn down or remove fake mgmt server
----------------------------------------------------------------------
Ran 19 tests in 277.481s

Description

This PR...

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?

…ator.py
this fixes the test failure below
```
======================================================================
FAIL: Tests ha resource ownership expiry across multi-mgmt server
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/test/integration/smoke/test_hostha_simulator.py", line 462, in test_ha_multiple_mgmt_server_ownership
self.fail("Management server failed to turn down or remove fake mgmt server")
AssertionError: Management server failed to turn down or remove fake mgmt server
----------------------------------------------------------------------
Ran 19 tests in 277.481s
```
@boring-cyborgboring-cyborgBot added component:integration-test Python Warning... Python code Ahead! labels May 5, 2025
@codecov

codecovBot commented May 5, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.13%. Comparing base (91c1168) to head (a90f263).
Report is 7 commits behind head on 4.20.

Additional details and impacted files
@@ Coverage Diff @@## 4.20 #10815 +/- ##
=========================================
Coverage 16.13% 16.13% Complexity 13217 13217 =========================================
Files 5649 5651 +2 Lines 496703 496740 +37 Branches 60179 60183 +4 =========================================
+ Hits 80129 80149 +20 - Misses 407656 407668 +12 - Partials 8918 8923 +5 
FlagCoverage Δ
uitests4.00% <ø> (-0.01%)⬇️
unittests16.98% <ø> (+<0.01%)⬆️

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

☔ View full report in Codecov by Sentry.
📢 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.

@weizhouapacheweizhouapache changed the title test: fix test_ha_multiple_mgmt_server_ownership in test_hostha_simulator.pytest: fix test_hostha_simulator.py and test_outofbandmanagement.pyMay 5, 2025
@weizhouapache

Copy link
Copy Markdown
MemberAuthor

Cc @Pearl1594

@DaanHoogland

Copy link
Copy Markdown
Contributor

@weizhouapache , the out-of-bounds failures also happen in the 4.19 GHA (see this job) . Can you backport the fix?

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@weizhouapache , the out-of-bounds failures also happen in the 4.19 GHA (see this job) . Can you backport the fix?

@DaanHoogland
it has been fixed by #10805

@weizhouapache
weizhouapache marked this pull request as ready for review May 6, 2025 07:18
@DaanHoogland

Copy link
Copy Markdown
Contributor

@weizhouapache , the out-of-bounds failures also happen in the 4.19 GHA (see this job) . Can you backport the fix?

@DaanHoogland it has been fixed by #10805

ok, I see. So the timeout wasn’t necessary before. Is that something to worry about?

@weizhouapache

weizhouapache commented May 6, 2025

Copy link
Copy Markdown
MemberAuthor

@weizhouapache , the out-of-bounds failures also happen in the 4.19 GHA (see this job) . Can you backport the fix?

@DaanHoogland it has been fixed by #10805

ok, I see. So the timeout wasn’t necessary before. Is that something to worry about?

@DaanHoogland
I think no, these simulator CI failures should be caused by #9885. we did not face some issues in the testing

these two tests contain some manual database insertation/deletion.
they are not normal behaviours.

@Pearl1594Pearl1594 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.

lgtm

@DaanHoogland
DaanHoogland merged commit c45ed06 into apache:4.20May 8, 2025
@DaanHoogland
DaanHoogland deleted the 4.20-ci-fix-test-test_ha_multiple_mgmt_server_ownership branch May 8, 2025 07:17
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 19, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:integration-testPythonWarning... Python code Ahead!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@weizhouapache@DaanHoogland@Pearl1594