Skip to content

Comments

Correctly import isabs from os.path#45178

Merged
potiuk merged 1 commit intoapache:mainfrom
potiuk:fix-isabs-import
Dec 23, 2024
Merged

Correctly import isabs from os.path#45178
potiuk merged 1 commit intoapache:mainfrom
potiuk:fix-isabs-import

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Dec 23, 2024

The #45139 imported isabs from "airflow.www.app" - but isabs has been added there fairly recently and it is anyhow stdlib's os.path isabs - so it should be imported from there.

This breaks fab 1.5.2 backport compatibility tests, so we need to cherry-pick it there alongside #45139


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

The apache#45139 imported isabs from "airflow.www.app" - but isabs has
been added there fairly recently and it is anyhow stdlib's os.path
isabs - so it should be imported from there.

This breaks fab 1.5.2 backport compatibility tests, so we need to
cherry-pick it there alongside apache#45139
@potiuk
Copy link
Member Author

potiuk commented Dec 23, 2024

cc: @shubhamraj-git -> small thing I found out when backporting - isabs should be imported from os.path :)

@potiuk potiuk requested a review from gopidesupavan December 23, 2024 14:08
@potiuk
Copy link
Member Author

potiuk commented Dec 23, 2024

I am so glad we have compatibility tests :)

@potiuk potiuk requested a review from eladkal December 23, 2024 14:09
@shubhamraj-git
Copy link
Contributor

@potiuk Ohh yeah! Sorry for this.
Just saw, need to be careful while choosing the 'quick fix' in VS code. :)

Copy link
Contributor

@shubhamraj-git shubhamraj-git left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, nice catch.
Thanks for the fix.

@potiuk
Copy link
Member Author

potiuk commented Dec 23, 2024

+1, nice catch.

It were the tests that caught it - not me :)

@potiuk potiuk merged commit 7002966 into apache:main Dec 23, 2024
63 checks passed
@potiuk potiuk deleted the fix-isabs-import branch December 23, 2024 14:24
potiuk added a commit to potiuk/airflow that referenced this pull request Dec 23, 2024
The apache#45139 imported isabs from "airflow.www.app" - but isabs has
been added there fairly recently and it is anyhow stdlib's os.path
isabs - so it should be imported from there.

This breaks fab 1.5.2 backport compatibility tests, so we need to
cherry-pick it there alongside apache#45139

(cherry picked from commit 7002966)
potiuk added a commit that referenced this pull request Dec 23, 2024
The #45139 imported isabs from "airflow.www.app" - but isabs has
been added there fairly recently and it is anyhow stdlib's os.path
isabs - so it should be imported from there.

This breaks fab 1.5.2 backport compatibility tests, so we need to
cherry-pick it there alongside #45139

(cherry picked from commit 7002966)
potiuk added a commit that referenced this pull request Dec 24, 2024
The #45139 imported isabs from "airflow.www.app" - but isabs has
been added there fairly recently and it is anyhow stdlib's os.path
isabs - so it should be imported from there.

This breaks fab 1.5.2 backport compatibility tests, so we need to
cherry-pick it there alongside #45139

(cherry picked from commit 7002966)
got686-yandex pushed a commit to got686-yandex/airflow that referenced this pull request Jan 30, 2025
The apache#45139 imported isabs from "airflow.www.app" - but isabs has
been added there fairly recently and it is anyhow stdlib's os.path
isabs - so it should be imported from there.

This breaks fab 1.5.2 backport compatibility tests, so we need to
cherry-pick it there alongside apache#45139
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants