airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bolke de Bruin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-739) test_pickle_info has an error message on travis while pickling
Date Sat, 07 Jan 2017 18:01:58 GMT
Bolke de Bruin created AIRFLOW-739:
--------------------------------------

             Summary: test_pickle_info has an error message on travis while pickling
                 Key: AIRFLOW-739
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-739
             Project: Apache Airflow
          Issue Type: Bug
            Reporter: Bolke de Bruin
            Priority: Critical


On Travis this test logs and error message but doesn't fail the test. This is because:

{code}
    @provide_session
    def pickle_info(self, session=None):
        d = {}
        d['is_picklable'] = True
        try:
            dttm = datetime.now()
            pickled = pickle.dumps(self)
            d['pickle_len'] = len(pickled)
            d['pickling_duration'] = "{}".format(datetime.now() - dttm)
        except Exception as e:
            logging.exception(e)
            d['is_picklable'] = False
            d['stacktrace'] = traceback.format_exc()
        return d
{code}

Logs to error, while no propagation happens and the error is non fatal. Therefore it should
log to debug instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message