From 9ad10e58e194004f88863576004bf2e6ca3e20d0 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Mon, 3 Dec 2018 10:59:58 +0000 Subject: [PATCH 1/2] Fixing problem with line breaks not printed in benchmarks log, and added a benchmark error, so the error is displayed in the CI --- asv_bench/benchmarks/algorithms.py | 2 +- azure-pipelines.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index 1ab88dc9f9e6d..7062d1496cff7 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -1,7 +1,7 @@ import warnings from importlib import import_module -import numpy as np +#import numpy as np import pandas as pd from pandas.util import testing as tm diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a58f82ec6de49..409b1ac8c9df3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -114,7 +114,7 @@ jobs: ASV_OUTPUT="$(asv dev)" if [[ $(echo "$ASV_OUTPUT" | grep "failed") ]]; then echo "##vso[task.logissue type=error]Benchmarks run with errors" - echo $ASV_OUTPUT + echo "$ASV_OUTPUT" exit 1 else echo "Benchmarks run without errors" From 9eae3033b8b49646df7bac38b3335e070e09a9ae Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Mon, 3 Dec 2018 15:24:36 +0000 Subject: [PATCH 2/2] Removing breaking code used to see the benchmark log exceptions --- asv_bench/benchmarks/algorithms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index 7062d1496cff7..1ab88dc9f9e6d 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -1,7 +1,7 @@ import warnings from importlib import import_module -#import numpy as np +import numpy as np import pandas as pd from pandas.util import testing as tm