ephraimbuddy opened a new pull request #14344:
URL: https://github.com/apache/airflow/pull/14344


   Closes: #14340
   Apart from the above issue fixed, I also fixed an issue that didn't allow me 
run upgrade_check in breeze. When I ran it, I got error:
   ```
   Traceback (most recent call last):
     File "/usr/local/bin/airflow", line 7, in <module>
       exec(compile(f.read(), __file__, 'exec'))
     File "/opt/airflow/airflow/bin/airflow", line 37, in <module>
       args.func(args)
     File "/opt/airflow/airflow/upgrade/checker.py", line 118, in run
       all_problems = check_upgrade(formatter, rules)
     File "/opt/airflow/airflow/upgrade/checker.py", line 38, in check_upgrade
       rule_status = RuleStatus.from_rule(rule)
     File "/opt/airflow/airflow/upgrade/problem.py", line 44, in from_rule
       result = rule.check()
     File 
"/opt/airflow/airflow/upgrade/rules/chain_between_dag_and_operator_not_allowed_rule.py",
 line 72, in check
       problems.extend(self._check_file(file_path))
     File 
"/opt/airflow/airflow/upgrade/rules/chain_between_dag_and_operator_not_allowed_rule.py",
 line 40, in _check_file
       lines = file_pointer.readlines()
     File "/usr/local/lib/python3.7/codecs.py", line 322, in decode
       (result, consumed) = self._buffer_decode(data, self.errors, final)
   UnicodeDecodeError: 'utf-8' codec can't decode byte 0x94 in position 22: 
invalid start byte
   ```
   I figured we can ignore the read error since it works fine outside breeze.
   
   ---
   **^ 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