-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Specifying a timeout option seems to be ignored by the runner #496
Copy link
Copy link
Closed
Description
Describe the bug
Specifying a timeout option of 5 seconds doesn't seem to be applied when initializing a service or a container in an Actions workflow.
To Reproduce
Steps to reproduce the behavior:
- Create an Actions workflow that initializes either a service or a container with the following options for health check with a 5-second timeout. Here's an example:
services:
redis:
image: redis:alpine
options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 6379:6379- Trigger a workflow.
- Observe the workflow run logs will show (see below) an incremental backoff, just not 5 seconds apart for timeout as evidence in logs below.
Expected behavior
A clear and concise description of what you expected to happen.
I expected to see the health check performed in 5 second increments rather than a lower count of 1-4 seconds.
Runner Version and Platform
- Latest in production as of May 20, 2020.
- OS of the machine running the runner? Linux
What's not working?
Please include error messages and screenshots.
See below. ✌️
Job Log Output
https://github.com/francisfuzz/molecula/runs/694847523?check_suite_focus=true#step:2:39
logs_2.zip
/usr/bin/docker create --name 19f22998701d46b9948ff54476cadd73_redisalpine_f9b603 --label be76db --network github_network_1977d79f05bb41db9d15cb4ed4c9de5f --network-alias redis -p 6379:6379 --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5 -e GITHUB_ACTIONS=true -e CI=true redis:alpine
84c14711d4e97bf675dfb0555aff4d62864fd005d18059bc2e5132abdf83641c
/usr/bin/docker start 84c14711d4e97bf675dfb0555aff4d62864fd005d18059bc2e5132abdf83641c
84c14711d4e97bf675dfb0555aff4d62864fd005d18059bc2e5132abdf83641c
/usr/bin/docker ps --all --filter id=84c14711d4e97bf675dfb0555aff4d62864fd005d18059bc2e5132abdf83641c --filter status=running --no-trunc --format "{{.ID}} {{.Status}}"
84c14711d4e97bf675dfb0555aff4d62864fd005d18059bc2e5132abdf83641c Up Less than a second (health: starting)
/usr/bin/docker port 84c14711d4e97bf675dfb0555aff4d62864fd005d18059bc2e5132abdf83641c
6379/tcp -> 0.0.0.0:6379
/usr/bin/docker inspect --format="{{if .Config.Healthcheck}}{{print .State.Health.Status}}{{end}}" 84c14711d4e97bf675dfb0555aff4d62864fd005d18059bc2e5132abdf83641c
starting
redis service is starting, waiting 2 seconds before checking again.
/usr/bin/docker inspect --format="{{if .Config.Healthcheck}}{{print .State.Health.Status}}{{end}}" 84c14711d4e97bf675dfb0555aff4d62864fd005d18059bc2e5132abdf83641c
Runner and Worker's Diagnostic Logs
👋 @actions/service-oncall for triage/prioritization
Reactions are currently unavailable