From 3a23496fcd1863acd5eb8f9e7e33e880869c93ea Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Thu, 30 Apr 2020 15:50:33 +1000 Subject: bisector: Sort by timestamp order when getting base-builder tags. (#3740) --- infra/bisector.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'infra/bisector.py') diff --git a/infra/bisector.py b/infra/bisector.py index 1e762fa06..f2d2d0810 100644 --- a/infra/bisector.py +++ b/infra/bisector.py @@ -105,8 +105,13 @@ def _load_base_builder_repo(): return None result, _, _ = utils.execute([ - gcloud_path, 'container', 'images', 'list-tags', - 'gcr.io/oss-fuzz-base/base-builder', '--format=json' + gcloud_path, + 'container', + 'images', + 'list-tags', + 'gcr.io/oss-fuzz-base/base-builder', + '--format=json', + '--sort-by=timestamp', ], check_result=True) result = json.loads(result) -- cgit v1.2.3