diff --git a/client/driver/fabfile.py b/client/driver/fabfile.py index 4dde052..06e264a 100644 --- a/client/driver/fabfile.py +++ b/client/driver/fabfile.py @@ -1068,7 +1068,7 @@ def integration_tests(): # periodic tasks haven't ran, lhs result returns. LOG.info('Test no pipeline data, LHS returned') - upload_result(result_dir='./integrationTests/data/', prefix='0__', + upload_result(result_dir='./integrationTests/data/', prefix='1__', upload_code='ottertuneTestTuningGPR') response = get_result(upload_code='ottertuneTestTuningGPR') assert response['status'] == 'lhs' @@ -1119,3 +1119,8 @@ def integration_tests(): average += gain / first_n elif i > total_n - last_n + 2: assert gain > average + + LOG.info("\n\nIntegration Tests: PASSED!!\n") + + # Test task status UI + task_status_ui_test() diff --git a/server/website/website/views.py b/server/website/website/views.py index b0c6b7f..2242283 100644 --- a/server/website/website/views.py +++ b/server/website/website/views.py @@ -1784,7 +1784,7 @@ def alt_create_or_edit_session(request): @csrf_exempt def pipeline_data_ready(request): # pylint: disable=unused-argument LOG.debug("Latest pipeline run: %s", PipelineRun.objects.get_latest()) - newest_result = Result.objects.filter().order_by('-pk')[0] + newest_result = Result.objects.order_by('-pk')[0] pipeline_data = PipelineData.objects.filter(workload=newest_result.workload).order_by('-pk') if pipeline_data.exists() and pipeline_data[0].pipeline_run.end_time is not None: response = "Pipeline data ready: True"