-
Notifications
You must be signed in to change notification settings - Fork 642
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
Wait not working #173
Comments
Theres indeed a bug in the documentation. The idea is, that it wait until the return code is in the range [200...399] I don't know why it continues with 405, though. The time watch is currently also implemented as an independent check (not as a timeout). Actually the wait check never breaks the build. But this could it could be a good idea to let it croak on an timeout. Eg. the URL check could be refined to take the expected HTTP status code, the HTTP method to use (currently its always What do you think ? |
Clarified that 'wait' is not meant to abort the build, so not to abort when a 'timeout' for an URL is reached. #173
I think wait check should brake the build on timeout. I think most useful combination would be:
Reason for this is that imho it is always better to build have an unambiguous result - either continue (if check URL confirmed container started) or fail (on timeout). |
Yes, I was also under the impression that this is pretty much how it worked. For a while all my observations didn't even contradict my idea about this feature. And as a result I've stood in front of a small audience explaining it like this. We better start covering my <behind>... |
So: fail if unexpected response code, or time expires with no response. In other words: only proceed if expected response code within the configured time. A while ago I thought that I cared about other response codes than 200, and I would then also have liked a regular expression to match the console output. But I've grown fond of the HTTP 200. |
Do you think you'll have a chance to make this work in proper conjunction between the web service call and the timeout, it's still a concern in our build? |
As I'm now back from some conferencing, I will try to tackle this for the next release which I hope can get out next week. |
In case there are URL or Log checks, <time> now works as a timeout instead of merely waiting until the end. Fixes #173
I fixed that now in that 'will be available in 0.12.0 |
Verified my use case:
|
Squash all RUN commands into one layer
As per the manual:
I observe that the wait does not work correctly:
HTTP/1.1 405 Method Not Allowed
)I think this is a regression since earlier 0.11 versions.
The text was updated successfully, but these errors were encountered: