Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support checking for db path absoluteness on Windows #40069

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

Dev-iL
Copy link
Contributor

@Dev-iL Dev-iL commented Jun 5, 2024

related: #10388


Airflow isn't supported on Windows at the moment. However, various components of Airflow work perfectly fine when given the chance. I have a use case where I'm running a unit test that involve creating a DagBag. When running this on Windows, Airflow exits prematurely due to how absolute db paths are determined. Interestingly, when disabling the check, thus allowing Airflow to "do its thing", the DagBag is created correctly and the test suite passes.

The proposed change adds support for testing path absoluteness on Windows systems.

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@Dev-iL Dev-iL force-pushed the Dev-iL/202406/abs_db_path_win branch 2 times, most recently from 8d2e611 to 8b496e6 Compare June 5, 2024 18:29
airflow/settings.py Outdated Show resolved Hide resolved
@Dev-iL Dev-iL force-pushed the Dev-iL/202406/abs_db_path_win branch 2 times, most recently from f3aaaef to 2ad2d04 Compare June 6, 2024 07:12
@Dev-iL Dev-iL force-pushed the Dev-iL/202406/abs_db_path_win branch 4 times, most recently from c9596e7 to 158c02c Compare June 6, 2024 12:34
airflow/settings.py Outdated Show resolved Hide resolved
@Dev-iL Dev-iL force-pushed the Dev-iL/202406/abs_db_path_win branch 9 times, most recently from d793adb to dee3d97 Compare June 10, 2024 17:27
@Dev-iL Dev-iL force-pushed the Dev-iL/202406/abs_db_path_win branch from dee3d97 to 4ceed80 Compare June 11, 2024 07:16
@Dev-iL Dev-iL force-pushed the Dev-iL/202406/abs_db_path_win branch from 4ceed80 to 8e5c85f Compare June 12, 2024 05:48
@potiuk potiuk merged commit c98cd54 into apache:main Jun 12, 2024
51 checks passed
@ephraimbuddy ephraimbuddy added this to the Airflow 2.10.0 milestone Jul 1, 2024
@ephraimbuddy ephraimbuddy added the type:improvement Changelog: Improvements label Jul 1, 2024
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:improvement Changelog: Improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants