casra-developers commented on PR #29935:
URL: https://github.com/apache/airflow/pull/29935#issuecomment-1478169447

   Ok... I got it to at least run the tests, but the issue is that there are 
just too many instances where things are needed that don't exist on Windows. Be 
it gunicorn or pytest markers that require timeouts. My current command looks 
like this:
   ```
   pytest --verbosity=0 --strict-markers --maxfail=50 --color=yes 
--junitxml=/files/test_result-Always-sqlite.xml 
--output=/files/warnings-Always-sqlite.txt --disable-warnings -rfEX 
--with-db-init --ignore tests/system/providers --ignore tests/providers 
--ignore tests/integration/providers --ignore tests/charts tests --ignore 
tests/utils/test_serve_logs.py --ignore tests/utils/test_dataform.py --ignore 
tests/kubernetes --ignore tests/integration/cli/commands/test_celery_command.py 
--ignore tests/integration/api/auth/backend/test_kerberos_auth.py --ignore 
tests/api_connexion/endpoints/test_extra_link_endpoint.py --ignore 
tests/cli/commands/test_internal_api_command.py --ignore 
tests/cli/commands/test_kerberos_command.py --ignore 
tests/cli/commands/test_scheduler_command.py --ignore 
tests/cli/commands/test_task_command.py --ignore tests/sensors/test_python.py 
--ignore tests/executors/test_kubernetes_executor.py --ignore 
tests/executors/test_dask_executor.py --ignore tests/executors/tes
 t_celery_executor.py --ignore tests/dag_processing/test_manager.py --ignore 
tests/core/test_impersonation_tests.py --ignore tests/operators/test_python.py 
--ignore tests/decorators/test_python.py --ignore 
tests/jobs/test_local_task_job.py --ignore 
tests/cli/commands/test_webserver_command.py
   ```
   I had to exclude the following packages in setup.py:
   - eralchemy2
   - moto[cloudformation, glue]
   - pytest-timeouts
   
   The following additional installs where required to still run the tests:
   - celery
   - psycopg2
   - boto3
   - distributed
   - statsd
   - sentry_sdk
   
   For me there are two options on the table:
   1. We identify some really basic core tests that should succeed and just 
only run them (I don't know how exactly to include rather than exclude).
   2. We identify the stuff that is not working on Windows and find 
alternatives if possible (e.g. waitress instead of gunicorn as a webserver)
   
   We have been using Airflow successfully for two years now with Windows 
workers, so it can work in a limited sense. It is a very good platform and 
helped us a great deal with organizing our internal workflows. So it would be 
awesome if we could find a way to make at least this limited support possible 
without the need to apply manual fixes to the module after an update.
   
   What are your thoughts?
   


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