Skip to content

fix: show first divergent event with surrounding context in compare c…#560

Merged
Timi16 merged 1 commit intoTimi16:mainfrom
AbuJulaybeeb:main
Mar 25, 2026
Merged

fix: show first divergent event with surrounding context in compare c…#560
Timi16 merged 1 commit intoTimi16:mainfrom
AbuJulaybeeb:main

Conversation

@AbuJulaybeeb
Copy link
Copy Markdown

Closes #510

Enhanced the compare command in the soroban-debugger CLI to provide more actionable debugging information when execution traces diverge.

✨ Changes
🧠 LCS-Based Diffing: Switched to the Longest Common Subsequence (LCS) algorithm for more stable and accurate comparison of execution traces.
🖥️ First Divergence Monitoring: Automatically identifies and highlights the first point where traces depart.
🔍 Context Window: Added a --context (alias -C) flag to show surrounding unchanged events (default is 3).
🛠️ Codebase Maintenance: Harmonized field names (depth) and types (Option) across the analyzer, executor, and server modules.
🧪 Verification
Verified with 76 passing integration tests and new unit tests in src/compare/engine.rs.
Confirmed a clean build across the entire workspace.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 25, 2026

@AbuJulaybeeb Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Timi16 Timi16 merged commit c6e9126 into Timi16:main Mar 25, 2026
0 of 3 checks passed
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.

Compare command: show the first divergent event with surrounding context

2 participants