Skip to content

fix: resolve GitSync wp-content paths via WP_CONTENT_DIR#448

Merged
chubes4 merged 3 commits into
mainfrom
fix/gitsync-wp-content-dir
May 26, 2026
Merged

fix: resolve GitSync wp-content paths via WP_CONTENT_DIR#448
chubes4 merged 3 commits into
mainfrom
fix/gitsync-wp-content-dir

Conversation

@chubes4

@chubes4 chubes4 commented May 26, 2026

Copy link
Copy Markdown
Member

Summary

  • Resolve GitSync bindings under /wp-content/... through WP_CONTENT_DIR instead of assuming content lives under ABSPATH.
  • Keep non-content bindings rooted under ABSPATH, with containment checks using the matching binding root.
  • Cover managed-host content-directory layouts in the GitSync smoke test.

Verification

  • php tests/smoke-gitsync.php
  • git diff --check

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Diagnosed the WP Cloud GitSync path failure, drafted the path-resolution fix and smoke coverage, and ran verification; Chris remains responsible for review and testing.

@chubes4

chubes4 commented May 26, 2026

Copy link
Copy Markdown
Member Author

CI note: Audit/Lint/Test are currently failing before repo code runs. The jobs die while GitHub prepares actions/download-artifact@v4 from the reusable Extra-Chill/homeboy-action@v2 workflow:

An action could not be found at the URI 'https://codeload.github.com/actions/download-artifact/tar.gz/d3f86a106a0bac45b974a628896c90dbdf5c8093'

This branch was verified locally with:

  • php tests/smoke-gitsync.php — 48/48 passed
  • git diff --check

Upstream fix opened: Extra-Chill/homeboy-action#235

@homeboy-ci

homeboy-ci Bot commented May 26, 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 5f835ba

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/26449950750

Test

test — passed

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

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/26449950750

Audit

audit — passed

  • GitSync — 1 finding(s)
  • dead_code — 1 finding(s)
  • Total: 2 finding(s)

Deep dive: homeboy audit data-machine-code --changed-since 5f835ba

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/26449950750
Tooling versions
  • Homeboy CLI: homeboy 0.198.9+4775a3f
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: 2b37a5b5
  • Action: unknown@unknown

@chubes4 chubes4 merged commit 513d149 into main May 26, 2026
5 checks passed
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.

1 participant