• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / duplicate-post / 23666031844
60%
trunk: 60%

Build:
Build:
LAST BUILD BRANCH: feature/rtc-compat
DEFAULT BRANCH: trunk
Ran 27 Mar 2026 08:27PM UTC
Jobs 6
Files 41
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Mar 2026 08:24PM UTC coverage: 59.598%. First build
23666031844

push

github

enricobattocchi
fix(duplicator): prevent race condition in R&R copy creation

Claim the slot on the original post using add_post_meta() with
$unique = true before creating the copy. This returns false if the
meta key already exists, preventing duplicate copies when two concurrent
requests both pass the permission check before either sets the meta.

If wp_insert_post() fails, the claim is rolled back by deleting the
meta.

Also fixes Block_Editor_Test to mock get_post_type_object() for the
restBase addition to the localized JS object.

Ref: Yoast/reserved-tasks#1127

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

8 of 14 new or added lines in 1 file covered. (57.14%)

1630 of 2735 relevant lines covered (59.6%)

7.26 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
88.04
src/post-duplicator.php
Jobs
ID Job ID Ran Files Coverage
1 php-8.5-wp-6.9 - 23666031844.1 27 Mar 2026 08:27PM UTC 41
17.26
GitHub Action Run
2 php-7.4-wp-6.8 - 23666031844.2 27 Mar 2026 08:27PM UTC 41
17.29
GitHub Action Run
3 php-7.4-wp-6.8-ms - 23666031844.3 27 Mar 2026 08:27PM UTC 41
17.29
GitHub Action Run
4 php-8.5-wp-6.9-ms - 23666031844.4 27 Mar 2026 08:27PM UTC 41
17.26
GitHub Action Run
5 php-8.5 - 23666031844.5 27 Mar 2026 08:27PM UTC 41
44.8
GitHub Action Run
6 php-7.4 - 23666031844.6 27 Mar 2026 08:27PM UTC 41
44.8
GitHub Action Run
Source Files on build 23666031844
  • Tree
  • List 41
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23666031844
  • bfb36222 on github
  • Next Build on feature/rtc-compat (#23666388117)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc