From 45772b961f245501c01a1306ffe024a9042283f1 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 13 Dec 2016 15:21:04 -0800 Subject: [PATCH] Add private fork CI support to ansible-test. --- test/runner/lib/changes.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/runner/lib/changes.py b/test/runner/lib/changes.py index 032753bbda6..04205d19302 100644 --- a/test/runner/lib/changes.py +++ b/test/runner/lib/changes.py @@ -10,6 +10,7 @@ from lib.util import ( SubprocessError, MissingEnvironmentVariable, CommonConfig, + display, ) from lib.http import ( @@ -97,9 +98,13 @@ class ShippableChanges(object): @staticmethod def get_last_successful_commit(merge_runs): """ - :type merge_runs: list[dict] + :type merge_runs: dict | list[dict] :rtype: str """ + if 'id' in merge_runs and merge_runs['id'] == 4004: + display.warning('Unable to find project. Cannot determine changes. All tests will be executed.') + return None + merge_runs = sorted(merge_runs, key=lambda r: r['createdAt']) known_commits = set() last_successful_commit = None