Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to generate RRD vs. screenshots comparisons (#3946)
### What This PR introduces a script that builds a local, web-based comparison between our various example code and the screenshot we provide along them, to help identify discrepancies. ``` ❯ python scripts/screenshot_compare/build_screenshot_compare.py --help usage: build_screenshot_compare.py [-h] [--serve] [--skip-build] [--skip-example-build] Generate comparison between examples and their related screenshots. This script builds/gather RRDs and corresponding screenshots and displays them side-by-side. It pulls from the following sources: - The screenshots listed in .fbs files (crates/re_types/definitions/rerun/**/*.fbs), and the corresponding code examples in the docs (docs/code-examples/*.rs) - The `demo.rerun.io` examples, as built by the `build_demo_app.py` script. The comparison is generated in the `compare_screenshot` directory. Use the `--serve` option to show them in a browser. options: -h, --help show this help message and exit --serve Serve the app on this port after building [default: 8080] --skip-build Skip building the Python SDK and web viewer Wasm. --skip-example-build Skip building the RRDs. ``` <img width="2089" alt="image" src="https://github.com/rerun-io/rerun/assets/49431240/9db91c0e-b5c1-4fc0-a2b4-4f6a583ad91d"> ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] ~~I have tested [demo.rerun.io](https://demo.rerun.io/pr/3946) (if applicable)~~ * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG - [PR Build Summary](https://build.rerun.io/pr/3946) - [Docs preview](https://rerun.io/preview/69d73db71693a32d77b3c89a5dfc3b432484f179/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/69d73db71693a32d77b3c89a5dfc3b432484f179/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://ref.rerun.io/dev/bench/) - [Wasm size tracking](https://ref.rerun.io/dev/sizes/) --------- Co-authored-by: Jeremy Leibs <[email protected]>
- Loading branch information