Skip to content

WL-0MM8Q9IZ: Strengthen in-progress boost tests#787

Merged
rgardler-msft merged 1 commit intomainfrom
wl-0MM8Q9IZ-strengthen-boost-tests
Mar 2, 2026
Merged

WL-0MM8Q9IZ: Strengthen in-progress boost tests#787
rgardler-msft merged 1 commit intomainfrom
wl-0MM8Q9IZ-strengthen-boost-tests

Conversation

@rgardler-msft
Copy link
Copy Markdown
Owner

Summary

Strengthens three test cases for the in-progress boost scoring feature (PR #786) to eliminate false-pass scenarios identified during code review.

Changes

  • Non-stacking test (WL-0MM8STVWJ1UN4MWB): Rewrote to use cross-priority comparison (high open vs medium in-progress parent) with async delay for deterministic createdAt tie-breaking. The test now fails if boost stacking (1.5x * 1.25x = 1.875x) were applied instead of the correct non-stacking 1.5x.

  • Completed-child test (WL-0MM8STZHY06200XY): Reversed item creation order so the unrelated item is created first. Previously the test passed due to age tie-breaker favoring the parent (created first), not because the ancestor boost was correctly removed. Now age favors the unrelated item, validating the boost is genuinely removed.

  • Multi-depth multi-in-progress test (WL-0MM8SU2R20PTDQ9I): Added new test case with in-progress items at both child and grandchild depth. Verifies the grandparent gets 1.25x ancestor boost, the in-progress parent gets 1.5x (not stacked with ancestor 1.25x), and the ancestor set de-duplication works correctly.

Verification

All 1191 tests pass (1 new test added). Tested multiple times for determinism.

Related Work Items

  • Parent: WL-0MM8Q9IZ40NCNDUX (Boost in-progress items in sorting algorithm)

- Rewrite non-stacking test (WL-0MM8STVWJ) to use cross-priority setup
  where stacked 1.875x would produce different sort order than correct 1.5x
- Fix completed-child test (WL-0MM8STZHY) by creating unrelated item first
  so age tie-breaker validates boost removal rather than confirming creation order
- Add multi-depth multi-in-progress test (WL-0MM8SU2R2) with in-progress items
  at child and grandchild levels verifying ancestor boost and non-stacking

All 1191 tests pass.
@rgardler-msft rgardler-msft merged commit ff9a50e into main Mar 2, 2026
4 checks passed
@rgardler-msft rgardler-msft deleted the wl-0MM8Q9IZ-strengthen-boost-tests branch March 2, 2026 06:59
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