t534: fix(checkout): delay pending site fallback watchdog#1355
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR fixes a duplicate-publish race in the FPM pending-site publishing flow by introducing a delayed watchdog fallback and making async enqueue conditional on loopback failure. When loopback succeeds under FPM, the request completes early without enqueueing the redundant async action; a scheduled watchdog fallback provides safety if loopback never completed. Tests are updated for determinism and new watchdog behavior coverage. ChangesPending-Site Publish Watchdog and Async Fallback
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
Summary
Verification
Not run
aidevops.sh v3.20.36 plugin for OpenCode v1.16.2 with gpt-5.5 Merged via PR #1355 to main. |
Summary
wu_async_publish_pending_sitewatchdog before loopback publish attempts so a started loopback still has a retry path if the long-running publish dies after the 2xx responseResolves #1305
Verification
php -l inc/models/class-membership.php && php -l tests/WP_Ultimo/Managers/Membership_Manager_Test.phpvendor/bin/phpcs inc/models/class-membership.php tests/WP_Ultimo/Managers/Membership_Manager_Test.phpvendor/bin/phpstan analyse inc/models/class-membership.php --memory-limit=1Ggit diff --checkNot run
vendor/bin/phpunit --filter ... Membership_Manager_Test.php— WordPress PHPUnit test suite is not installed in this environment.aidevops.sh v3.20.36 plugin for OpenCode v1.16.2 with gpt-5.5
Summary by CodeRabbit