Skip to content

Conversation

@richm
Copy link
Contributor

@richm richm commented Apr 21, 2025

When running tests with a qemu managed node, the dhcp
used by qemu interferes with the dhcp used in the test, which
can cause the test to hang. Exclude the qemu interfaces from
using the test dhcp. Note that this only affects the qemu tests -
testing farm and other tests with "real" machines will have a
different mac address - the mac addresses used below are specific
to qemu virtual devices.

Also include a tests/ansible.cfg with a task_timeout=240 to kill
any tasks which take longer than 240 seconds, in case there are
still hangs. This will cause the test to exit with an error.

Signed-off-by: Rich Megginson [email protected]

@richm richm requested a review from liangwen12year as a code owner April 21, 2025 21:06
@codecov
Copy link

codecov bot commented Apr 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.25%. Comparing base (1b57520) to head (2afabe2).
Report is 15 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #781      +/-   ##
==========================================
+ Coverage   43.11%   43.25%   +0.13%     
==========================================
  Files          12       12              
  Lines        3124     3121       -3     
==========================================
+ Hits         1347     1350       +3     
+ Misses       1777     1771       -6     

☔ 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.

@richm
Copy link
Contributor Author

richm commented Apr 21, 2025

[citest]

@richm richm force-pushed the test-exclude-qemu-interfaces-from-dhcp branch from 535acec to dcd7295 Compare April 22, 2025 01:08
When running tests with a qemu managed node, the dhcp
used by qemu interferes with the dhcp used in the test, which
can cause the test to hang.  Exclude the qemu interfaces from
using the test dhcp.  Note that this only affects the qemu tests -
testing farm and other tests with "real" machines will have a
different mac address - the mac addresses used below are specific
to qemu virtual devices.

Also, just in case tests still timeout, add a tests/ansible.cfg
with a 240 second task timeout to ensure any hung tasks are killed.
This will cause the playbook to exit with an error.

Signed-off-by: Rich Megginson <[email protected]>
@richm richm force-pushed the test-exclude-qemu-interfaces-from-dhcp branch from dcd7295 to 705282f Compare April 22, 2025 02:01
@richm richm merged commit fcbf902 into linux-system-roles:main Apr 22, 2025
21 of 26 checks passed
@richm richm deleted the test-exclude-qemu-interfaces-from-dhcp branch April 22, 2025 13:04
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.

1 participant