Skip to content

[WIP]: HEALTHCHECK-based container readiness test#80

Open
JayH5 wants to merge 1 commit into
developfrom
healthcheck-readiness
Open

[WIP]: HEALTHCHECK-based container readiness test#80
JayH5 wants to merge 1 commit into
developfrom
healthcheck-readiness

Conversation

@JayH5

@JayH5 JayH5 commented Oct 13, 2018

Copy link
Copy Markdown
Contributor

No description provided.

@codecov

codecov Bot commented Oct 13, 2018

Copy link
Copy Markdown

Codecov Report

Merging #80 into develop will decrease coverage by 0.3%.
The diff coverage is 86.88%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #80      +/-   ##
===========================================
- Coverage      100%   99.69%   -0.31%     
===========================================
  Files           26       29       +3     
  Lines         2565     2612      +47     
  Branches       162      167       +5     
===========================================
+ Hits          2565     2604      +39     
- Misses           0        4       +4     
- Partials         0        4       +4
Impacted Files Coverage Δ
seaworthy/logs.py 100% <100%> (ø) ⬆️
seaworthy/_streams.py 100% <100%> (ø)
seaworthy/tests-core/test_events.py 100% <100%> (ø)
seaworthy/events.py 61.9% <61.9%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c06669d...32e02c7. Read the comment docs.

Comment thread seaworthy/_streams.py
# Close the stream's underlying response object (if it has one) to
# avoid potential socket leaks.
if hasattr(stream, '_response'):
stream._response.close()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shouldn't we close the stream here?

Comment thread seaworthy/events.py
except TimeoutError:
raise TimeoutError(
"Timed out waiting for 'health_status' event with status '{}'"
.format(status))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should pass the timeout message to stream_timeout instead of catching and throwing? That would reduce boilerplate, but also add the timeout machinery to the stack trace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants