fix(host): prune stale /dev/shm dirs and improve quota errors - #32
Merged
simoncrypta merged 2 commits intoAug 10, 2026
Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughChangesThe host provider now detects shared-memory and disk-space failures, formats targeted startup guidance, prunes stale ephemeral PostgreSQL directories when the port is inactive, and reports low Ephemeral host space handling
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
3 tasks
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/providers/host.ts`:
- Around line 157-164: The stale-entry cleanup around the startup liveness check
and the loop over entries must become ownership-safe and atomic: serialize
ephemeral cold starts with an exclusive lock, recheck liveness while holding it,
and delete only entries whose ownership metadata identifies an exited instance
of this recipe. Do not remove unrelated live PostgreSQL entries based solely on
the recipe port; update the cleanup and add coverage for concurrent startup and
a live non-recipe PostgreSQL entry.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: c4168995-72f8-447e-9c55-a36fe0a68f6b
📒 Files selected for processing (3)
CHANGELOG.mdsrc/providers/host.tstests/host.test.ts
…_jest_setupfiles' into 08-09-fix_host_prune_stale__dev_shm_dirs_and_improve_quota_errors
simoncrypta
deleted the
08-09-fix_host_prune_stale__dev_shm_dirs_and_improve_quota_errors
branch
August 10, 2026 02:46
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.
Summary
/dev/shm/cedar-pg-*,pgserve-*, andPostgreSQL.*when the recipe port is not live (OOM-killed runs filling tmpfs).53100, append remount + cleanup hints (sudo mount -o remount,size=6G /dev/shm)./dev/shmhas less than ~512MB free before--ramstart.Depends on #31 (stacked).
Test plan
vp test tests/host.test.tsvp check