You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/06/14 07:29:19 UTC

[GitHub] [airflow] ashb opened a new pull request #16397: Don't run tests for deprecated method on DAG class

ashb opened a new pull request #16397:
URL: https://github.com/apache/airflow/pull/16397


   And since the deprecated method uses a decorator, we need stacklevel of three for the warning to show up in the right place.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk commented on pull request #16397: Don't run tests for deprecated method on DAG class

Posted by GitBox <gi...@apache.org>.
potiuk commented on pull request #16397:
URL: https://github.com/apache/airflow/pull/16397#issuecomment-859783984






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ashb commented on pull request #16397: Don't run tests for deprecated method on DAG class

Posted by GitBox <gi...@apache.org>.
ashb commented on pull request #16397:
URL: https://github.com/apache/airflow/pull/16397#issuecomment-859929720


   In the general terms you are right, but in this case the function is very simple:
   
   ```python
           dag_ids = dag_ids or [self.dag_id]
           query = session.query(DagRun).filter(DagRun.dag_id.in_(dag_ids))
           if start_date:
               query = query.filter(DagRun.execution_date >= start_date)
           if end_date:
               query = query.filter(DagRun.execution_date <= end_date)
           query.update({DagRun.state: state}, synchronize_session='fetch')
   ```
   
   I've been on a bit of a kick to remove warnings from the test suite tonight. I could have just captured the deprecation warning for this test in hindsight. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] github-actions[bot] commented on pull request #16397: Don't run tests for deprecated method on DAG class

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #16397:
URL: https://github.com/apache/airflow/pull/16397#issuecomment-859769219


   The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ashb merged pull request #16397: Don't run tests for deprecated method on DAG class

Posted by GitBox <gi...@apache.org>.
ashb merged pull request #16397:
URL: https://github.com/apache/airflow/pull/16397


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org