-
Notifications
You must be signed in to change notification settings - Fork 4
Generate stefz files for testing #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Instead of storing stefz in git we generate them before tests. The files are fairly large and we store large delta everytime the format changes. Files are now deleted from git. otlp2stef tool is used to generate stefz files from OTLP .pb files that don't change. We also use a script to check compatibility of a format. The script checks out old version of otlp2stef, generates files from that, check outs current version of code and runs new test code on old files.
cc7335b to
faea225
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the test file management approach by generating .stefz test files on-demand instead of storing them in git, addressing issues with large binary files and frequent format changes.
- Removes .stefz files from git tracking and generates them from .zst source files using the otlp2stef tool
- Adds compatibility testing scripts to validate format compatibility between versions
- Updates file paths across the codebase to reference the new generated test files location
Reviewed Changes
Copilot reviewed 9 out of 12 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| makefile | Updates build-ci target to use new benchmarks build-ci command |
| java/src/test/java/tests/ReadWriteTest.java | Updates test file path to reference generated directory |
| java/src/main/java/net/stef/benchmarks/STEF.java | Updates benchmark file path to reference generated directory |
| benchmarks/testdata/.gitignore | Ignores the generated test files directory |
| benchmarks/scripts/gentestfiles.sh | New script to generate .stefz files from .zst sources |
| benchmarks/scripts/genoldtestfiles.sh | New script for compatibility testing with old format versions |
| benchmarks/readwrite_test.go | Updates test file paths to reference generated directory |
| benchmarks/makefile | Adds test file generation targets and compatibility testing |
| .github/workflows/build-and-test.yml | Adds test file generation steps to CI workflow |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Benchmark ResultBenchmark diff with base branchBenchmark result |
Instead of storing stefz in git we generate them before tests. The files are fairly large and we store large delta everytime the format changes.
Files are now deleted from git. otlp2stef tool is used to generate stefz files from OTLP .pb files that don't change.
We also use a script to check compatibility of a format. The script checks out old version of otlp2stef, generates files from that, check outs current version of code and runs new test code on old files.