You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the past, libvirt usually use legacy runner: avocado run --test-runner=runner --vt-type libvirt --vt-machine-type q35 --vt-connect-uri qemu:///system xx to run libvirt tests because in libvirt test scope , test case need be executed sequentially.
For example, if run in parallel, one case is creating VM, another case in parallel is destroying VM. This will lead to undesirable test results
After runner=nrunner is marked as default runner, and legacy runner is not supported, Libvirt Ci need additional efforts to handle parallel execution issues.(e.g forcedly specify one case name when launch avocado run)
I wonder how much additional efforts we need if we still maintain support legacy runner
The text was updated successfully, but these errors were encountered:
Hi @chunfuwen, unfortunately we completely deprecated the legacy runner and we don't plan to come back and support it anymore. If the only problem for Libvirt Ci is parallel run, you can use max-parallel-tasks option. With max-parallel-tasks option set to 1 the avocado behavior is very similar to legacy runner:
avocado run --max-parallel-tasks=1 examples/tests/passtest.py examples/tests/passtest.py
JOB ID : cf59f7042c0e64fa24487bc8e5ee6a7de499c114
JOB LOG : /home/janrichter/avocado/job-results/job-2023-07-11T10.03-cf59f70/job.log
(1/2) examples/tests/passtest.py:PassTest.test: STARTED
(1/2) examples/tests/passtest.py:PassTest.test: PASS (0.01 s)
(2/2) examples/tests/passtest.py:PassTest.test: STARTED
(2/2) examples/tests/passtest.py:PassTest.test: PASS (0.01 s)
RESULTS : PASS 2 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /home/janrichter/avocado/job-results/job-2023-07-11T10.03-cf59f70/results.html
JOB TIME : 2.22 s
You can even add it to your config file like this:
In the past, libvirt usually use legacy runner: avocado run --test-runner=runner --vt-type libvirt --vt-machine-type q35 --vt-connect-uri qemu:///system xx to run libvirt tests because in libvirt test scope , test case need be executed sequentially.
For example, if run in parallel, one case is creating VM, another case in parallel is destroying VM. This will lead to undesirable test results
After runner=nrunner is marked as default runner, and legacy runner is not supported, Libvirt Ci need additional efforts to handle parallel execution issues.(e.g forcedly specify one case name when launch avocado run)
I wonder how much additional efforts we need if we still maintain support legacy runner
The text was updated successfully, but these errors were encountered: