-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Allow Airflow UI to create worker pod via Clear > Run #18272
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
Conversation
|
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 Contribution Guide (https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst)
|
|
One of the unit test failed: I want to challenge the value of this test. It doesn't seem to catch anything that would break the I would expect to break a test that has a set of volumes that the webserver deployment should have, and with this PR, extend the test to add the new volume. I don't know enough to write such a test. What do you think about the proposal? Does such test already exist (if so, it didn't fail)? Can I get some pointers on how to write the test I propose? |
|
@kimyen, that test is overly fragile as written. Easy fix though: #18332 I don't think that test exists yet, and I agree it would be a valuable test. The broken test is a reasonable example to follow, just check the default |
|
@jedcunningham I would love your feedback on the test that I added. Other volumes depends on other values, so I limit the scope of my test on default and optional config volumes. I don't have an option to add tags to this PR, but would like to mark it as |
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
|
@kimyen I'd also suggest that you set up the pre-commit hooks, they help catch these static check issues locally 👍. |
|
REopened to rebuild @kimyen -> Next time you can simply rebase + "--force-push-with-lease" if something like that happens (which might be because of various CI issues) |
|
Thanks @potiuk ! The docker image build still failed. But the error is not related to this change: It looks like the fix is in package dependencies for 2.2.0.dev0. |
|
Looks like all tests passed now! |
|
@jedcunningham would you mind reviewing this again? Thank you! |
|
The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease. |
|
(Closing/reopening to rerun CI as it's been a little while) |
|
Awesome work, congrats on your first merged pull request! |
|
@kimyen, congrats on your first commit 🎉! (sorry about the delay in getting this merged) |

Problem:
Clear and Run task instance via UI cause mushroom cloud error.
Repro steps:
Error:
How does this PR fix the problem above:
airflow/airflow/kubernetes/worker_configuration.py
Line 437 in db72074
airflow/chart/templates/scheduler/scheduler-deployment.yaml
Line 141 in daa725b
nameis filled in from the value read in the pod template file.^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.