ci/lava: Properly detect VMWARE farm

This will make the job definition default to the UART format for vmware
jobs, as only Collabora's farm relies on the SSH job definition due to
the unreliable Chromebook UART in LAVA.

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33874>
This commit is contained in:
Guilherme Gallo 2025-03-04 12:12:12 -03:00 committed by Marge Bot
parent 5461ed5808
commit fbc55afbdf

View file

@ -8,13 +8,13 @@ class LavaFarm(Enum):
LIMA = 1
COLLABORA = 2
UNKNOWN = 3
VMWARE = 3
UNKNOWN = 4
LAVA_FARM_RUNNER_PATTERNS: dict[LavaFarm, str] = {
# Lima pattern comes first, since it has the same prefix as the
# Collabora pattern.
# Lima and VMware patterns come first, since they have the same prefix as the Collabora pattern.
LavaFarm.LIMA: r"^mesa-ci-[\x01-\x7F]+-lava-lima$",
LavaFarm.VMWARE: r"^mesa-ci-[\x01-\x7F]+-lava-vmware$",
LavaFarm.COLLABORA: r"^mesa-ci-[\x01-\x7F]+-lava-[\x01-\x7F]+$",
LavaFarm.UNKNOWN: r"^[\x01-\x7F]+",
}