You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "menghot (via GitHub)" <gi...@apache.org> on 2025/11/04 16:20:02 UTC
[PR] Fixed provider FAB - duplicated SQLAlchemy sessions caused transactions fail to close (#57065) (#57534) (#57470) [airflow]
menghot opened a new pull request, #57815:
URL: https://github.com/apache/airflow/pull/57815
related: #57065 #57534 #57470
FAB duplicated SQLAlchemy db sessions were created cause one of session unable to close
duplicated session will be called when login
1. find user.
2. update web login session
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix provider FAB - duplicated SQLAlchemy sessions caused transactions fail to close (#57065) (#57534) (#57470) [airflow]
Posted by "vincbeck (via GitHub)" <gi...@apache.org>.
vincbeck commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3493222137
> > @potiuk @menghot the tests are still failing :/
>
> I am working on it, trying to resolve them. But that's not easy so if anyone (you?) want to help as well, you're welcome :)
I could not figure it out :/ I might give it another shot another day but if someones loves puzzle, this is a good one
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix provider FAB - duplicated SQLAlchemy sessions caused transactions fail to close (#57065) (#57534) (#57470) [airflow]
Posted by "pdellarciprete (via GitHub)" <gi...@apache.org>.
pdellarciprete commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3492209604
@potiuk @menghot the tests are still failing :/
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix duplicated SQLAlchemy sessions caused transactions fail to close [airflow]
Posted by "menghot (via GitHub)" <gi...@apache.org>.
menghot commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3502907471
> > The is the kind of issues we had when @potiuk and I worked on upgrading to fab5. It looks similar. @potiuk if you have some time to look at these tests, that'd be awesome
>
> Any time I have a free time - yes :)
Hi @potiuk @vincbeck , I'm running unit tests. Hope everything goes well!!! ^_^
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix provider FAB - duplicated SQLAlchemy sessions caused transactions fail to close (#57065) (#57534) (#57470) [airflow]
Posted by "menghot (via GitHub)" <gi...@apache.org>.
menghot commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3494160835
> > > @potiuk @menghot the tests are still failing :/
> >
> >
> > I am working on it, trying to resolve them. But that's not easy so if anyone (you?) want to help as well, you're welcome :)
>
> I could not figure it out :/ I might give it another shot another day but if someone loves puzzle, this is a good one
@vincbeck , Hi Vincbeck, Thank you for your excellent work on airflow. I like Airflow. I very busy working on our release, and just glanced at the failing unit tests; it seems some of them don't support parallel execution, If the unit tests still fail, I can try to fix them this weekend.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix provider FAB - duplicated SQLAlchemy sessions caused transactions fail to close (#57065) (#57534) (#57470) [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3487534705
Rebased .. we had two cross-merged PRs that broke main
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix duplicated SQLAlchemy sessions caused transactions fail to close [airflow]
Posted by "vincbeck (via GitHub)" <gi...@apache.org>.
vincbeck commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3505514126
I confirm, the failures happen in main, merging
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix duplicated SQLAlchemy sessions caused transactions fail to close [airflow]
Posted by "menghot (via GitHub)" <gi...@apache.org>.
menghot commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3506417304
> > > The is the kind of issues we had when @potiuk and I worked on upgrading to fab5. It looks similar. @potiuk if you have some time to look at these tests, that'd be awesome
> >
> >
> > @potiuk @vincbeck The unit tests is fixed . I removed "get_application_builder" from providers/fab/src/airflow/providers/fab/auth_manager/api_fastapi/routes/login.py, which may be causing the app builder to initialize twice. Please correct me if I'm wrong, as this is my first PR to Airflow and also my first PR on GitHub. Thank you.
>
> Nice !!! You have some super powers man, I'd love to see you contribute more to Airflow :D I spent hours trying to fix them with no success. Really nice job! I am approving, another test is failing though but it looks unrelated to your PR, probably an issue on main. I am no longer available for the next 2 weeks but I am sure others will carry on and review your PR :) Again, very good job!
Thank you. It's my honor. I hope I can contribute more to Airflow , My Arflow development env is ready ^_^
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix duplicated SQLAlchemy sessions caused transactions fail to close [airflow]
Posted by "vincbeck (via GitHub)" <gi...@apache.org>.
vincbeck commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3505512731
> > The is the kind of issues we had when @potiuk and I worked on upgrading to fab5. It looks similar. @potiuk if you have some time to look at these tests, that'd be awesome
>
> @potiuk @vincbeck The unit tests is fixed . I removed "get_application_builder" from providers/fab/src/airflow/providers/fab/auth_manager/api_fastapi/routes/login.py, which may be causing the app builder to initialize twice. Please correct me if I'm wrong, as this is my first PR to Airflow and also my first PR on GitHub. Thank you.
Nice !!! You have some super powers man, I'd love to see you contribute more to Airflow :D I spent hours trying to fix them with no success. Really nice job! I am approving, another test is failing though but it looks unrelated to your PR, probably an issue on main. I am no longer available for the next 2 weeks but I am sure others will carry on and review your PR :) Again, very good job!
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix duplicated SQLAlchemy sessions caused transactions fail to close [airflow]
Posted by "menghot (via GitHub)" <gi...@apache.org>.
menghot commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3516475995
> > HEllo @menghot -> we had to revert this one in #58097 because our "Canary" tests started to fail in PROD build tests - and we had no time to investigate it. I propose that you redo this PR ping me, and we add "all versions" and "full tests needed" label that will force running complete set of tests on it and then you should be able to investigatge and fix it without those side effects.
>
> Hi @potiuk , yes, "get_application_builder" can't remove from login.py. it need to create sqlarchemy db context for the create_token api. let me do more testing and create new PR
Hi @potiuk, I has submit a new PR #58196 , Please check
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix provider FAB - duplicated SQLAlchemy sessions caused transactions fail to close (#57065) (#57534) (#57470) [airflow]
Posted by "vincbeck (via GitHub)" <gi...@apache.org>.
vincbeck commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3492306000
> @potiuk @menghot the tests are still failing :/
I am working on it, trying to resolve them. But that's not easy so if anyone (you?) want toe help as well, you're welcome :)
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix duplicated SQLAlchemy sessions caused transactions fail to close [airflow]
Posted by "vincbeck (via GitHub)" <gi...@apache.org>.
vincbeck commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3498473199
The is the kind of issues we had when @potiuk and I worked on upgrading to fab5. It looks similar. @potiuk if you have some time to look at these tests, that'd be awesome
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix duplicated SQLAlchemy sessions caused transactions fail to close [airflow]
Posted by "menghot (via GitHub)" <gi...@apache.org>.
menghot commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3505369681
> The is the kind of issues we had when @potiuk and I worked on upgrading to fab5. It looks similar. @potiuk if you have some time to look at these tests, that'd be awesome
@potiuk @vincbeck
The unit tests is fixed .
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fixed provider FAB - duplicated SQLAlchemy sessions caused transactions fail to close (#57065) (#57534) (#57470) [airflow]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3486851072
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
Here are some useful points:
- Pay attention to the quality of your code (ruff, mypy and type annotations). Our [prek-hooks]( https://github.com/apache/airflow/blob/main/contributing-docs/08_static_code_checks.rst#prerequisites-for-prek-hooks) will help you with that.
- In case of a new feature add useful documentation (in docstrings or in `docs/` directory). Adding a new operator? Check this short [guide](https://github.com/apache/airflow/blob/main/airflow-core/docs/howto/custom-operator.rst) Consider adding an example DAG that shows how users should use it.
- Consider using [Breeze environment](https://github.com/apache/airflow/blob/main/dev/breeze/doc/README.rst) for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
- Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
- Please follow [ASF Code of Conduct](https://www.apache.org/foundation/policies/conduct) for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
- Be sure to read the [Airflow Coding style]( https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#coding-style-and-best-practices).
- Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
Apache Airflow is a community-driven project and together we are making it better 🚀.
In case of doubts contact the developers at:
Mailing List: dev@airflow.apache.org
Slack: https://s.apache.org/airflow-slack
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix provider FAB - duplicated SQLAlchemy sessions caused transactions fail to close (#57065) (#57534) (#57470) [airflow]
Posted by "vincbeck (via GitHub)" <gi...@apache.org>.
vincbeck commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3497531889
> > > > @potiuk @menghot the tests are still failing :/
> > >
> > >
> > > I am working on it, trying to resolve them. But that's not easy so if anyone (you?) want to help as well, you're welcome :)
> >
> >
> > I could not figure it out :/ I might give it another shot another day but if someone loves puzzle, this is a good one
>
> @vincbeck , Hi Vincbeck, Thank you for your excellent work on airflow. I like Airflow. I very busy working on our release, and just glanced at the failing unit tests; it seems some of them don't support parallel execution, If the unit tests still fail, I can try to fix them this weekend.
Even if they are run individually they fail so I do not think this is the issue, but it could have been :) Thanks for sharing
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix duplicated SQLAlchemy sessions caused transactions fail to close [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3506603190
> Thank you. It's my honor. I hope I can contribute more to Airflow , My Arflow development env is ready ^_^
:heart:
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix duplicated SQLAlchemy sessions caused transactions fail to close [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3508409255
HEllo @menghot -> we had to revert this one in #58097 because our "Canary" tests started to fail in PROD build tests - and we had no time to investigate it. I propose that you redo this PR ping me, and we add "all versions" and "full tests needed" label that will force running complete set of tests on it and then you should be able to investigatge and fix it without those side effects.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix duplicated SQLAlchemy sessions caused transactions fail to close [airflow]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3505514358
Awesome work, congrats on your first merged pull request! You are invited to check our [Issue Tracker](https://github.com/apache/airflow/issues) for additional contributions.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix duplicated SQLAlchemy sessions caused transactions fail to close [airflow]
Posted by "vincbeck (via GitHub)" <gi...@apache.org>.
vincbeck merged PR #57815:
URL: https://github.com/apache/airflow/pull/57815
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix duplicated SQLAlchemy sessions caused transactions fail to close [airflow]
Posted by "menghot (via GitHub)" <gi...@apache.org>.
menghot commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3510454007
> HEllo @menghot -> we had to revert this one in #58097 because our "Canary" tests started to fail in PROD build tests - and we had no time to investigate it. I propose that you redo this PR ping me, and we add "all versions" and "full tests needed" label that will force running complete set of tests on it and then you should be able to investigatge and fix it without those side effects.
Hi @potiuk , yes, "get_application_builder" can't remove from login.py. it need to create sqlarchemy db context for the create_token api. let me do more testing and create new PR
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix duplicated SQLAlchemy sessions caused transactions fail to close [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #57815:
URL: https://github.com/apache/airflow/pull/57815#issuecomment-3498610820
> The is the kind of issues we had when @potiuk and I worked on upgrading to fab5. It looks similar. @potiuk if you have some time to look at these tests, that'd be awesome
Any time I have a free time - yes :)
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org