Skip to content

fix(runner): keep workspace metadata out of git status#6909

Merged
chubes4 merged 2 commits into
mainfrom
fix/runner-workspace-metadata-clean
Jun 28, 2026
Merged

fix(runner): keep workspace metadata out of git status#6909
chubes4 merged 2 commits into
mainfrom
fix/runner-workspace-metadata-clean

Conversation

@chubes4

@chubes4 chubes4 commented Jun 28, 2026

Copy link
Copy Markdown
Member

Summary

Fixes #6908.

Homeboy now adds .homeboy/ to .git/info/exclude for Git-backed runner workspaces before writing .homeboy/runner-workspace.json. This keeps Homeboy-owned runner metadata from dirtying synthetic Lab checkouts while preserving the existing strict patch-capture preflight for real source changes.

Tests

  • rustfmt --check src/core/runner/workspace/sync.rs src/core/runner/workspace/tests/snapshot.rs src/core/runner/lab/offload/tests/workspace_sync.rs
  • cargo test snapshot_git_sync_materializes_dirty_source_as_synthetic_git_checkout
  • cargo test required_git_checkout_preflight_accepts_homeboy_runner_metadata_when_excluded

Note: cargo fmt --check currently reports formatting diffs in unrelated files on origin/main, so this PR verified formatting on the touched files directly.

AI assistance

  • AI assistance: Yes
  • Tool(s): gpt-5.5 via OpenCode
  • Used for: Diagnosing the runner workspace metadata cleanliness failure, implementing the fix, adding regression tests, and drafting this PR description.

@homeboy-ci

homeboy-ci Bot commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Homeboy Results — homeboy

Lint

lint — passed

ℹ️ Full options: homeboy docs commands/lint
ℹ️ Save lint baseline: homeboy lint homeboy --baseline
Deep dive: homeboy lint homeboy --changed-since 99cfcb4

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-homeboy-lint-homeboy-Linux contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-homeboy-lint-homeboy-Linux 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/homeboy/actions/runs/28336855503

Test

⚠️ test — baseline red

ℹ️ No tests ran — the runner failed before producing results. See raw_output.stderr_tail / raw_output.stdout_tail for the underlying error (bootstrap failure, missing deps, DB connection, etc.).
ℹ️ To run specific tests: homeboy test homeboy -- --filter=TestName
ℹ️ Auto-fix lint issues: homeboy refactor homeboy --from lint --write
ℹ️ Collect coverage: homeboy test homeboy --coverage
ℹ️ Analyze failures: homeboy test homeboy --analyze
ℹ️ Pass args to test runner: homeboy test -- [args]
ℹ️ Full options: homeboy docs commands/test
Deep dive: homeboy test homeboy --changed-since 99cfcb4

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-homeboy-test-homeboy-Linux contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-homeboy-test-homeboy-Linux 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/homeboy/actions/runs/28336855503

Audit

audit — passed

  • core_boundary_leak:core-agnostic-source — 72 finding(s)
  • structural — 58 finding(s)
  • intra-method-duplication — 48 finding(s)
  • field_patterns — 35 finding(s)
  • dead_code — 19 finding(s)
  • near-duplication — 17 finding(s)
  • test_quality — 13 finding(s)
  • duplication — 10 finding(s)
  • remote_execution_preflight — 9 finding(s)
  • thin_command_adapter — 8 finding(s)
  • Total: 314 finding(s)

Deep dive: homeboy audit homeboy --changed-since 99cfcb4

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-homeboy-audit-homeboy-Linux contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-homeboy-audit-homeboy-Linux 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/homeboy/actions/runs/28336855503
Tooling versions
  • Homeboy CLI: homeboy 0.269.2+f958423e4e6b+21bb7fde8
  • Extension: rust from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: 846eeef8
  • Action: unknown@unknown

# Conflicts:
#	src/core/runner/workspace/sync.rs
@chubes4 chubes4 merged commit 8903739 into main Jun 28, 2026
3 checks passed
@chubes4 chubes4 deleted the fix/runner-workspace-metadata-clean branch June 28, 2026 21:42
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.

Runner workspace metadata dirties patch-captured synthetic checkouts

1 participant