-
Notifications
You must be signed in to change notification settings - Fork 0
Apply best practices from Comparisons.Neo4jVSDoublets #14
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
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #13
Changes: - Update rust.yml workflow: - Use actions/checkout@v4 (from v2) - Use dtolnay/rust-toolchain (from deprecated actions-rs/toolchain) - Run cargo directly instead of deprecated actions-rs/cargo - Add PostgreSQL readiness wait step - Add BENCHMARK_LINK_COUNT env var (1000 for main, 10 for PRs) - Only run benchmark result prep on main/master push - Auto-commit benchmark results to Docs/ and README.md - Change image storage from gh-pages to main branch Docs/ - Update out.py files (rust and cpp): - Add results.md output for CI to update README - Improve graph visibility with minimum bar width - Add proper debug logging - Fix annotation format (use "x faster" instead of "+ times faster") - Improve chart titles to be more descriptive - Update README.md: - Change image links from gh-pages to main branch - Add Docs/ directory for storing benchmark result images 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This reverts commit 3f61b63.
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
|
We need to make sure in Pull Requests we use 10 links for the size operations to benchmark. And 1000 on push to default branch. Also we need these codefactor checks to be fixed. |
|
🤖 AI Work Session Started Starting automated work session at 2025-12-27T12:28:55.462Z The PR has been converted to draft mode while work is in progress. This comment marks the beginning of an AI work session. Please wait working session to finish, and provide your feedback. |
- Remove multiple spaces before/after operators and commas - Fix alignment in rust/out.py and cpp/out.py - All spacing now follows PEP 8 style guidelines These changes address the CodeFactor warnings mentioned in PR #14 comments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
CodeFactor Issues Fixed ✅I've fixed all the CodeFactor style issues mentioned in the comments: Changes made:
BENCHMARK_LINK_COUNT Configuration:
This is configured in BENCHMARK_LINK_COUNT: ${{ (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')) && '1000' || '10' }}The benchmark CI is currently running with the reduced link count. Once it completes, we can verify everything is working correctly. |
Update: Monitoring Benchmark RunThe benchmark CI is currently running (has been running for ~25 minutes). This is expected behavior as:
The benchmark run is progressing normally. Once it completes, all CI checks should pass. The run can be monitored at: |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
|
We need to make sure all warnings in rust code from https://github.com/linksplatform/Comparisons.PostgreSQLVSDoublets/actions/runs/20539074850/job/59001004505?pr=14 are solved. Also we need to make sure our RUST code have links count for operations and background links configurable. So our We should also have different Also I think |
|
🤖 AI Work Session Started Starting automated work session at 2025-12-27T15:15:52.262Z The PR has been converted to draft mode while work is in progress. This comment marks the beginning of an AI work session. Please wait working session to finish, and provide your feedback. |
- Remove unused import: doublets::Doublets in lib.rs - Replace hardcoded BACKGROUND_LINKS constant with background_links() function - Add benchmark_links() function for configurable operation count - Update all benchmark files to use the new functions - Rename BENCHMARK_LINK_COUNT to BENCHMARK_LINKS in workflow - Add BENCHMARK_BACKGROUND_LINKS (100 for PRs, 100000 for main branch) Environment variables: - BENCHMARK_LINKS: number of links per operation (10 for PRs, 1000 for main) - BENCHMARK_BACKGROUND_LINKS: background links count (100 for PRs, 100000 for main) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Changes Implemented ✅Based on the feedback in the comments, the following changes have been made: 1. Fixed Rust Compiler Warnings:
2. Made Benchmark Parameters Configurable via Environment Variables:
3. Renamed Environment Variable:
4. Updated Rust Code:
CI Status:
The PR is now ready for review. |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
🔄 Auto-restart 1/3Detected uncommitted changes from previous run. Starting new session to review and commit them. Uncommitted files: Auto-restart will stop after changes are committed or after 2 more iterations. Please wait until working session will end and give your feedback. |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
Summary
This PR applies best practices from the Comparisons.Neo4jVSDoublets repository as requested in issue #13.
Changes Applied
GitHub Actions Workflow (
rust.yml):actions/checkoutfrom v2 to v4actions-rs/toolchainwithdtolnay/rust-toolchainactions-rs/cargoaction, using directcargocommandsBENCHMARK_LINKS: Uses 10 links for PRs (quick verification), 1000 for main branchBENCHMARK_BACKGROUND_LINKS: Uses 100 for PRs, 100000 for main branchgh-pagesbranch tomainbranchDocs/directoryRust Code (
rust/src/lib.rs):doublets::DoubletsBACKGROUND_LINKSconstant withbackground_links()functionbenchmark_links()function for configurable operation countBenchmark Files:
each_*benchmarksOutput Scripts (
rust/out.py,cpp/out.py):results.mdfile output for CI to automatically update READMEREADME.md:
Directory Structure:
Docs/directory with.gitkeepplaceholder for storing benchmark result imagesTest Plan
Fixes #13
🤖 Generated with Claude Code