Build: #4 failed

Job: Test Many Linux 2.28 failed

Stages & jobs

  1. Default Stage

uid mg2 20170525142607 180419 procedure hsdn calimage regression: Test case result

The below summarizes the result of the test " uid mg2 20170525142607 180419 procedure hsdn calimage regression" in build 4 of Pipeline - Pipeline Main with Casa 6.6.6 test - cvpost - release-6.6.6 - Test Many Linux 2.28. View test case history
Description
uid mg2 20170525142607 180419 procedure hsdn calimage regression
Test class
pipeline.infrastructure.utils.regression-tester
Method
test_uid___mg2_20170525142607_180419__procedure_hsdn_calimage__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__procedure_hsdn_calimage__regression():
        """Run ALMA single-dish cal+image regression for standard nobeyama recipe.
    
        Recipe name:                procedure_hsdn_calimage
        Dataset:                    mg2-20170525142607-180419
        Expected results version:   casa-6.2.0-119-pipeline-2020.2.0.23
        """
        pr = PipelineRegression(
            recipe='procedure_hsdn_calimage.xml', input_dir='pl-regressiontest/mg2-20170525142607-180419',
            visname=['mg2-20170525142607-180419.ms'],
            expectedoutput_file=('pl-regressiontest/mg2-20170525142607-180419/' +
                                 'mg2-20170525142607-180419.casa-6.6.1-15-pipeline-2024.0.0.60.results.txt'))
>       pr.run()

pipeline/infrastructure/utils/regression-tester.py:543: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
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 0x7fec5b23ff10>
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