Skip to content

Commit 426ec63

Browse files
committed
Merge PR #2159 into main
* refs/pull/2159/head: teuthology/suite: log postmerge filtering Reviewed-by: Aishwarya Mathuria <amathuri@redhat.com>
2 parents 2772571 + 63abcc5 commit 426ec63

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

teuthology/suite/fragment-merge.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,22 @@ local function check_filters(_ENV)
4646
if filter_all then
4747
for i,f in py_enumerate(filter_all) do
4848
if not matches(_ENV, f) then
49+
log:debug("dropping job due to not matching filter-all: %s", f)
4950
reject()
5051
end
5152
end
5253
end
5354
if os_type and yaml.os_type then
5455
if os_type ~= yaml.os_type then
56+
log:debug("dropping job due to os_type mismatch with --os-type: %s", os_type)
5557
reject()
5658
end
5759
end
5860
if os_version and yaml.os_version then
5961
wanted_os_version = string.gsub(os_version, ".stream", "")
6062
this_os_version = string.gsub(yaml.os_version, ".stream", "")
6163
if wanted_os_version ~= this_os_version then
64+
log:debug("dropping job due to os_version mismatch with --os-version: %s", os_version)
6265
reject()
6366
end
6467
end
@@ -72,12 +75,14 @@ local function check_filters(_ENV)
7275
end
7376
end
7477
if tried and not found then
78+
log:debug("dropping job due to not matching any --filter: %s", filter_in)
7579
reject()
7680
end
7781
end
7882
if filter_out then
7983
for i,f in py_enumerate(filter_out) do
8084
if matches(_ENV, f) then
85+
log:debug("dropping job due to matching --filter-out: %s", f)
8186
reject()
8287
end
8388
end

0 commit comments

Comments
 (0)