[dpdk-ci] [PATCH] tools: fix tree detection for "unmaintained" files
David Marchand
david.marchand at redhat.com
Mon Jan 6 12:15:31 CET 2020
Implicitly, if a file has no official maintainer / tree, it is in the
end maintained in the master branch.
This problem has been seen while looking at test failures reported on the
series https://patchwork.dpdk.org/project/dpdk/list/?series=7981.
This series mixes changes in ethdev, net/tap and EAL, and thus should go
through the main repository.
Signed-off-by: David Marchand <david.marchand at redhat.com>
---
tools/guess_git_tree.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tools/guess_git_tree.py b/tools/guess_git_tree.py
index 3c6f2da..bc63674 100755
--- a/tools/guess_git_tree.py
+++ b/tools/guess_git_tree.py
@@ -146,8 +146,11 @@ class Maintainers(object):
tree_list = []
for _file in files:
_tree = self._get_tree(_file)
- if _tree:
- tree_list.append(_tree)
+ # No identified tree for a file means that it should go through
+ # the main repository.
+ if not _tree:
+ _tree = 'dpdk'
+ tree_list.append(_tree)
tree = self.get_common_denominator(tree_list)
if tree == '':
tree = 'dpdk'
--
2.23.0
More information about the ci
mailing list