Skip to content

Release v0.3.12

Choose a tag to compare

@Kirky-X Kirky-X released this 29 Jul 18:35
· 232 commits to main since this release

This release updates the dependency group.

Bug Fixes

  • P-DB: dynamic max_db_size + --fresh flag — compute_max_db_size (80% of available disk space, a power of two, clamped to [16 GiB, 4 TiB], cached with OnceLock) + the --fresh flag (delete old DB files to reclaim dead space, with .lbug validation + TOCTOU fix)
  • P-DB-fix C1 CRITICAL: read-only max_db_size 16 GiB → 4 TiB cap — the lbug VMRegion uses max_db_size to determine the mmap region size, and read-only queries touching pages >16 GiB trigger a BufferManagerException
  • P-DB-fix H1 HIGH: --fresh added to SENTINEL_DEFAULTS — previously sdforge marked required=true, so users had to pass --fresh false
  • P-DB-fix M1: handle_fresh_flag uses parse::<bool>() — keep it consistent with the handler's bool::from_str
  • P-DB-fix MEDIUM-2: exit code 4 → 6 — InvalidInput semantics conflict with NotFound's exit 4
  • P-DB-fix LOW-2: Ok(false) logs info — make the --fresh effective state visible to users
  • P-DB-fix L-2: checked_next_power_of_two — eliminate a theoretical panic risk

Other Changes

  • Change DuckDB max_db_size from a hardcoded 16 GiB to dynamic calculation, resolving DB bloat (6.6 MB of source accumulated into a 35 GB DB after multiple --force runs). Change the read-only connection max_db_size from 16 GiB to a 4 TiB cap, fixing the CRITICAL bug where querying a >16 GiB DB crashed.
  • tiangang SAST: 0 CRITICAL / 0 HIGH ✅
  • diting architecture + performance: 0 HIGH / 0 CRITICAL ✅
  • kueiku hard-bug analysis: 1 CRITICAL + 1 HIGH found and fixed ✅
  • 4490 tests passed, 0 clippy warnings
  • cargo audit + cargo deny passed
  • coverage ≥95%
  • chore(deps): bump softprops/action-gh-release from 3.0.1 to 3.0.2 in the minor-and-patch group by @dependabot[bot] in #28

Related PRs / Issues

  • #28 — bump softprops/action-gh-release from 3.0.1 to 3.0.2 in the…

Full changelog: v0.3.11...v0.3.12