mesa/.gitlab-ci/container/debian
Guilherme Gallo c85f3fbbb7 ci/lava: Add LavaFarm class to find LAVA farm from runner tag
LavaFarm is a class created to handle the different types of LAVA farms
and their tags in Mesa CI. Since specific jobs may require different
types of LAVA farms to run on, it is essential to determine which farm
the runner is running on to configure the job correctly.

LavaFarm provides an easy-to-use interface for checking the runner tag
and returning the corresponding LAVA farm, making it simple for Mesa CI
to configure jobs appropriately. By adding tests for LavaFarm, the team
can ensure that this class is functioning as expected, allowing for the
smooth execution of Mesa CI jobs on the correct LAVA farm.

The tests ensure that get_lava_farm returns the correct LavaFarm value
when given invalid or valid tags and that it returns LavaFarm.UNKNOWN
when no tag is provided. The tests use Hypothesis strategies to generate
various labels and farms for testing.

Example of use:
```
from lava.utils.lava_farm import LavaFarm, get_lava_farm

lava_farm = get_lava_farm()
if lava_farm == LavaFarm.DUMMY:
    # Configure the job for the DUMMY farm
    ...
elif lava_farm == LavaFarm.COLLABORA:
    # Configure the job for the COLLABORA farm
    ...
elif lava_farm == LavaFarm.KERNELCI:
    # Configure the job for the KERNELCI farm
    ...
else:
    # Handle the case where the LAVA farm is unknown
    ...
```

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21325>
2023-02-16 13:08:41 +00:00
..
android_build.sh ci: Use NDK 25b to build for the Android ABI level 33 2023-01-25 08:58:25 -03:00
arm64_test.sh ci: split arm_test into arm{hf,64}_test 2022-11-22 22:00:06 +00:00
arm_build.sh ci: migrate from wget to curl 2023-01-19 23:46:44 +00:00
arm_test.sh ci: migrate from wget to curl 2023-01-19 23:46:44 +00:00
armhf_test.sh ci: split arm_test into arm{hf,64}_test 2022-11-22 22:00:06 +00:00
i386_build.sh ci: Add debian/ prefix to job names for Debian based docker images 2021-07-09 10:24:41 +00:00
llvm-snapshot.gpg.key ci/x86: update to llvm 13 2022-07-01 19:24:05 +00:00
ppc64el_build.sh ci: Add debian/ prefix to job names for Debian based docker images 2021-07-09 10:24:41 +00:00
s390x_build.sh ci/linker: update mold to 1.6 and enable on s390x 2022-10-25 06:25:14 +00:00
winehq.gpg.key ci: install a more recent version of Wine in the test-vk image 2022-06-24 05:32:53 +00:00
x86_build-base-wine.sh ci: drop last bits of wine32 2022-08-27 23:00:37 +00:00
x86_build-base.sh rusticl: fix build error with valgrind being enabled 2023-01-30 03:41:39 +01:00
x86_build-mingw-patch.sh ci: migrate from wget to curl 2023-01-19 23:46:44 +00:00
x86_build-mingw-source-deps.sh ci: Update mingw and vs2019 libva build dependency to libva/releases/tag/2.17.0 2023-01-03 20:12:38 +00:00
x86_build-mingw.sh ci: Prepare the container for building all mesa components with mingw under linux 2022-06-23 09:27:06 +00:00
x86_build.sh ci/lava: Add LavaFarm class to find LAVA farm from runner tag 2023-02-16 13:08:41 +00:00
x86_mingw-toolchain.cmake ci: Prepare the container for building all mesa components with mingw under linux 2022-06-23 09:27:06 +00:00
x86_test-android.sh ci/android: add android to the ci 2023-01-25 08:58:26 -03:00
x86_test-base.sh ci: migrate from wget to curl 2023-01-19 23:46:44 +00:00
x86_test-gl.sh ci/zink: Add coverage using the vulkan validation layer on lvp. 2023-01-24 20:56:13 +00:00
x86_test-vk.sh ci/debian/x86_test-vk: drop an outdated dependency 2023-01-27 14:46:33 +02:00