Commit c9ce09a
Merge #153437
153437: asimview: add sha comparison functionality r=tbg a=wenyihu6
Rebased on top of #152959.
Epic: https://cockroachlabs.atlassian.net/browse/CRDB-49117
Release note: none
----
Added comprehensive SHA comparison capability to the ASIM viewer tool, enabling
side-by-side comparison of test results between different Git commits.
Major additions:
- New `-sha-compare` flag to enable SHA comparison mode
- `sha_compare.go`: Core logic for managing Git operations, test generation, and file comparison
- `sha_compare.html`: Interactive web interface for SHA comparison with Plotly charts
- File-by-file comparison with visual indicators for identical, different, or SHA-specific files
The tool now supports two modes:
1. Regular file viewer (existing functionality)
2. SHA comparison mode (new) - allows users to select two commits, automatically
generates test data for both, and provides side-by-side chart comparison
Updated BUILD.bazel and .gitignore to support the new comparison workflow and temporary file storage.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: wenyihu6 <wenyi@cockroachlabs.com>File tree
8 files changed
+1537
-6
lines changed- pkg/kv/kvserver/asim/tests
- cmd/asimview
- testdata/generated
8 files changed
+1537
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
7 | 14 | | |
8 | 15 | | |
9 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
20 | 40 | | |
21 | 41 | | |
22 | 42 | | |
| |||
0 commit comments