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: respect timeout_ready when generating startup probe #5560

Merged
merged 9 commits into from Dec 30, 2022

Conversation

alaeddine-13
Copy link
Contributor

fix: respect timeout_ready when generating startup probe configurations

@github-actions github-actions bot added size/S area/core This issue/PR affects the core codebase component/resource labels Dec 28, 2022
@codecov
Copy link

codecov bot commented Dec 28, 2022

Codecov Report

Merging #5560 (98ed781) into master (deb49a0) will increase coverage by 1.16%.
The diff coverage is 71.42%.

@@            Coverage Diff             @@
##           master    #5560      +/-   ##
==========================================
+ Coverage   86.31%   87.47%   +1.16%     
==========================================
  Files         123      123              
  Lines        9833     9840       +7     
==========================================
+ Hits         8487     8608     +121     
+ Misses       1346     1232     -114     
Flag Coverage Δ
jina 87.47% <71.42%> (+1.16%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
jina/orchestrate/deployments/config/k8s.py 100.00% <ø> (+0.61%) ⬆️
...deployments/config/k8slib/kubernetes_deployment.py 65.33% <71.42%> (+0.62%) ⬆️
jina/jaml/__init__.py 95.00% <0.00%> (+0.35%) ⬆️
jina/orchestrate/deployments/__init__.py 90.62% <0.00%> (+0.55%) ⬆️
jina/helper.py 80.93% <0.00%> (+0.71%) ⬆️
jina/serve/runtimes/worker/request_handling.py 96.17% <0.00%> (+0.85%) ⬆️
jina/serve/gateway.py 95.23% <0.00%> (+1.58%) ⬆️
jina/jaml/helper.py 83.94% <0.00%> (+2.18%) ⬆️
jina/parsers/helper.py 56.39% <0.00%> (+2.32%) ⬆️
... and 7 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -77,6 +84,12 @@ def get_template_yamls(
else:
protocols = protocol

if timeout_ready == -1:
raise ValueError(
Copy link
Member

Choose a reason for hiding this comment

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

I would perhaps maybe set some default value on our end?

@JoanFM
Copy link
Member

JoanFM commented Dec 28, 2022

if timeout ready is -1 lets rrmove startupProbe

Copy link
Member

@JoanFM JoanFM left a comment

Choose a reason for hiding this comment

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

please add a test

@github-actions github-actions bot added size/M area/testing This issue/PR affects testing labels Dec 29, 2022
@alaeddine-13 alaeddine-13 marked this pull request as ready for review December 29, 2022 13:55
JoanFM
JoanFM previously approved these changes Dec 29, 2022
@JoanFM JoanFM merged commit 3a66c8b into master Dec 30, 2022
@JoanFM JoanFM deleted the fix-startup-probe-respect-timeout-ready branch December 30, 2022 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core This issue/PR affects the core codebase area/testing This issue/PR affects testing component/resource size/M size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants