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

add timeout on steps with network I/O #77

Merged
merged 1 commit into from
Jun 29, 2023
Merged

add timeout on steps with network I/O #77

merged 1 commit into from
Jun 29, 2023

Conversation

willnorris
Copy link
Member

@willnorris willnorris commented Jun 29, 2023

Set a reasonable timeout to prevent jobs from hanging for hours (#50). 5 minutes is way longer than should ever be necessary, but accounts for intermittent networking issues on either the actions runner or the Tailscale package or control server. Users can always set a shorter timeout on their own action step.

Fixes #50

@willnorris
Copy link
Member Author

well I guess that answers that question... you can't specify timeout-minutes in actions.yml

https://github.com/tailscale/github-action/actions/runs/5414970481

Copy link
Contributor

@DentonGentry DentonGentry left a comment

Choose a reason for hiding this comment

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

Approved, but the CI failure is real.

@willnorris
Copy link
Member Author

Yeah, I don't think we can do this in actions.yml. timeout isn't mentioned in their docs, but I was hoping it would still work. Looks like users will need to set it on their own. Maybe we just update the README to suggest a default value.

@willnorris
Copy link
Member Author

or maybe we use the timeout command? Should be standard part of GNU coreutils

@willnorris willnorris changed the title add timeout on steps with network I/O add timeout on tailscale up command Jun 29, 2023
@DentonGentry
Copy link
Contributor

I imagine curl has a timeout argument as well.

Set a reasonable timeout to prevent jobs from hanging for hours (#50).
5 minutes is way longer than should ever be necessary, but accounts for
intermittent networking issues on either the actions runner or the
Tailscale package or control server.  Users can always set a shorter
timeout on their own action step.

Fixes #50

Signed-off-by: Will Norris <will@tailscale.com>
@willnorris willnorris changed the title add timeout on tailscale up command add timeout on steps with network I/O Jun 29, 2023
@willnorris willnorris merged commit 65cdd9a into main Jun 29, 2023
1 check passed
@willnorris willnorris deleted the will/timeout branch June 29, 2023 18:31
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.

hangs with expired authkey
2 participants