Repository navigation
Name failed run starts and stop worktrees on a full volume - #11
Merged
Merged
Conversation
Prep failures (worktree ENOSPC, clone errors) left a Failed run with a blank lastLine, so cron retries piled up unlabeled. Persist the start error on the run, describe SIGKILL of the CLI in the log, and skip materializing a workspace when the backing volume is already at the critical fill threshold. Co-authored-by: Doug Rathbone <dougrathbone@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Investigation
Looked at this failed run plus the recent cluster of Failed rows on that agent. I could not open the production run log (Okta), and Conduit does not ship those logs to Datadog. Production Sentry (project
conduit) and Slack alerts fill in the gap:2516 MBfree) —dataDirSweeperdisk-pressure alertENOSPC: no space left on device, writeinappendLines(runDeliveryLog)Not enough disk space to sync this repository…fromrepoSyncThat matches Linear PFM-7547 (large-monorepo checkouts exhausting the pod) and the overnight “runs just stop” pattern discussed around OOM (nodes later raised 8 GB → 32 GB).
On the code path, a failed
factory.startRun(classicgit worktree addENOSPC) marked the rowfailedwithoutlastLine. Cron then retried into more blank Failed runs while each attempt tried to check out another multi-GB worktree. A SIGKILL of the CLI (null/137) likewise left the history row stuck on the last Bash line, so OOM looked like a mysterious mid-command failure.A separate Sep 17 thread (Colin): agents failing because global MCPs were injected without access. That is not this PR.
Fix
Failed to start run: …on the run row (and in the log) when worker prep throws, so history is not blank.SIGTERM(stopRun) is unchanged.Not enough disk space…inisDiskFullErrorso Sentry tags those starts asdiskFull.Ops follow-up (not in this PR)
Confirm the production data volume actually grew after PFM-7547, and whether that agent’s overnight cron is still firing into a full (or nearly full) disk. Memory-pressure telemetry already exists; a still-tight cgroup will keep SIGKILL’ing heavy
nx/tsc runs even with a named lastLine.Tests
diskPressureclassify /assertVolumeHasSpacecliKillDiagnostic/failedStartLastLineisDiskFullErrorfor the operator-facing disk-full copy