Skip to content

[ BOUNTY] Add diagnostic metadata diff tool (#5)#9

Open
xcapselx wants to merge 2 commits into
thanhle74:mainfrom
xcapselx:feat/diagnostic-diff-thanhle74
Open

[ BOUNTY] Add diagnostic metadata diff tool (#5)#9
xcapselx wants to merge 2 commits into
thanhle74:mainfrom
xcapselx:feat/diagnostic-diff-thanhle74

Conversation

@xcapselx

Copy link
Copy Markdown

Summary

Add tools/diagnostic_diff.py — a diagnostic metadata diff tool that compares two build diagnostic JSON files and reports differences in module status, pass/fail counts, build metadata, and per-module output.

Changes

  • tools/diagnostic_diff.py (new file):

    • diff_diagnostics(baseline, current) — compares commit, total_modules, passed, failed, chunked, and per-module status/elapsed/artifact/output
    • Detects added, removed, and modified modules
    • Summary with total changes, modules added/removed/modified, metadata changed, pass/fail delta
    • render_text() produces Markdown table output
    • --json flag for machine-readable output
    • --summary flag for summary-only output
  • tests/test_diagnostic_diff.py (new file):

    • test_diff_detects_changed_fields — verifies commit, passed, failed changes
    • test_diff_detects_module_status_change — verifies module status FAIL->PASS detection
    • test_diff_identical_diagnostics_no_changes — verifies zero changes for identical inputs
    • test_diff_detects_added_module — verifies new module detection
    • test_diff_detects_removed_module — verifies removed module detection
    • test_render_text_produces_markdown — verifies Markdown output format
    • test_render_text_identical — verifies "No differences detected" message
    • test_load_diagnostic_file_not_found — verifies FileNotFoundError on missing file

Testing

python -m unittest tests.test_diagnostic_diff -v

Result:

Ran 8 tests in 0.001s
OK

Build diagnostic: diagnostic/build-94ad8d29.json

Checklist

  • Relevant modules affected by these changes build locally
  • Tests pass locally
  • Diagnostic build log is committed in this PR
  • Changes are scoped to the PR purpose
  • Security, privacy, and error-handling implications have been considered

Closes #5

LE-VAI added 2 commits June 18, 2026 19:29
- New tools/diagnostic_diff.py compares two build diagnostic JSON files
- Reports changes in commit, module count, pass/fail counts, and per-module status/output
- Detects added, removed, and modified modules
- Supports --json and --summary output modes
- 8 tests covering field changes, module status changes, added/removed modules, identical diagnostics, and text rendering
@coderabbitai

coderabbitai Bot commented Jun 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@xcapselx, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 42 minutes and 53 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d20d5420-0226-43d0-8c9b-51e579836157

📥 Commits

Reviewing files that changed from the base of the PR and between 94e0fb0 and b337089.

📒 Files selected for processing (3)
  • diagnostic/build-94ad8d29.json
  • tests/test_diagnostic_diff.py
  • tools/diagnostic_diff.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

[$25 BOUNTY] [Python] feat: Add diagnostic metadata diff tool

2 participants