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

Fix broken/renamed internal API method #41070

Merged
merged 2 commits into from
Jul 27, 2024

Conversation

jscheffl
Copy link
Contributor

While rebasing I realized that one mapped method in internal API was renamed and broke the internal API.
This PR fixes back to the correct name.

@potiuk How could this happen if internal API is used in CI tests? I thought this is enabled now? Do we need another safety-net?
To prevent regression I added a pytest to check that method-map can be built, means this will fail if any method is moving-away

@jscheffl jscheffl added this to the Airflow 2.10.0 milestone Jul 27, 2024
@potiuk
Copy link
Member

potiuk commented Jul 27, 2024

Yeah. I also found it and fixed in #41067 - so yeah. That's exactly what will not happen when we run the tests :D

@jscheffl jscheffl added the type:bug-fix Changelog: Bug Fixes label Jul 27, 2024
@potiuk
Copy link
Member

potiuk commented Jul 27, 2024

And yeah. By implementing the test you already implemented This one

@jscheffl
Copy link
Contributor Author

And yeah. By implementing the test you already implemented This one

I would say the pytest is 50% of it. Still you could add the decorator and miss listing the method in the method-map. Then the test will not fail.

@jscheffl jscheffl merged commit bf01953 into apache:main Jul 27, 2024
48 checks passed
@potiuk
Copy link
Member

potiuk commented Jul 27, 2024

Agreed :)

@jedcunningham jedcunningham added changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) AIP-44 Airflow Internal API and removed type:bug-fix Changelog: Bug Fixes labels Aug 9, 2024
molcay pushed a commit to VladaZakharova/airflow that referenced this pull request Aug 19, 2024
* Fix broken/renamed internal API method

* Add pytest to check method_map can be created
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AIP-44 Airflow Internal API changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants