posthog icon indicating copy to clipboard operation
posthog copied to clipboard

fix(ci): set Depot build timeout to 60 minutes

Open jacobwgillespie opened this issue 3 years ago • 3 comments

Problem

The Depot builder VM BuildKit instance got into a deadlocked state where it would accept build requests but hang indefinitely, starting about 13 hours ago - this caused long builds such as https://github.com/PostHog/posthog/actions/runs/2665734977 that eventually timed out.

Changes

On the Depot side we have reset the BuildKit instance, have implemented an alert to catch this state in the future, and will be extending our automated remediation processes to cover this case as well.

This PR sets a Docker build timeout of 60 minutes as a safety net. Currently builds take between 2 and 20 minutes on average, so 60 minutes is a fairly generous net, it could be smaller, but this will prevent hanging for the GitHub Actions default of 6 hours.

jacobwgillespie avatar Jul 13 '22 21:07 jacobwgillespie

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.

posthog-bot avatar Jul 21 '22 07:07 posthog-bot

This PR is still valid 👍

jacobwgillespie avatar Jul 21 '22 08:07 jacobwgillespie

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.

posthog-bot avatar Aug 01 '22 07:08 posthog-bot

This PR was closed due to 2 weeks of inactivity. Feel free to reopen it if still relevant.

posthog-bot avatar Aug 11 '22 07:08 posthog-bot