Skip to content

GitHub Actions: Add a timeout to Caddy server download #13295

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

Closed
wants to merge 1 commit into from

Conversation

Ayesh
Copy link
Member

@Ayesh Ayesh commented Jan 31, 2024

Currently, caddyserver.com/api/download times out, which causes all our CI runs on Linux to fail after trying for 30 seconds.

Further, the caddy website also mentions the site is experiencing issues and there is no SLA.

Ideally, we are probably better off using Caddy's GitHub Releases page, but the URL patterns are difficult to build, so this timeout tries to avoid the CI jobs waiting nearly 30 minutes before giving up. This change adds 120 second hard timeout, and adds three retries 10 seconds apart.

Currently, `caddyserver.com/api/download` times out, which causes all our CI runs on Linux to fail
after trying for 30 seconds.

Further, the caddy website also mentions the site is experiencing issues and there is no SLA.

Ideally, we are probably better off using Caddy's GitHub Releases page, but the URL patterns are difficult
to build, so this timeout tries to reduce the CI jobs waiting nearly 30 minutes before giving up.
@Ayesh Ayesh closed this Jan 31, 2024
@TimWolla
Copy link
Member

@Ayesh I was about to apply this for PHP 8.1+, what a terrible waste of resources waiting for the 50 minute hard timeout. Is there a reason you closed this?

@iluuu1994
Copy link
Member

iluuu1994 commented Jan 31, 2024

This looks fine to me. It could even make sense to make this step fallible, as there's no reason to skip all tests for the few caddy tests. We should still see the fact this step fails in the job overview.

Tbh these curl defaults are kind of bonkers.

@Ayesh
Copy link
Member Author

Ayesh commented Jan 31, 2024

I thought I closed fast enough to not bother you @TimWolla / @iluuu1994 .. I'm sorry. I asked some people at Caddy what's going on, and they recommended to use GitHub Releases over caddyserver.com to download binaries.

@Ayesh Ayesh deleted the ci-caddy-retry branch February 27, 2024 07:44
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.

3 participants