From ba8b99e5fb6c06ea85c51de291e7c24370bba959 Mon Sep 17 00:00:00 2001 From: Stuart Archibald Date: Wed, 12 Oct 2022 12:11:15 +0100 Subject: [PATCH] Update the target branch in testing to reduce the testing diff. As title. This is to make the "files changed" that public CI has to check smaller as it's against the release branch and not `main`. --- numba/testing/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/numba/testing/main.py b/numba/testing/main.py index 64cab7c92b6..7d9a48b885e 100644 --- a/numba/testing/main.py +++ b/numba/testing/main.py @@ -207,7 +207,8 @@ def git_diff_str(x): parser.add_argument('-g', '--gitdiff', dest='gitdiff', type=git_diff_str, default=False, nargs='?', help=('Run tests from changes made against ' - 'origin/main as identified by `git diff`. ' + 'origin/release0.56 as identified by' + '`git diff`. ' 'If set to "ancestor", the diff compares ' 'against the common ancestor.')) return parser @@ -399,9 +400,9 @@ def _choose_gitdiff_tests(tests, *, use_common_ancestor=False): path = os.path.join('numba', 'tests') if use_common_ancestor: print(f"Git diff by common ancestor") - target = 'origin/main...HEAD' + target = 'origin/release0.56...HEAD' else: - target = 'origin/main..HEAD' + target = 'origin/release0.56..HEAD' gdiff_paths = repo.git.diff(target, path, name_only=True).split() # normalise the paths as they are unix style from repo.git.diff gdiff_paths = [os.path.normpath(x) for x in gdiff_paths]