From a93cd2772f3403bc02c30ed387c51d3578596827 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Sat, 7 Mar 2015 20:11:32 -0500 Subject: [PATCH] Filtering out commits that only change gdb/doc, or that only change ChangeLog files --- master.cfg | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/master.cfg b/master.cfg index 3f67f68..43ae7d3 100644 --- a/master.cfg +++ b/master.cfg @@ -687,20 +687,30 @@ class RunTestGDBIndexBuildBSD (RunTestGDBIndexBuild, RunTestGDBBSD_Common): """Testing with the "cc-with-tweaks.sh" passing -i. FIXME: include bitness here.""" pass -# For now, we only support testing the "master" branch. +# All branches that are going to be watched. all_gdb_filter = ChangeFilter (branch_fn = should_watch_branch) def DefaultGDBCanStartBuild (builder, buildslave, buildrequest): return not builder.building -files_ignored_re = re.compile ("(cpu/|elfcpp/|gas/|gold/|gprof/|ld/|texinfo/).*") +files_ignored_re = re.compile ("(cpu/|elfcpp/|gas/|gold/|gprof/|ld/|texinfo/|gdb/doc/).*") def DefaultGDBfileIsImportant (change): """Implementation of fileIsImportant method, in order to decide which changes to build on GDB.""" + only_changelog = True + if 'GDB Administrator' in change.who: return False + # Filter out commits that only modify the ChangeLog files. + for filename in change.files: + if 'ChangeLog' not in filename: + only_changelog = False + + if only_changelog: + return False + for filename in change.files: if not re.match (files_ignored_re, filename): return True