Skip to content

Commit

Permalink
ci: improve detection of UI changes to save resources
Browse files Browse the repository at this point in the history
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
  • Loading branch information
primiano committed Nov 4, 2024
1 parent acf590a commit 6f9824f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ci/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f9824f

Please sign in to comment.