Skip to content

Mitts 0.2.1

Choose a tag to compare

@alex09x alex09x released this 19 Oct 18:40
· 518 commits to main since this release

Mitts 0.2.1 refines the native Rust action-key model, CAS artifact naming, single-flight compile locking, and the unified T0–T5 cross-filesystem benchmark harness (XFS, ext4, and macOS APFS).

Engine and cache (src/adapter/rust/)

  • Fine-grained dep-info input keying (14084e4, 82295e3):
    • Units without impure proc-macros are keyed by crate root (unit.src_path), common build inputs, and the exact files recorded by rustc / build.rs in .d dep-info rather than hashing the entire package tree.
    • Cargo.lock and non-build manifest metadata fields (description, readme, documentation, homepage, repository, keywords, categories, authors) are excluded from unit action keys, so edits to non-compiled files, tests/, benches/, or docs no longer invalidate library/binary units.
  • Result-keyed CAS artifact naming (0b5bbfc):
    • Shared CAS artifacts (-C metadata / extra_filename) are named by the fine-grained result_key rather than the coarse action key, eliminating StableCrateId collisions when units share a coarse action key across different .d dep-info inputs.
  • Build-script key normalization (2ca59e6, 3d37500):
    • Empty [target.*] tables left after stripping dev-dependencies are dropped from normalized manifests.
    • Test-only manifest tables ([[bench]], [[test]], [[example]], [dev-dependencies]) are excluded from build.rs action keys, so benchmark/test/doc-only commits hit the CAS without re-executing build.rs.
  • Source-aware single-flight compile lock (4e262ae):
    • Cross-process single-flight compilation locks include the crate root's directory tree (src/), preventing false serialization across concurrent worktrees checked out at different commits in T5.

Unified T0–T5 Benchmark Suite (scripts/)

  • Interleaved S1 cold-build arms with rotation and fresh mtimes (copy_repo_tree) for fair incremental comparisons (a12b531).
  • Linux PSI CPU pressure sampling (cpu_some_avg10), NOISY variance gate (<= 15% spread across sound arms), and INVALID_L5 / INVALID_T5 soundness gates with status_flags tracking (83dce9d, be1ecef, aa51e8a, 6e7814c).
  • #![no_std]-compatible L5b clippy anomaly injection ("a".len() == 0) (be1ecef).
  • Automatic RLIMIT_NOFILE promotion (65536) on macOS so 12-worktree sccache swarms do not exhaust the default 256-FD soft limit (aa51e8a), plus rlimit_nofile_soft, sched_pri, and nice provenance recording (1a9d383).

Full history: v0.2.0...v0.2.1