-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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/21994 liveness probe #22041
Fix/21994 liveness probe #22041
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)
|
chart/Chart.yaml
Outdated
@@ -19,7 +19,7 @@ | |||
--- | |||
apiVersion: v2 | |||
name: airflow | |||
version: 1.5.0-dev | |||
version: 1.5.1-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tihnk this should not be changed. We are voting on 1.5.0 and my bet is that we will issue and rc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we don't need to touch this here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this but I need @ephraimbuddy @jedcunningham @kaxil chiming in :)
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
The mypy static checks are unrelated (and already fixed in |
(and removal of the version change too :)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening this! Can you also add some tests?
chart/values.yaml
Outdated
- sh | ||
- -c | ||
- | | ||
CONNECTION_CHECK_MAX_COUNT=0 /entrypoint python -Wignore -c " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CONNECTION_CHECK_MAX_COUNT=0 /entrypoint python -Wignore -c " | |
CONNECTION_CHECK_MAX_COUNT=0 exec /entrypoint python -Wignore -c " |
This is where the exec should be, and I think we want to keep it so timeoutSeconds
can actually function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep.
chart/values.schema.json
Outdated
@@ -1504,6 +1504,20 @@ | |||
"description": "How often (in seconds) to perform the probe. Minimum value is 1.", | |||
"type": "integer", | |||
"default": 60 | |||
}, | |||
"exec": { | |||
"description": "Custom exec command for livenessProbe", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"description": "Custom exec command for livenessProbe", | |
"description": "Command for livenessProbe", |
I'm also not sure we need to maintain the nesting of exec.command
. I'd rather we flatten it and just have livenessProbe.command
. My 2c, thoughts?
chart/Chart.yaml
Outdated
@@ -19,7 +19,7 @@ | |||
--- | |||
apiVersion: v2 | |||
name: airflow | |||
version: 1.5.0-dev | |||
version: 1.5.1-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we don't need to touch this here.
a752741
to
6c5b226
Compare
@@ -235,6 +236,9 @@ def test_livenessprobe_values_are_configurable(self): | |||
"spec.template.spec.containers[0].livenessProbe.failureThreshold", docs[0] | |||
) | |||
assert 444 == jmespath.search("spec.template.spec.containers[0].livenessProbe.periodSeconds", docs[0]) | |||
assert ["sh", "-c", "echo", "wow such test"] == jmespath.search( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😄
Awesome work, congrats on your first merged pull request! |
Thanks @Wilderone! Congrats on your first commit 🎉 |
This MR resolve two problems:
Related issue #21994
I am not sure about version of this change, so just upgrade patch version.