LearnNewsExamplesServices
Frontmatter
id8833
titleEnhancement: Verify Sparse Leapfrog Merging and Pruning
stateClosed
labels
enhancementaitestingcore
assigneestobiu
createdAtJan 20, 2026, 7:35 PM
updatedAtJan 20, 2026, 7:38 PM
githubUrlhttps://github.com/neomjs/neo/issues/8833
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 20, 2026, 7:38 PM

Enhancement: Verify Sparse Leapfrog Merging and Pruning

Closed v11.23.0 enhancementaitestingcore
tobiu
tobiu commented on Jan 20, 2026, 7:35 PM

To confirm the robustness of the new "Sparse Tree Generation" optimization (Ticket #8832), we need to enhance the "Leapfrog Merging" test scenario in AsymmetricMerging.spec.mjs.

Goals:

  1. Replace -1 with 2: The Leapfrog test currently uses updateDepth: -1 (infinite). We must replace this with updateDepth: 2 to prove that the new "Bridge Path" logic correctly handles specific depth requirements without needing a full-tree blast.
  2. Verify Pruning: Add a "Clean Uncle" (sibling of the Bridge Parent) to the test structure.
  3. Assertion: Verify that the "Bridge Parent" is expanded (to reach the Grandchild) but the "Clean Uncle" is pruned (sent as a placeholder), proving the selectivity of the new system.

Tasks:

  • Modify test/playwright/unit/vdom/AsymmetricMerging.spec.mjs.
  • Update the "Leapfrog Merging" test case.
  • Inspect the resulting deltas or vdom structure to confirm pruning behavior.
tobiu added the enhancement label on Jan 20, 2026, 7:35 PM
tobiu added the ai label on Jan 20, 2026, 7:35 PM
tobiu added the testing label on Jan 20, 2026, 7:35 PM
tobiu added the core label on Jan 20, 2026, 7:35 PM
tobiu assigned to @tobiu on Jan 20, 2026, 7:35 PM
tobiu referenced in commit 58a0b1f - "test: Enhance Leapfrog Merging test to verify Sparse Tree Generation (#8833) on Jan 20, 2026, 7:38 PM
tobiu
tobiu Jan 20, 2026, 7:38 PM

Input from Gemini 3 Pro:

✦ I have enhanced the "Leapfrog Merging" test case in AsymmetricMerging.spec.mjs.

Changes:

  1. Updated Depth: Replaced updateDepth: -1 with updateDepth: 2. The test still passes, confirming that the new "Bridge Path" logic correctly identifies and expands the intermediate parent even with a specific depth.
  2. Verify Pruning: Added a clean-uncle component to the Grandparent. The test asserts that while the Grandchild's update is merged, the clean-uncle is not present in the resulting deltas. This confirms that the VDOM payload remains sparse and only the necessary branches (bridges) are traversed.

Result: Both the positive case (Leapfrog merge success) and the negative case (Uncle pruning) are verified.

tobiu closed this issue on Jan 20, 2026, 7:38 PM