jedcunningham commented on pull request #18384:
URL: https://github.com/apache/airflow/pull/18384#issuecomment-923609661


   PodGenerator, yeah. Some tests in `test_pod_generator.py` use `sys.path[0]` 
and expect it to have `cwd`:
   
   
https://github.com/apache/airflow/blob/c686241f4ceb62d52e9bfa607822e4b7a3c76222/tests/kubernetes/test_pod_generator.py#L164
   
   However a couple migrations parse the DAGs and this was leaving the zip in 
spot 0 (in fact, it would be `[zip, zip, cwd, ...]`). You could force the issue 
every time using `--with-db-init`. Granted, the tests probably shouldn't rely 
on `sys.path[0]` being unmodified either, but this PR at least fixed the real 
issue.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to