lava: Install vlttng inside a venv
authorKienan Stewart <kstewart@efficios.com>
Mon, 15 Jan 2024 19:00:11 +0000 (14:00 -0500)
committerKienan Stewart <kstewart@efficios.com>
Wed, 17 Jan 2024 20:54:56 +0000 (15:54 -0500)
commitdb5b14958e79d156b950a2ae79baa9543cb0a91f
treea4d2aecf7867b7ea1e6f7b7cbfe693c7a7eea718
parent4663cfc2cf7d2f049d22f42c57d689247cd269d5
lava: Install vlttng inside a venv

A number of the lava jobs were failing as the python tests couldn't
import the `bt2` module. While it may be possible to improve the
behaviour of vlttng to better address the situation two elements
combine to make the process work more systematically:

* Install `vlttng` inside a venv instead of using the
`--break-system-packages` option: once activated, this will set an
initial value for the `PYTHONPATH` environment variable
* When `vlttng` is invoked, since `PYTHONPATH` is no longer empty, the
value will be updated correctly.

In the case of the new rootfs, it also appears to be necessary to
ensure that `setuptools` is using `distutils` from Python stdlib,
although the module is deprecated and will be removed in Python 3.12

C.f. https://peps.python.org/pep-0632/

Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Change-Id: If0aefb72f5c37721f88b49bd4a841b5ce61f46a0
jobs/system-tests.yaml
lava/rootfs/vmdeboostrap/generate-root.py
lava/system-tests/kernel-tests.yml
lava/system-tests/perf-tests.yml
lava/system-tests/setup.yml
scripts/system-tests/lava2-submit.py
scripts/system-tests/template_lava_job.jinja2
This page took 0.024717 seconds and 4 git commands to generate.