Repository navigation
GH#34285: feat(docker): owner labels, worktree teardown and report-only reaping for disposable Docker resources - #34298
Conversation
…ly reaping for disposable Docker resources
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)🚫 Excluded labels (none allowed) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Completion Summary
aidevops.sh v3.39.1 plugin for OpenCode v1.18.34 with claude-opus-5-5 spent 54m and 73,493 tokens on this as a headless worker. Merged via PR #34298 to main. |
Early-Exit Pipe Readers Under pipefailThis PR adds lines where a writer is piped into an early-exit reader Fix: use a here-string, e.g. |
Up to standards ✅🟢 Issues
|
Qlty New-File Smell Gate✅ Clean — 1 new source file(s) scanned, no smells found.
New files scanned
|
Markdown Lint (changed-line scoped)No new violations in changed lines (0 pre-existing in touched files — ignored).
|
Shell Function Complexity Regression Gate✅ No regression — no new function(s) >100 lines.
|
Bash 3.2 Compatibility Regression Gate✅ No regression — no new bash 3.2-incompatible construct(s).
|
Qlty Smell Regression Gate✅ No change — smell count unchanged.
|
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report SonarCloud: 0 bugs, 0 vulnerabilities, 1 code smells Sat Oct 10 23:42:08 UTC 2026: Code review monitoring started 📈 Current Quality Metrics
Generated on: Sat Oct 10 23:44:36 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
Shell Nesting Depth Regression Gate✅ No regression — no new file(s) with nesting depth >8.
|
File Size Regression Gate✅ No regression — no new non-README Markdown file(s) >1000 lines at root / >500 elsewhere.
|
Summary
Adds .agents/scripts/docker-resource-helper.sh (labels, compose-labels, inventory, teardown, reap, report). Six sh.aidevops.* owner labels (owner, repo, ref, worktree, created, ttl-hours default 72). Worktree removal (worktree-helper.sh remove post-removal hook and the worktree-helper.sh clean path) tears down labelled containers/networks/volumes for that worktree via docker_resource_auto_teardown (opt out with AIDEVOPS_DOCKER_TEARDOWN=0). Pulse cleanup_stale_opencode runs reap report-only unless AIDEVOPS_DOCKER_REAP=1, bounded by PULSE_DOCKER_CLEANUP_MAX_SECONDS (30). Reap removes only owner-labelled resources older than 30 min whose worktree is gone AND issue/PR closed (one gh lookup per ref, failure = keep), or TTL-expired with nothing running; containers before networks/volumes; shared networks/volumes kept. Unlabelled resources are only counted by report. wp-plugin-release-helper.sh labels its plugin-check network, volume and containers. New tools/containers/disposable-resources.md (labelled start, teardown, report, address-pool exhaustion and default-address-pools 10.200.0.0/16 size 24), linked from reference/domain-index.md and orbstack.md.
Files Changed
.agents/reference/domain-index.md, .agents/scripts/docker-resource-helper.sh, .agents/scripts/pulse-cleanup.sh, .agents/scripts/tests/test-docker-resource-helper.sh, .agents/scripts/worktree-clean-lib.sh, .agents/scripts/worktree-helper-cmds.sh, .agents/scripts/worktree-helper-integration.sh, .agents/scripts/wp-plugin-release-helper.sh, .agents/tools/containers/disposable-resources.md, .agents/tools/containers/orbstack.md
Runtime Testing
Resolves #34285
aidevops.sh v3.39.1 plugin for OpenCode v1.18.34 with claude-opus-5-5 spent 53m and 73,363 tokens on this as a headless worker.