Summary
The pure-PHP tests/worker-cli-smoke.php currently fails on main because it expects stale-lock implementation details to remain in inc/Cli/WorkerLock.php:
FAIL: worker lock identifies stale lock payloads during acquisition
WorkerLock now delegates stale lease detection and replacement to the generic OptionLeaseStore, so the expected stale comparison and direct delete_option( $option_name ) call are not present in WorkerLock on main.
Expected fix
Update the static smoke assertion to verify delegation to OptionLeaseStore::acquire() and keep behavioral stale replacement coverage in tests/worker-lock-smoke.php, which currently passes.
Scope
This was discovered while implementing #2889 and is intentionally not included in that dispatcher-health PR.
AI assistance
- AI assistance: Yes
- Tool: OpenCode
- Used for: reproducing and isolating pre-existing smoke-test drift
Summary
The pure-PHP
tests/worker-cli-smoke.phpcurrently fails onmainbecause it expects stale-lock implementation details to remain ininc/Cli/WorkerLock.php:WorkerLocknow delegates stale lease detection and replacement to the genericOptionLeaseStore, so the expected stale comparison and directdelete_option( $option_name )call are not present inWorkerLockonmain.Expected fix
Update the static smoke assertion to verify delegation to
OptionLeaseStore::acquire()and keep behavioral stale replacement coverage intests/worker-lock-smoke.php, which currently passes.Scope
This was discovered while implementing #2889 and is intentionally not included in that dispatcher-health PR.
AI assistance