turbaszek opened a new pull request #12657:
URL: https://github.com/apache/airflow/pull/12657


   In some cases users may want to suppress some checks. Adding this
   flag will allow them to do this.
   
   I also disable logging to avoid output between lines of check.
   
   Before:
   ```
   root@5d103907dca8:/opt/airflow# airflow upgrade_check -i LegacyUIDeprecated 
-i ConnTypeIsNotNullableRule -i TaskHandlersMovedRule -i VersionCheckRule -i 
MesosExecutorRemovedRule
   
   
======================================================================================================
 STATUS 
======================================================================================================
   
   Remove airflow.AirflowMacroPlugin 
class...................................................................................................................................................................SUCCESS
   Chain between DAG and operator not 
allowed................................................................................................................................................................SUCCESS
   Connection.conn_id is not 
unique..........................................................................................................................................................................SUCCESS
   [2020-11-27 14:09:31,544] {__init__.py:50} INFO - Using executor 
LocalExecutor
   [2020-11-27 14:09:31,546] {dagbag.py:417} INFO - Filling up the DagBag from 
/root
   Ensure users are not using custom metaclasses in custom 
operators.........................................................................................................................................SUCCESS
   Fernet is enabled by 
default..............................................................................................................................................................................SUCCESS
   GCP service account key 
deprecation.......................................................................................................................................................................SUCCESS
   Changes in import paths of hooks, operators, sensors and 
others...........................................................................................................................................SUCCESS
   Logging configuration has been moved to new 
section.......................................................................................................................................................SUCCESS
   Users must set a kubernetes.pod_template_file 
value.......................................................................................................................................................FAIL
   SendGrid email uses old airflow.contrib 
module............................................................................................................................................................SUCCESS
   Jinja Template Variables cannot be 
undefined..............................................................................................................................................................SUCCESS
   Found 1 problem.
   ```
   
   After:
   ```
   root@5d103907dca8:/opt/airflow# airflow upgrade_check -i LegacyUIDeprecated 
-i ConnTypeIsNotNullableRule -i TaskHandlersMovedRule -i VersionCheckRule -i 
MesosExecutorRemovedRule
   
   
======================================================================================================
 STATUS 
======================================================================================================
   
   Remove airflow.AirflowMacroPlugin 
class...................................................................................................................................................................SUCCESS
   Chain between DAG and operator not 
allowed................................................................................................................................................................SUCCESS
   Connection.conn_id is not 
unique..........................................................................................................................................................................SUCCESS
   Ensure users are not using custom metaclasses in custom 
operators.........................................................................................................................................SUCCESS
   Fernet is enabled by 
default..............................................................................................................................................................................SUCCESS
   GCP service account key 
deprecation.......................................................................................................................................................................SUCCESS
   Changes in import paths of hooks, operators, sensors and 
others...........................................................................................................................................SUCCESS
   Logging configuration has been moved to new 
section.......................................................................................................................................................SUCCESS
   Users must set a kubernetes.pod_template_file 
value.......................................................................................................................................................FAIL
   SendGrid email uses old airflow.contrib 
module............................................................................................................................................................SUCCESS
   Jinja Template Variables cannot be 
undefined..............................................................................................................................................................SUCCESS
   Found 1 problem.
   ```
   
   
   ---
   **^ Add meaningful description above**
   
   Read the **[Pull Request 
Guidelines](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#pull-request-guidelines)**
 for more information.
   In case of fundamental code change, Airflow Improvement Proposal 
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals))
 is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party 
License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in 
[UPDATING.md](https://github.com/apache/airflow/blob/master/UPDATING.md).
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to