From ad3b96ecb1ae5016028137bd53f7fe68bc54cd61 Mon Sep 17 00:00:00 2001 From: vladsaveliev Date: Fri, 26 Feb 2021 12:26:01 +1100 Subject: [PATCH 1/2] prod_deploy: print complete batch URL --- ci/ci/ci.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/ci/ci.py b/ci/ci/ci.py index 5426288efcb..7e10d9c5f89 100644 --- a/ci/ci/ci.py +++ b/ci/ci/ci.py @@ -150,7 +150,8 @@ async def prod_deploy(request, unused_userdata): watched_branch.sha = 'HEAD' await watched_branch._start_deploy(request.app['batch_client'], steps) - url = deploy_config.external_url('ci', '/batches') + batch_id = watched_branch.deploy_batch.id + url = deploy_config.external_url('ci', f'/batches/{batch_id}') return web.Response(text=f'{url}\n') From 127237c8e27276fbeec3100fe2792fe81c484200 Mon Sep 17 00:00:00 2001 From: vladsaveliev Date: Fri, 26 Feb 2021 12:56:03 +1100 Subject: [PATCH 2/2] prod_deploy fix unused variable --- ci/ci/ci.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/ci/ci.py b/ci/ci/ci.py index 7e10d9c5f89..175b52a3548 100644 --- a/ci/ci/ci.py +++ b/ci/ci/ci.py @@ -148,7 +148,7 @@ async def prod_deploy(request, unused_userdata): 0, FQBranch.from_short_str('populationgenomics/hail:main'), True ) watched_branch.sha = 'HEAD' - await watched_branch._start_deploy(request.app['batch_client'], steps) + await watched_branch._start_deploy(app['batch_client'], steps) batch_id = watched_branch.deploy_batch.id url = deploy_config.external_url('ci', f'/batches/{batch_id}')