Repository navigation
perf(ci): remove duplicate DuckDB integration test work - #2171
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: shm11C3/HardwareVisualizer/.coderabbit.yml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (9)
Limit details: You’ve used all 4 included reviews currently available. Your 65 included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour. 📝 WalkthroughWalkthroughChangesDuckDB native storage
Priority: ⬇️ Low Estimated code review effort: 4 (Complex) | ~60 minutes Change: Other 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Usage-based review receipt
Note This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. View usage-based billing. Comment |
Consolidate the compatible native and reconcile integration families while retaining process-isolated db initialization targets and one App-owned migration/schema test owner. Build the Windows Core test archive once, run two nextest consumers, and compare a pinned baseline with the unsharded head in a Draft-only PoC workflow.
1f6c2fd to
3b2cd6a
Compare
Coverage Report
File CoverageNo changed files found. |
Rust Tauri Coverage ReportCoverage Details |
E2E capturesEvidence captures for |
Allow the intentional duplicate path loads only in the DuckDB umbrella test target so App-owned tests remain covered without weakening release lint policy. Make the inventory comparator output unambiguous counts and test keys, and apply the repository Biome formatting to both scripts.\n\nValidated with the CI clippy command on Rust 1.98.1, Biome CI for both scripts, cargo fmt, diff check, and inventory fixtures.
Drop the unproven Windows archive fanout and its measurement-only tooling. Keep the integration-test restructuring that removed 414 duplicate App test executions while preserving the unique test inventory.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…2164) * feat(database): checkpoint after native expiry and retire the SQLite source Adds NativeDatabase::checkpoint (one write-lane CHECKPOINT, per the retention evidence), retires the SQLite source by renaming it in place on a later verified native startup, and records the App lifecycle state vocabulary in the Design Doc. Rebuilt on develop after #2155 and #2158 were squash-merged; the checkpoint tests moved to core/tests/duckdb/native.rs with #2171's test layout. * docs(design): describe the lifecycle vocabulary as a projection of AuthorityState Two Core states map onto ConversionRecoverable, and ActionRequired also carries NativeOpenFailed, so 'lossless translation' overstated it. * test(database): assert the row written before the checkpoint survives it The fixture already holds process rows, so a non-empty result proved nothing. Also narrow the Design Doc's single-source claim: inspect_startup_authority is the only reader of Core's authority inspection, while the conversion driver and the native open path also produce lifecycle states. * feat(database): run the application on the selected native backend Fold the #2135 lifecycle onto the #2134 dispatch boundary: one startup decision (resolve_native_authority) that dispatch only adopts, the conversion driver handing the selected database to dispatch inside the paused block, producers starting on a native-authoritative boot, the expiry pass ending with dispatch::checkpoint, and shutdown closing the boundary after the writers drain. Includes the review fixes for the hand-over (explicit SelectionHandoff, NativeSelected as the only success, short-circuit while dispatch owns the file). * fix(tauri): keep producers paused when the selected database is not served Address review on #2164. Inside the paused block ActionRequired means the selection is durable but opening the database or handing it to dispatch failed, so SQLite is stale and dispatch either still routes to it or refuses every consumer. Producers now stay stopped in that case, as they do after a startup that ends in ActionRequired, and the entry path that later completes the hand-over restarts them if none are running. The conversion integration test drains its workers through terminate_all instead of closing dispatch underneath them, and the schema definitions comment names the startup function that replaced initialize_native_database_dispatch.






































Summary
Remove repeated DuckDB integration-test work without changing production behavior or CI topology.
duckdb_native.The fixed-revision inventory comparison retained all 1,050 semantic test identities, including the ignored case. It reduced executed test instances from 1,463 to 1,049 by removing 414 duplicate executions. The earlier Windows archive fanout and measurement workflow were removed because hosted runs did not establish a stable end-to-end gain.
Related Issues
CI performance investigation; no product issue.
Type of Change
fix/branch)feat/branch)refactor/branch)perf/branch)docs/branch)chore/branch)Screenshots / Videos
Not applicable.
Test Plan
Validation on the final diff:
cargo test -p hardviz-core --features duckdb-archive --test duckdb_native: 60 passed.cargo clippy -p hardviz-core --features duckdb-archive --all-targets -- -D warnings: passed.cargo fmt --all -- --check: passed.git diff --check origin/develop...HEAD: passed.Checklist
Summary by CodeRabbit
Bug Fixes
Refactor