Skip to content

Commit 9c2ef7e

Browse files
roypatkalyazin
authored andcommitted
fix(ci): Dont run functional tests if changing patch series
Currently, we often get stuck with the problem where something in the host kernel breaks that causes functional tests to fail, but we cannot update the patch series from which the host kernel gets built, because functional tests are failing. Break this cyclic dependency by simply not running functional tests when updating only the patch series (as they dont test the updated kernel anyway. Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
1 parent 428dc38 commit 9c2ef7e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.buildkite/common.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,12 @@ def run_all_tests(changed_files):
118118
"""
119119

120120
# run the whole test suite if either of:
121-
# - any file changed that is not documentation nor GitHub action config file
121+
# - any file changed that is not documentation nor GitHub action config file, nor secret hiding patch series
122122
# - no files changed
123123
return not changed_files or any(
124-
x.suffix != ".md" and not (x.parts[0] == ".github" and x.suffix == ".yml")
124+
x.suffix != ".md"
125+
and not (x.parts[0] == ".github" and x.suffix == ".yml")
126+
and x.parts[1] != "hiding_ci"
125127
for x in changed_files
126128
)
127129

0 commit comments

Comments
 (0)