From 6f9824f511c6b32d2630e57316f056f1566881d2 Mon Sep 17 00:00:00 2001 From: Primiano Tucci Date: Mon, 4 Nov 2024 22:30:55 +0000 Subject: [PATCH] ci: improve detection of UI changes to save resources Improve the regex that detects UI-only changes to keep into account also test rebaselines. Today if you make a UI-only change and rebaseline the tests, all bots end up doing work (including the ones that test c++ code) Change-Id: I3cfd6528452916e7f0705267e2a0579612f7af30 --- test/ci/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ci/common.sh b/test/ci/common.sh index c28dff6360..bdabb51d0c 100644 --- a/test/ci/common.sh +++ b/test/ci/common.sh @@ -37,7 +37,7 @@ rm -rf out/tmp.protoc tools/check_sql_modules.py tools/check_sql_metrics.py -if !(git diff --name-only HEAD^1 HEAD | egrep -qv '^(ui|docs|infra)/'); then +if !(git diff --name-only HEAD^1 HEAD | egrep -qv '^(ui|docs|infra|test/data/ui-screenshots)/'); then export UI_DOCS_INFRA_ONLY_CHANGE=1 else export UI_DOCS_INFRA_ONLY_CHANGE=0