Skip to content

Fix duplicate path stub creation#2080

Merged
chubes4 merged 1 commit into
mainfrom
fix/wiki-root-stub-concurrency
May 18, 2026
Merged

Fix duplicate path stub creation#2080
chubes4 merged 1 commit into
mainfrom
fix/wiki-root-stub-concurrency

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented May 18, 2026

Summary

  • Add an atomic DB-backed lock around hierarchical path stub creation.
  • Re-resolve and clean up suffixed duplicates if a concurrent insert wins the race.
  • Keep upsert idempotency from skipping requested parent/slug repairs when content is unchanged.

Testing

  • php tests/resolve-post-by-path-stub-concurrency-smoke.php
  • homeboy lint --changed-since origin/main
  • homeboy test --changed-since origin/main

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Drafted the concurrency guard, idempotency fix, smoke coverage, and ran scoped verification; Chris reviewed and requested the fix path.

@homeboy-ci
Copy link
Copy Markdown
Contributor

homeboy-ci Bot commented May 18, 2026

Homeboy Results — data-machine

Lint

lint — passed

ℹ️ Full options: homeboy docs commands/lint
Deep dive: homeboy lint data-machine --changed-since 26686af

Test

test — passed

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

Audit

audit — passed

  • requested_detectors — 3 finding(s)
  • intra-method-duplication — 2 finding(s)
  • test_coverage — 2 finding(s)
  • Total: 7 finding(s)

Deep dive: homeboy audit data-machine --changed-since 26686af

Tooling versions
  • Homeboy CLI: homeboy 0.182.0+26e33074
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: dd47f26a
  • Action: unknown@unknown

@chubes4 chubes4 merged commit a6c4c02 into main May 18, 2026
5 checks passed
@chubes4 chubes4 deleted the fix/wiki-root-stub-concurrency branch May 18, 2026 15:32
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