Skip to content

numa_memory: Fix Python 3.13 compatibility and add numad availability#16

Open
sneh-3 wants to merge 1 commit into
lop-devops:masterfrom
sneh-3:numa_fix_for_kvmci
Open

numa_memory: Fix Python 3.13 compatibility and add numad availability#16
sneh-3 wants to merge 1 commit into
lop-devops:masterfrom
sneh-3:numa_fix_for_kvmci

Conversation

@sneh-3

@sneh-3 sneh-3 commented Jun 30, 2026

Copy link
Copy Markdown

This patch addresses two critical issues in the NUMA memory test suite:

Python 3.13 SyntaxWarning for invalid escape sequences in regex patterns
Test failures when numad package is not installed on the system
v2:
numa_memory: fix numa_mode_check logic

Fix incorrect logic in numa_mode_check(): check entire numa_maps
content instead of per-line matching to avoid false failures
Import exceptions from avocado.core and use TestSkipError for
missing NUMA nodes
Remove silent try/except fallback to expose real failures
Use libvirt_numa.convert_all_nodes_to_string() to avoid incorrect
range parsing
Signed-off-by: Sneh Shikha Yadav syadav@linux.ibm.com

@sneh-3

sneh-3 commented Jun 30, 2026

Copy link
Copy Markdown
Author

avocado run type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.no_vcpu.mem_auto --vt-type libvirt --vt-guest-os SLES.16.1.ppc64le --vt-machine-type ppc64le
JOB ID : ac8049fab246b6ebfeab4eb21157a788243c4e18
JOB LOG : /home/kvmci/tests/results/job-2026-06-30T13.21-ac8049f/job.log
(1/2) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.no_vcpu.mem_auto.strict: STARTED
(1/2) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.no_vcpu.mem_auto.strict: PASS (43.61 s)
(2/2) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.no_vcpu.mem_auto.interleave: STARTED
(2/2) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.no_vcpu.mem_auto.interleave: PASS (43.84 s)
RESULTS : PASS 2 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /home/kvmci/tests/results/job-2026-06-30T13.21-ac8049f/results.html
JOB TIME : 93.03 s
ltcbalco52-lp2:/home/kvmci/tests # avocado run type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_auto.strict --vt-type libvirt --vt-guest-os SLES.16.1.ppc64le --vt-machine-type ppc64le
JOB ID : 1082fdf9b5c5f47f391103af118fd6455f3429b5
JOB LOG : /home/kvmci/tests/results/job-2026-06-30T13.23-1082fdf/job.log
(1/1) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_auto.strict: STARTED
(1/1) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_auto.strict: PASS (43.26 s)
RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /home/kvmci/tests/results/job-2026-06-30T13.23-1082fdf/results.html
JOB TIME : 46.53 s
ltcbalco52-lp2:/home/kvmci/tests # avocado run type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_auto.interleave --vt-type libvirt --vt-guest-os SLES.16.1.ppc64le --vt-machine-type ppc64le
JOB ID : a26de62258808fa397d0a81e6037a09cc6627c62
JOB LOG : /home/kvmci/tests/results/job-2026-06-30T13.24-a26de62/job.log
(1/1) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_auto.interleave: STARTED
(1/1) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_auto.interleave: PASS (43.23 s)
RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /home/kvmci/tests/results/job-2026-06-30T13.24-a26de62/results.html
JOB TIME : 46.50 s
ltcbalco52-lp2:/home/kvmci/tests # avocado run type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_nodeset.node1.strict --vt-type libvirt --vt-guest-os SLES.16.1.ppc64le --vt-machine-type ppc64le
JOB ID : 0eadfc0635c63f3b029af61c7aa46e8ea9d24c57
JOB LOG : /home/kvmci/tests/results/job-2026-06-30T13.25-0eadfc0/job.log
(1/1) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_nodeset.node1.strict: STARTED
(1/1) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_nodeset.node1.strict: PASS (43.64 s)
RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /home/kvmci/tests/results/job-2026-06-30T13.25-0eadfc0/results.html
JOB TIME : 46.94 s
ltcbalco52-lp2:/home/kvmci/tests # avocado run type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_nodeset.node2.strict --vt-type libvirt --vt-guest-os SLES.16.1.ppc64le --vt-machine-type ppc64le
JOB ID : 7963eb73b9c907dfbdb962e4dc53f54a21b1b954
JOB LOG : /home/kvmci/tests/results/job-2026-06-30T13.27-7963eb7/job.log
(1/1) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_nodeset.node2.strict: STARTED
(1/1) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_nodeset.node2.strict: PASS (44.34 s)
RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /home/kvmci/tests/results/job-2026-06-30T13.27-7963eb7/results.html
JOB TIME : 47.62 s
ltcbalco52-lp2:/home/kvmci/tests # avocado run type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_nodeset.node2.interleave --vt-type libvirt --vt-guest-os SLES.16.1.ppc64le --vt-machine-type ppc64le
JOB ID : 1e9f0ab8ff22856e749a9e88fce806a339dfc701
JOB LOG : /home/kvmci/tests/results/job-2026-06-30T13.28-1e9f0ab/job.log
(1/1) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_nodeset.node2.interleave: STARTED
(1/1) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_nodeset.node2.interleave: PASS (43.47 s)
RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /home/kvmci/tests/results/job-2026-06-30T13.28-1e9f0ab/results.html
JOB TIME : 46.71 s
ltcbalco52-lp2:/home/kvmci/tests # avocado run type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_static.mem_auto.strict --vt-type libvirt --vt-guest-os SLES.16.1.ppc64le --vt-machine-type ppc64le
JOB ID : 0891ae18e8d55ccc720af5f57083cc2e59aa3ff3
JOB LOG : /home/kvmci/tests/results/job-2026-06-30T13.30-0891ae1/job.log
(1/1) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_static.mem_auto.strict: STARTED
(1/1) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_static.mem_auto.strict: PASS (44.46 s)
RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /home/kvmci/tests/results/job-2026-06-30T13.30-0891ae1/results.html
JOB TIME : 47.76 s
ltcbalco52-lp2:/home/kvmci/tests # avocado run type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_static.mem_auto.interleave --vt-type libvirt --vt-guest-os SLES.16.1.ppc64le --vt-machine-type ppc64le
JOB ID : fda856ac7764a9140013fa3b426aa1b632d8cb8d
JOB LOG : /home/kvmci/tests/results/job-2026-06-30T13.32-fda856a/job.log
(1/1) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_static.mem_auto.interleave: STARTED
(1/1) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_static.mem_auto.interleave: PASS (43.76 s)
RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /home/kvmci/tests/results/job-2026-06-30T13.32-fda856a/results.html
JOB TIME : 47.02 s
avocado run type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_nodeset.node1.preferred --vt-type libvirt --vt-guest-os SLES.16.1.ppc64le --vt-machine-type ppc64le
JOB ID : 3d51c9673b1d81cc6a661bb4226616b10274bf0b
JOB LOG : /home/kvmci/tests/results/job-2026-06-30T13.39-3d51c96/job.log
(1/1) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_nodeset.node1.preferred: STARTED
(1/1) type_specific.io-github-autotest-libvirt.numa_memory.possitive_test.vcpu.vcpu_auto.mem_nodeset.node1.preferred: PASS (43.69 s)
RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /home/kvmci/tests/results/job-2026-06-30T13.39-3d51c96/results.html
JOB TIME : 47.00 s

@sneh-3 sneh-3 force-pushed the numa_fix_for_kvmci branch from 1c6eb0b to 9d69af0 Compare July 1, 2026 16:42
… check

This patch addresses two critical issues in the NUMA memory test suite:

1. Python 3.13 SyntaxWarning for invalid escape sequences in regex patterns
2. Test failures when numad package is not installed on the system
Also Changed TestError to test.cancel for empty node_list scenarios
and When numad is not installed and no NUMA nodes available, skip test

Signed-off-by: Sneh Shikha Yadav <syadav@linux.ibm.com>
@sneh-3 sneh-3 force-pushed the numa_fix_for_kvmci branch from 9d69af0 to 5cfb6f9 Compare July 1, 2026 17:16
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