Skip to content

Commit 606d6dc

Browse files
committed
fix(ci): actually test kernel builds if patches are added
The patches are in the `patches` subdirectory of `hiding_ci`, so if only patches were added, then the check of "any files with parent directory `hiding_ci`" would be false, and the CI step for testing the build of patches wouldn't actually run. Fix this by updating the check to be "any files where any parent directory is `hiding_ci`", which will also catch patches. Reported-by: Jack Thomson <jackabt@amazon.co.uk> Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
1 parent 7c5afcf commit 606d6dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.buildkite/pipeline_pr.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@
6868
for step in kani_grp["steps"]:
6969
step["label"] = "🔍 Kani"
7070

71-
if not changed_files or (any(x.parent.name == "hiding_ci" for x in changed_files)):
71+
if not changed_files or (
72+
any(parent.name == "hiding_ci" for x in changed_files for parent in x.parents)
73+
):
7274
pipeline.build_group_per_arch(
7375
"🕵️ Build Secret Hiding Kernel",
7476
pipeline.devtool_test(

0 commit comments

Comments
 (0)