mesa/.gitlab-ci
Guilherme Gallo bc86b73bbe ci/lava: Fix lava-tags parsing
python-fire auto-converts `item1,item2` into a tuple, but if there is a
dash `-` inside the argument, it treats it as a string.

Let's validate the data, when it comes as a `str` or `tuple`.

For more details, here are the tested scenarios:

| --lava-tags= | Type  | Value               |
|--------------|-------|---------------------|
| None         | bool  | True                |
| ''           | str   | ''                  |
| tag1         | str   | "tag1"              |
| tag1,        | tuple | ("tag1",)           |
| tag-1,tag-2  | str   | 'tag-1,tag-2'       |
| tag1,tag2    | tuple | ("tag1", "tag2")    |
| ','          | str   | ','                 |
| ',,'         | str   | ',,'                |
| 'tag1,,'     | str   | 'tag1,,'            |

See also:
https://google.github.io/python-fire/guide/#argument-parsing

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31882>
2024-10-31 18:00:27 +00:00
..
b2c ci/b2c: make initramfs & kernel urls optional 2024-10-22 05:29:07 +00:00
bare-metal ci: rename FORCE_KERNEL_TAG to EXTERNAL_KERNEL_TAG 2024-10-28 02:18:27 +00:00
build ci/build: lower most job's timeout from 30 to 15 min 2024-10-30 16:21:16 +00:00
common ci: skip slow tests on all non-"full" jobs 2024-10-25 08:26:31 +00:00
container Uprev Piglit to c2b31333926a6171c3c02d182b756efad7770410 2024-10-30 18:11:56 +00:00
firmware ci: add Gen10 Arm Mali firmware to rootfs 2024-10-01 07:57:42 +00:00
fossils ci: enable shellcheck on whole .gitlab-ci 2023-05-25 16:06:53 +02:00
lava ci/lava: Fix lava-tags parsing 2024-10-31 18:00:27 +00:00
meson ci/build: Do not do LTO on any pre-merge job 2024-10-22 19:51:34 +00:00
piglit ci: skip slow tests on all non-"full" jobs 2024-10-25 08:26:31 +00:00
test ci: move shellcheck options to .shellcheckrc 2024-10-24 22:43:03 +00:00
tests ci/lava: Provide list of overlays to submitter 2024-10-31 18:00:27 +00:00
windows ci: Bump DirectX-Headers and Agility SDK dependencies to 1.614.1 2024-09-12 15:01:18 +00:00
all-skips.txt ci: Move two failing loader-related tests to all-skips.txt 2024-08-15 09:01:26 +00:00
angle-skips.txt ci: Add global ANGLE skips for its waiver 2024-10-18 20:39:33 +00:00
bin ci: move the CI handling scripts into bin/ci 2022-12-19 16:36:19 +01:00
cross-xfail-ppc64el ci: update xfails for ppc64le and s390x 2021-03-23 14:01:49 +00:00
cross-xfail-s390x llvmpipe: Use lp_build_round_arch on IBM Z (s390x) 2021-11-23 17:49:02 +00:00
crosvm-init.sh ci: enable shellcheck on whole .gitlab-ci 2023-05-25 16:06:53 +02:00
crosvm-runner.sh ci/crosvm: Use default value for CROSVM_GALLIUM_DRIVER 2024-10-24 08:46:54 +00:00
cuttlefish-runner.sh ci: Make section emission really quiet 2024-10-20 11:32:43 +01:00
deqp-runner.sh ci: skip slow tests on all non-"full" jobs 2024-10-25 08:26:31 +00:00
docs docs: Move the current CI .rst doc to docs/ci/ and link to it from .gitlab-ci. 2020-07-08 20:13:11 +00:00
download-git-cache.sh ci: identify and label S3 buckets 2024-05-07 22:08:07 +00:00
farm-rules.yml ci: rename "freedreno" farm to "google-freedreno" 2024-10-21 09:36:05 +00:00
fossilize-runner.sh ci: prune dri from LD_LIBRARY_PATH 2024-07-24 15:53:12 +00:00
fossils.yml gitlab-ci: add parallel-rdp fossils 2020-06-25 08:03:09 +02:00
gbm-skips.txt ci/piglit: Exclude swapbuffers front-readback tests with PIGLIT_PLATFORM=gbm. 2023-01-24 00:13:03 +00:00
gtest-runner.sh ci: Make section emission really quiet 2024-10-20 11:32:43 +01:00
image-tags.yml Uprev Piglit to c2b31333926a6171c3c02d182b756efad7770410 2024-10-30 18:11:56 +00:00
prepare-artifacts-python.sh ci/python: Fix section emission 2024-10-20 11:32:42 +01:00
prepare-artifacts.sh ci/prepare-artifacts: use more than one thread when compressing the install tarball 2024-10-21 08:52:23 +00:00
report-flakes.py ci: Add known-flake handling for the IRC flake reports 2021-06-01 20:31:00 +00:00
run-pytest.sh ci/python: Allow empty PYTHONPATH 2024-09-12 18:17:52 +00:00
run-shader-db.sh ci: Make section emission really quiet 2024-10-20 11:32:43 +01:00
run-shellcheck.sh ci: move shellcheck options to .shellcheckrc 2024-10-24 22:43:03 +00:00
run-yamllint.sh ci: Crank up the yamllint line length limit. 2023-04-20 02:22:41 +00:00
setup-test-env.sh ci: Make section emission really quiet 2024-10-20 11:32:43 +01:00
test-source-dep.yml ci/lava: Make perf jobs use pyutils artifact 2024-10-10 01:33:16 +00:00
vkd3d-runner.sh ci: Make section emission really quiet 2024-10-20 11:32:43 +01:00
x11-skips.txt ci/piglit: Add some common piglit skips for Mesa CI's testing of glx. 2023-01-24 00:13:02 +00:00