Skip to content

Tests: Improve isolation for randomized query tests - #13188

Draft
sirreal wants to merge 2 commits into
WordPress:trunkfrom
sirreal:agent/test-order-query-isolation
Draft

Tests: Improve isolation for randomized query tests#13188
sirreal wants to merge 2 commits into
WordPress:trunkfrom
sirreal:agent/test-order-query-isolation

Conversation

@sirreal

@sirreal sirreal commented Aug 20, 2026

Copy link
Copy Markdown
Member

Summary

  • Restores sticky and canonical-query fixtures and uses the recognized case-sensitive ID orderby value to make child-post selection deterministic.
  • Keeps the changes confined to PHPUnit tests and fixtures.

Verification

  • 50 consecutive randomized query-group runs passed; each completed 1,892 tests and 4,420 assertions.
  • Replayed the original failing seed and focused contaminator/consumer cases during diagnosis.
  • PHP syntax checks passed for every changed PHP file.
  • git diff --check passed.

Trac: https://core.trac.wordpress.org/ticket/65893

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