From ab878dd91d8d77f49d3c188314b6df21cf4fba8e Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Tue, 7 Nov 2023 21:38:35 +0000 Subject: [PATCH] copr-be: fix project regex for LLVM Snapshots high-performance builders LLVM Snapshots are built fresh in daily new incubator projects such as `@fedora-llvm-team/llvm-snapshots-incubator-20231107` and the regex wouldn't match them before. Now the regex works good with grep in the following scenarios: ``` $ echo "@fedora-llvm-team/llvm-snapshots/fedora-rawhide-x86_64/llvm" | grep -ioP '@fedora-llvm-team/llvm-snapshots[^/]*/.*x86_64/(llvm|clang)' $ echo "@fedora-llvm-team/llvm-snapshots-incubator-20231107/fedora-rawhide-x86_64/llvm" | grep -ioP '@fedora-llvm-team/llvm-snapshots[^/]*/.*x86_64/(llvm|clang)' ``` --- roles/copr/frontend/templates/copr.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/copr/frontend/templates/copr.conf b/roles/copr/frontend/templates/copr.conf index f8228a5be4..9184adc7e4 100644 --- a/roles/copr/frontend/templates/copr.conf +++ b/roles/copr/frontend/templates/copr.conf @@ -218,7 +218,7 @@ EXTRA_BUILDCHROOT_TAGS = [{ "tags": ["on_demand_powerful"], }, { # https://github.com/fedora-copr/copr/issues/2987 - "pattern": "@fedora-llvm-team/llvm-snapshots/.*x86_64/(llvm|clang)", + "pattern": "@fedora-llvm-team/llvm-snapshots[^/]*/.*x86_64/(llvm|clang)", "tags": ["on_demand_powerful"], }] {% endif %}