Skip to content

Improve cleanup plan summary#682

Merged
chubes4 merged 4 commits into
mainfrom
fix/issue-679-cleanup-plan
Jun 13, 2026
Merged

Improve cleanup plan summary#682
chubes4 merged 4 commits into
mainfrom
fix/issue-679-cleanup-plan

Conversation

@chubes4

@chubes4 chubes4 commented Jun 13, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds an upfront cleanup plan report with total reclaimable bytes by category, top reclaimable paths, blockers grouped by reason/repo, and recommended commands with destructive risk labels.
  • Adds --top=<count> for controlling the largest-path summary and materializes stored cleanup run commands with the actual run ID.
  • Covers the new CLI report shape and DB-backed command materialization in smoke tests.

Closes #679

Verification

  • php -l inc/Workspace/WorkspaceCleanupPlan.php
  • php -l inc/Workspace/CleanupRunService.php
  • php -l inc/Cli/Commands/WorkspaceCommand.php
  • php -l tests/smoke-worktree-cleanup-cli.php
  • php -l tests/smoke-cleanup-run-storage.php
  • php tests/smoke-worktree-cleanup-cli.php
  • php tests/smoke-cleanup-run-storage.php
  • php tests/smoke-worktree-cleanup-artifacts.php
  • php tests/smoke-worktree-cleanup-plan-scope.php
  • git diff --check

Known existing smoke failure

  • php tests/smoke-worktree-cleanup.php currently fails on duplicate skipped-row expectations for dirty/external dry-run fixtures (152/161 passed). The failures reproduce independently of the new plan summary path; the targeted plan/CLI/storage/artifact checks above pass.

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (openai/gpt-5.5)
  • Used for: Implemented the cleanup plan summary/report changes and drafted targeted smoke coverage; Chris remains responsible for review and merge.

@homeboy-ci

homeboy-ci Bot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Homeboy Results — data-machine-code

Lint

lint — passed

ℹ️ Full options: homeboy docs commands/lint
ℹ️ Save lint baseline: homeboy lint data-machine-code --baseline
Deep dive: homeboy lint data-machine-code --changed-since 8ce5ebc

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-code-lint-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-code-lint-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine-code/actions/runs/27470965111

Test

test — passed

ℹ️ Auto-fix lint issues: homeboy refactor data-machine-code --from lint --write
ℹ️ Collect coverage: homeboy test data-machine-code --coverage
ℹ️ Save test baseline: homeboy test data-machine-code --baseline
ℹ️ Pass args to test runner: homeboy test -- [args]
ℹ️ Full options: homeboy docs commands/test
Deep dive: homeboy test data-machine-code --changed-since 8ce5ebc

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-code-test-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-code-test-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine-code/actions/runs/27470965111

Audit

audit — passed

  • audit — 257 finding(s)
  • Total: 257 finding(s)

Deep dive: homeboy audit data-machine-code --changed-since 8ce5ebc

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-code-audit-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-code-audit-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine-code/actions/runs/27470965111
Tooling versions
  • Homeboy CLI: homeboy 0.228.22+559e949
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: c555adf8
  • Action: unknown@unknown

@chubes4 chubes4 merged commit c867516 into main Jun 13, 2026
5 checks passed
@chubes4 chubes4 deleted the fix/issue-679-cleanup-plan branch June 13, 2026 15:34
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.

Improve cleanup UX: summarize total reclaimable space and blockers before applying

1 participant