Build: #5 failed
Job: Test Many Linux 2.28 failed
uid mg2 20170525142607 180419 PPr regression: Test case result
The below summarizes the result of the test " uid mg2 20170525142607 180419 PPr regression" in build 5 of Pipeline - Pipeline Main with Casa 6.6.6 test - cvpost - release-6.6.6 - Test Many Linux 2.28.
- Description
- uid mg2 20170525142607 180419 PPr regression
- Test class
- pipeline.infrastructure.utils.regression-tester
- Method
- test_uid___mg2_20170525142607_180419__PPR__regression
- Duration
- 34 mins
- Status
- Failed (Existing Failure)
Error Log
ZeroDivisionError: float division by zero @pytest.mark.fast @pytest.mark.alma def test_uid___mg2_20170525142607_180419__PPR__regression(): """Run ALMA single-dish cal+image regression for restore nobeyama recipe. Dataset: mg2-20170525142607-180419 Expected results version: casa-6.2.0-119-pipeline-2020.2.0.23 """ input_dir = 'pl-regressiontest/mg2-20170525142607-180419' pr = PipelineRegression( input_dir=input_dir, visname=['mg2-20170525142607-180419.ms'], expectedoutput_file=(f'{input_dir}/' + 'mg2-20170525142607-180419_PPR.casa-6.6.1-15-pipeline-2024.0.0.60.results.txt'), output_dir='mg2-20170525142607-180419_PPR') # copy files use restore task into products folder input_products = casa_tools.utils.resolve(f'{input_dir}/products') shutil.copytree(input_products, f'{pr.output_dir}/products') > pr.run(ppr=f'{input_dir}/PPR.xml') pipeline/infrastructure/utils/regression-tester.py:567: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pipeline/infrastructure/utils/regression-tester.py:224: in run self.__compare_results(new_file, default_relative_tolerance) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pipeline.infrastructure.utils.regression-tester.PipelineRegression object at 0x7fc37e21ba90> new_file = 'mg2-20170525142607-180419.ms.NEW.results.txt' relative_tolerance = 1e-07 def __compare_results(self, new_file: str, relative_tolerance: float): """ Compare results between new one loaded from file and old one. Args: new_file : file path of new results relative_tolerance : relative tolerance of output value """ with open(self.expectedoutput_file) as expected_fd, open(new_file) as new_fd: expected_results = expected_fd.readlines() new_results = new_fd.readlines() errors = [] worst_diff = (0, 0) worst_percent_diff = (0, 0) for old, new in zip(expected_results, new_results): try: oldkey, oldval, tol = self.__sanitize_regression_string(old) newkey, newval, _ = self.__sanitize_regression_string(new) except ValueError as e: errorstr = "The results: {0} could not be parsed. Error: {1}".format(new, str(e)) errors.append(errorstr) continue assert oldkey == newkey tolerance = tol if tol else relative_tolerance if newval is not None: LOG.info(f'Comparing {oldval} to {newval} with a rel. tolerance of {tolerance}') if oldval != pytest.approx(newval, rel=tolerance): diff = oldval-newval > percent_diff = (oldval-newval)/oldval * 100 E ZeroDivisionError: float division by zero pipeline/infrastructure/utils/regression-tester.py:270: ZeroDivisionError