Skip to content

improve observability and readiness timeout for buildkitd startup#112

Draft
ajwerner wants to merge 1 commit into
mainfrom
devin/1783547517-buildkitd-readiness-observability
Draft

improve observability and readiness timeout for buildkitd startup#112
ajwerner wants to merge 1 commit into
mainfrom
devin/1783547517-buildkitd-readiness-observability

Conversation

@ajwerner

@ajwerner ajwerner commented Jul 8, 2026

Copy link
Copy Markdown

Summary

Follow-up to the supabase/supabox variance investigation: a job that hit the buildkitd worker-readiness timeout fell back to a cold local builder (13m29s build) even though the daemon was still alive and serving 20 minutes later in the post step — the readiness window was simply too short, and the failure left no evidence and no backend report.

Changes (all zero-customer-change; picked up via the moving v1 tag):

  • buildkitdTimeoutMs: 30s → 120s. Slow worker init (loading a large sticky-disk cache) previously triggered fallback; a cold local build + the skipped sticky-disk commit that poisons downstream runs costs far more than waiting longer.
  • On worker-readiness timeout in startAndConfigureBuildkitd:
    • dump the tail of /tmp/buildkitd.log into the job log (previously this only happened in the post step when the process was gone, so slow-but-alive daemons left no evidence)
    • call reportBuildPushActionFailure("BUILDER_STARTUP", ...) so these fallbacks are visible to the backend (previously only fork failures were reported)
  • BPA_BUILDKITD_READY_DURATION_MS is now reported in a finally, so timeout cases show up in the metric instead of only successes.
  • Extracted the log-tail helper as logBuildkitdLogTail in setup_builder.ts (replaces the post-step-only logBuildkitdCrashLogs in main.ts).

Link to Devin session: https://app.devin.ai/sessions/f9e26ad52787476784fe0848cd40551d
Requested by: @ajwerner


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled. (Staging)

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@ajwerner ajwerner self-assigned this Jul 8, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

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.

1 participant