diff --git a/AGENTS.md b/AGENTS.md index 1725af1..338a2c9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -124,7 +124,7 @@ Favor the invariant over a convenient edit or faster implementation. ## Rust and API Design - Keep the MSRV and contributor/CI toolchain aligned across `Cargo.toml`, - `rust-toolchain.toml`, and `clippy.toml`; the current baseline is 1.99.1. + `rust-toolchain.toml`, and `clippy.toml`; the current baseline is 1.100.0. - Rust's `f64::algebraic_*` operations are forbidden in all repository-owned Rust, including tests, examples, and benchmarks, except intentional Semgrep fixtures under `tests/semgrep/` whose `f64::algebraic_*` usage is diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1e75664..dfa464a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -213,7 +213,7 @@ Any future approximate or fast-math API requires a separate design issue, an explicit public contract, independent correctness analysis, and representative benchmarks. It must remain opt-in and must not change existing APIs. -The current MSRV and contributor toolchain are Rust 1.99.1. Both workspace +The current MSRV and contributor toolchain are Rust 1.100.0. Both workspace manifests and `clippy.toml` match `rust-toolchain.toml`; CI, coverage, and release setup consume that declaration. Run `just setup-tools` after changing it: managed Cargo tools are installed separately for each compiler version. diff --git a/Cargo.lock b/Cargo.lock index 892344c..2a59897 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -104,9 +104,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.20.3" +version = "3.20.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" +checksum = "87a0cf66fd1eb2fb7b822cb78370d82303750809bc6ba855f3f58e517d3238db" [[package]] name = "bytemuck" @@ -148,9 +148,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" [[package]] name = "cc" -version = "1.11.1" +version = "1.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ff2a8126fff0f8c839080d619675a585e61720bb12d2baceae45769fd66f155" +checksum = "33ef9e3e8154a45c7a95cff4c1299702106ad94062d7bb85fdc5d3a5afd91d45" dependencies = [ "find-msvc-tools", "shlex", @@ -395,9 +395,9 @@ checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" [[package]] name = "errno" -version = "0.3.14" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +checksum = "e35d6e78f4cebb90e51d543db8fe41528851d6deeef6ef21ebd4bfdc1e784776" dependencies = [ "libc", "windows-sys", @@ -1104,9 +1104,9 @@ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" [[package]] name = "rand" -version = "0.10.3" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af" +checksum = "8f6fa277c67e6ea590466f04c3fe82cb509f0864fe470643e5570de9514a9b11" dependencies = [ "getrandom", "rand_core", diff --git a/Cargo.toml b/Cargo.toml index 00a07ec..2a5072b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,14 +2,13 @@ name = "la-stack" version = "0.5.3" edition = "2024" -rust-version = "1.99.1" +rust-version = "1.100.0" autobenches = false license = "BSD-3-Clause" description = "Fast, stack-allocated linear algebra for fixed dimensions" readme = "README.md" documentation = "https://docs.rs/la-stack" repository = "https://github.com/acgetchell/la-stack" -homepage = "https://github.com/acgetchell/la-stack" categories = [ "mathematics", "science" ] keywords = [ "linear-algebra", "geometry", "const-generics", "exact-arithmetic", "robust-predicates" ] include = [ @@ -146,6 +145,14 @@ resolver = "3" [lints] workspace = true +[workspace.lints.cargo] +missing_lints_inheritance = "deny" +redundant_homepage = "deny" +unknown_lints = "deny" +unused_dependencies = "deny" +unused_workspace_dependencies = "deny" +unused_workspace_package_fields = "deny" + [workspace.lints.rust] warnings = { level = "deny", priority = -1 } unsafe_code = "forbid" diff --git a/README.md b/README.md index 77c5535..b0af4f2 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ values and sparse polynomials use heap allocation. ## 🚀 Quickstart -The minimum supported Rust version (MSRV) is 1.99.1. +The minimum supported Rust version (MSRV) is 1.100.0. Add this to your `Cargo.toml`: @@ -578,10 +578,12 @@ For the current release-to-release performance snapshot, see [docs/performance.md](https://github.com/acgetchell/la-stack/blob/main/docs/performance.md). The exact release selection includes rational-input groups for D=2 through D=8, covering `RationalMatrix::det_sign`, `det`, and `solve` with Criterion point -estimates and confidence intervals. Comparisons against a pre-API baseline retain -supported new workloads as explicit current-only measurements. The benchmark -target also provides `BigRational` Gaussian references for optional diagnostics; -those reference timings are excluded from required release acquisition. +estimates and confidence intervals. New exact comparisons require these groups +in both baseline and current phases. Only frozen historical reports whose +baseline predates the rational-input API may retain current-only rows, with a +coverage note and no cross-release ratio. The benchmark target also provides +`BigRational` Gaussian references for optional diagnostics; those reference +timings are excluded from required release acquisition. The focused `interval` Criterion suite covers conclusive and inconclusive relative-coordinate lifted determinant signs at D=4 and the maximum supported diff --git a/benches/common/exact.rs b/benches/common/exact.rs index 7f014c8..ab5e9f4 100644 --- a/benches/common/exact.rs +++ b/benches/common/exact.rs @@ -103,7 +103,7 @@ impl SplitMix64 { clippy::cast_possible_truncation, reason = "an inclusive i16 range has width at most 65,536, so its modulo offset fits i32" )] - let offset = (self.next_u64() % range.width.get()) as i32; + let offset = (self.next_u64() % range.width) as i32; let value_i32 = i32::from(range.min) + offset; #[expect( clippy::cast_possible_truncation, diff --git a/benches/common/rational_solve.rs b/benches/common/rational_solve.rs index 88b788f..8ec3271 100644 --- a/benches/common/rational_solve.rs +++ b/benches/common/rational_solve.rs @@ -200,10 +200,6 @@ pub fn solve_input(structure: Structure, dyadic: bool) -> Valida /// `src/geometry/matrix.rs`, lines 215–256. Arithmetic, cloning, and zero skips /// are retained; only the function name and visibility differ. #[must_use] -#[expect( - clippy::needless_range_loop, - reason = "preserve the captured legacy control" -)] pub fn legacy_solve( mut matrix: Vec>, mut rhs: Vec, diff --git a/benches/comparison/Cargo.toml b/benches/comparison/Cargo.toml index 16b0cd8..55df071 100644 --- a/benches/comparison/Cargo.toml +++ b/benches/comparison/Cargo.toml @@ -2,7 +2,7 @@ name = "la-stack-comparison" version = "0.0.0" edition = "2024" -rust-version = "1.99.1" +rust-version = "1.100.0" publish = false autobenches = false diff --git a/clippy.toml b/clippy.toml index 7ce9201..ce6d2d2 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1,6 +1,6 @@ # Clippy configuration for the la-stack crate. # Keep lint behavior aligned with Cargo.toml and rust-toolchain.toml. -msrv = "1.99.1" +msrv = "1.100.0" # Lint levels are owned by Cargo.toml. diff --git a/docs/BENCHMARKING.md b/docs/BENCHMARKING.md index bb73cf4..bf580e9 100644 --- a/docs/BENCHMARKING.md +++ b/docs/BENCHMARKING.md @@ -29,7 +29,7 @@ For a release comparison, `just performance-release` fetches tags and prepares independent source assertions before measurement. For preparation alone, `just performance-prepare` uses local tags; add `--fetch-tags --allow-git-mutations` to fetch them. Fetching and measurement recipes' temporary worktrees require -authorization. Both labels of new measurements must be v0.5.0 or newer. +authorization. Both labels of new measurements must be v0.5.2 or newer. Preparation also saves independent release tags and commits for a later `just performance-readme` invocation in ignored `target/bench-reports/release-inputs.json`. For an explicit prepared pair, set @@ -114,14 +114,11 @@ The `public-release-and-paired-lu-peers-v4` policy includes column bases, interval division/solves, rational dot products, and polynomial determinants. The full la-stack selection has 736 default-feature and 667 exact-feature cases. Local `performance-release`, `performance-local`, and full `performance-measure` -measure all 1,403 cases at the current revision under one captured harness. -Baselines before v0.5.2 measure 1,254 shared library cases: 646 default-feature -and 608 exact-feature cases. Column bases, interval division/solves, rational dot -products and polynomial determinants were introduced in v0.5.2. Their 149 cases -are required on each supported revision and unavailable on older revisions. -The independent catalog's `[availability]` table and the schema-6 suite bounds -declare this boundary. Resolution uses the original source receipt before -overlaying the current harness; a supported compile failure remains an error. +measure all 1,403 cases on both revisions under one captured harness. +Every supported release provides column bases, interval division/solves, rational +dot products and polynomial determinants. The full and non-exact declarations +reject releases before v0.5.2 before native compilation. Every suite is required +on both phases; discovery or compilation failures remain errors. Both phases also measure the 16 native nalgebra/faer LU factorization-plus-one-solve cases at D=2, 3, 4, 5, 8, 16, 32 and 64. Each phase's eight matching la-stack cases and 16 peers share one `lu-solve` acquisition unit. The README uses @@ -138,7 +135,7 @@ retains the observed inventory and rejects missing required cases. The installed engine rejects duplicate semantic IDs and incomplete raw samples. The full plan uses one sequential trial; README and LU plots explicitly select -trial 1. Baseline selectors include README because historical compilers read it. +trial 1. Baseline selectors include README because v0.5.2 compilation reads it. Current source includes README only during rustdoc; current native gates verify that both debug and release dependency files exclude it before timing. Full comparison with an older current revision that still compiles README is rejected. @@ -185,10 +182,8 @@ The paired-suite migration implements that decision within the current schema-6 schedule; historical acquisitions retain their original policy and bytes. The shared reporter prints the discovered case count and nominal timing budget -before samples are acquired. With a pre-v0.5.2 baseline, the plan has 2,689 -measurements and a nominal 358.5-minute warmup-plus-measurement budget. A baseline -at v0.5.2 or later requires 2,838 measurements and 378.4 nominal minutes. -Both budgets exclude compilation, gates and analysis. +before samples are acquired. The plan requires 2,838 measurements and a nominal +378.4-minute warmup-plus-measurement budget, excluding compilation, gates and analysis. `performance-release` records preparation, measurement and promotion elapsed seconds and exit status in ignored `target/bench-reports/full/runtime.txt`, including failures. The timer starts after Just's prerequisite checks. Use `time just performance-release` @@ -219,10 +214,10 @@ diagnosing failure. Retry a failed report promotion with `just performance-promote`, or README publication with `just performance-readme`. Neither reacquires samples. -Each suite compares revisions only when both implement its API. Earlier baselines -retain explicit unavailable cells for new APIs; supported discovery failures -remain errors. Existing retained reports remain historical and do not satisfy -the expanded inventory; changing this plan does not rewrite them. +Every suite compares the same required APIs on both revisions. Existing retained +reports may contain unavailable cells from earlier release comparisons; they +remain historical and do not satisfy the current inventory. Changing this plan +does not rewrite them. **`public_api`** (`benches/public_api.rs`) owns construction, access, mutation, symmetry, direct determinant certificates, interval determinant queries, and @@ -869,7 +864,7 @@ that the D=2–4 headline fixtures resolve through the floating-point filter, so those rows continue to measure the intended common path. Use a current shared-harness comparison between supported releases before attributing timing changes to the library implementation. v0.4.3 and older cannot be rerun with the -current workflow. +current workflow, which requires v0.5.2 or newer. Archived reports may show rows such as `det_exact_rounded_f64 (vs det_exact_f64)` or `det_exact_f64_result (vs det_exact_f64)`. Those used the historical lossy @@ -932,7 +927,7 @@ release state stop publication. There is no hosted measurement budget. Local sampling remains 100 samples, 100,000 resamples, 95% confidence, 3-second warmup and 5-second measurement. -With v0.5.2-or-later baseline availability, 2,838 case observations imply 378.4 +The 2,838 case observations imply 378.4 minutes of nominal warmup/measurement plus setup; this is a planning estimate, not measured runtime or an upper bound. Resume retains completed suite pairs inside the single scheduled trial without discarding original provenance. diff --git a/pyproject.toml b/pyproject.toml index 7ef5a81..67fb3e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,7 +87,7 @@ line-length = 160 [tool.uv] package = false -required-version = "==0.13.7" +required-version = "==0.13.8" # Semgrep stopped shipping Intel macOS wheels after 1.182.1. constraint-dependencies = [ "semgrep==1.182.1; sys_platform == 'darwin' and platform_machine == 'x86_64'", @@ -142,14 +142,14 @@ osv-scanner = "2.7.1" cargo-edit = "0.13.14" cargo-llvm-cov = "0.9.1" cargo-machete = "0.9.2" -cargo-nextest = "0.9.151" +cargo-nextest = "0.9.152" clippy-sarif = "0.8.0" dprint = "0.64.3" git-cliff = "2.14.2" -rumdl = "0.3.3" +rumdl = "0.3.4" sarif-fmt = "0.8.0" taplo-cli = "0.10.0" -typos-cli = "1.52.1" +typos-cli = "1.52.2" zizmor = "1.32.0" [tool.research-repo-tools.changelog] diff --git a/rust-toolchain.toml b/rust-toolchain.toml index c42c210..df76fcb 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,6 +1,6 @@ [toolchain] # Pin to MSRV as specified in Cargo.toml -channel = "1.99.1" +channel = "1.100.0" # Components used by the shared development and CI toolchain. components = [ diff --git a/src/exact.rs b/src/exact.rs index 54d8de7..7ad5249 100644 --- a/src/exact.rs +++ b/src/exact.rs @@ -1192,7 +1192,7 @@ fn bareiss_forward_eliminate( if let Some(r) = &mut rhs { r.swap(k, i); } - odd_swaps = !odd_swaps; + odd_swaps.toggle(); found = true; break; } diff --git a/src/ldlt.rs b/src/ldlt.rs index be451ac..e218d2c 100644 --- a/src/ldlt.rs +++ b/src/ldlt.rs @@ -138,10 +138,6 @@ impl Ldlt { let l_i = rows[i][j]; let l_i_d = l_i * d; - #[expect( - clippy::needless_range_loop, - reason = "the triangular column index coordinates multiplier reads with in-place trailing-row writes" - )] for k in (j + 1)..=i { let l_k = rows[k][j]; let new_val = (-l_i_d).mul_add(l_k, rows[i][k]); @@ -165,10 +161,6 @@ impl Ldlt { let l_i_d = l_i * d; - #[expect( - clippy::needless_range_loop, - reason = "the triangular column index coordinates normalized-column reads with the fused in-place update" - )] for k in (j + 1)..=i { let l_k = rows[k][j]; let new_val = (-l_i_d).mul_add(l_k, rows[i][k]); diff --git a/src/lib.rs b/src/lib.rs index 2037e44..560765d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1119,7 +1119,7 @@ const EPS: f64 = f64::EPSILON; // 2^-52 /// # Ok(()) /// # } /// ``` -pub const ERR_COEFF_2: f64 = 3.0 * EPS + 16.0 * EPS * EPS; +pub const ERR_COEFF_2: f64 = (16.0 * EPS).mul_add(EPS, 3.0 * EPS); /// Absolute error coefficient for [`Matrix::<3>::det_direct`](crate::Matrix::det_direct). /// @@ -1146,7 +1146,7 @@ pub const ERR_COEFF_2: f64 = 3.0 * EPS + 16.0 * EPS * EPS; /// [`Matrix::det_direct_with_errbound`](crate::Matrix::det_direct_with_errbound) /// over this constant for typical use; see [`ERR_COEFF_2`] for a worked /// example. -pub const ERR_COEFF_3: f64 = 8.0 * EPS + 64.0 * EPS * EPS; +pub const ERR_COEFF_3: f64 = (64.0 * EPS).mul_add(EPS, 8.0 * EPS); /// Absolute error coefficient for [`Matrix::<4>::det_direct`](crate::Matrix::det_direct). /// @@ -1174,7 +1174,7 @@ pub const ERR_COEFF_3: f64 = 8.0 * EPS + 64.0 * EPS * EPS; /// [`Matrix::det_direct_with_errbound`](crate::Matrix::det_direct_with_errbound) /// over this constant for typical use; see [`ERR_COEFF_2`] for a worked /// example. -pub const ERR_COEFF_4: f64 = 12.0 * EPS + 128.0 * EPS * EPS; +pub const ERR_COEFF_4: f64 = (128.0 * EPS).mul_add(EPS, 12.0 * EPS); /// Largest dimension supported by [`try_with_stack_matrix!`]. /// diff --git a/src/lu.rs b/src/lu.rs index 5a2b522..8d46c22 100644 --- a/src/lu.rs +++ b/src/lu.rs @@ -106,10 +106,8 @@ impl RowPermutation { /// Apply one row swap and update parity atomically. const fn swap(&mut self, left: usize, right: usize) { if left != right { - let source_row = self.source_rows[left]; - self.source_rows[left] = self.source_rows[right]; - self.source_rows[right] = source_row; - self.odd = !self.odd; + self.source_rows.swap(left, right); + self.odd.toggle(); } } @@ -197,10 +195,6 @@ impl Lu { let mult = rows[r][k] / pivot; rows[r][k] = mult; - #[expect( - clippy::needless_range_loop, - reason = "the column index pairs pivot-row reads with eliminated-row writes in the in-place update" - )] for c in (k + 1)..D { let updated = (-mult).mul_add(rows[k][c], rows[r][c]); rows[r][c] = updated; diff --git a/src/matrix.rs b/src/matrix.rs index f5f5b3d..51aa8d5 100644 --- a/src/matrix.rs +++ b/src/matrix.rs @@ -875,10 +875,10 @@ impl Matrix { // gradual-underflow discrepancy avoided by the direct path above. let mut eps = rel_tol; - for r in 0..D { + for (r, row) in self.rows.iter().enumerate() { let mut row_eps = 0.0; - for c in 0..D { - row_eps = rel_tol.mul_add(self.rows[r][c].abs(), row_eps); + for (c, value) in row.iter().enumerate() { + row_eps = rel_tol.mul_add(value.abs(), row_eps); if !row_eps.is_finite() { cold_path(); return Err(LaError::non_finite_computation_matrix( diff --git a/tests/tooling/test_performance_workflow.py b/tests/tooling/test_performance_workflow.py index f277ee4..95309ba 100644 --- a/tests/tooling/test_performance_workflow.py +++ b/tests/tooling/test_performance_workflow.py @@ -30,7 +30,7 @@ from research_repo_tools.publication import publish_publication from research_repo_tools.release_assets import GitHubRelease, ReleaseTarget, serialize_release_target from research_repo_tools.release_pairs import ReleasePair -from research_repo_tools.scheduled_runs import ScheduledRun, select_trial +from research_repo_tools.scheduled_runs import select_trial from research_repo_tools.suite_measurement import SuiteMeasurementPlan from research_repo_tools.suite_runs import comparison_incompatibilities, parse_suite_run from research_repo_tools.worktrees import capture_snapshot @@ -43,7 +43,7 @@ from research_repo_tools.evidence import Evidence ROOT = Path(__file__).resolve().parents[2] -PAIR = ReleasePair("v0.5.2", "v0.5.1") +PAIR = ReleasePair("v0.5.3", "v0.5.2") DRIVER = """import json, os, sys from pathlib import Path phase, suite, action = sys.argv[1:] @@ -103,23 +103,6 @@ def scientific_ids(view: str = "full") -> tuple[set[str], set[str]]: return library, peers -def baseline_ids(view: str = "full", release: str = PAIR.baseline) -> set[str]: - """Derive historical expectations from the independent scientific API catalog.""" - library, _peers = scientific_ids(view) - if view != "full": - return library - catalog = tomllib.loads((ROOT / "tooling/performance-policy.toml").read_text(encoding="utf-8")) - version = tuple(map(int, release.removeprefix("v").split("."))) - return { - name - for name in library - if not any( - fnmatch.fnmatchcase(name, pattern) and version < tuple(map(int, since.removeprefix("v").split("."))) - for pattern, since in catalog["availability"].items() - ) - } - - def suite_ids() -> dict[str, set[str]]: """Partition the scientific catalog independently of the acquisition declaration.""" catalog = tomllib.loads((ROOT / "tooling/performance-policy.toml").read_text(encoding="utf-8")) @@ -148,7 +131,7 @@ def synthetic_timings() -> dict[str, dict[str, dict[str, float]]]: } -@pytest.mark.parametrize("release", ["v0.5.0", "v0.5.1", "v0.5.2", "v0.5.3"]) +@pytest.mark.parametrize("release", ["v0.5.2", "v0.5.3"]) def test_declared_scientific_sampling_coverage_and_original_peer_phases(release: str) -> None: plan = declaration(ROOT) assert isinstance(plan, SuiteMeasurementPlan) @@ -158,8 +141,10 @@ def test_declared_scientific_sampling_coverage_and_original_peer_phases(release: assert len(peers) == 16 assert set().union(*expected.values()) == library | peers assert sum(map(len, expected.values())) == len(library | peers) - available: set[str] = set() for suite in plan.suites: + assert suite.since is None + assert suite.before is None + assert suite.decision(release, "{}")["state"] == "available" assert suite.nominal_seconds_per_case == 8 assert suite.measurement.baseline.command == suite.measurement.current.command assert suite.measurement.current.gate == (*suite.measurement.baseline.gate[:-1], suite.measurement.baseline.gate[-1] + "-current") @@ -178,10 +163,7 @@ def test_declared_scientific_sampling_coverage_and_original_peer_phases(release: assert environment["CARGO_TARGET_DIR"] == "target/build" assert environment["CARGO_BUILD_BUILD_DIR"] == "target/build/intermediates" assert environment["RUSTUP_TOOLCHAIN"] == tomllib.loads((ROOT / "rust-toolchain.toml").read_text(encoding="utf-8"))["toolchain"]["channel"] - if suite.decision(release, "{}")["state"] == "available": - available.update(expected[suite.name]) assert {"context.os", "context.architecture", "context.cpu", "harness_sha256"} <= set(suite.measurement.measurement.compatible) - assert available == baseline_ids(release=release) | peers lu = next(suite for suite in plan.suites if suite.name == "lu-solve") assert {item.name: item.phase for item in lu.measurement.series} == { "la-stack baseline": "baseline", @@ -273,12 +255,10 @@ def test_routine_ci_validates_benchmarks_without_acquiring_timings() -> None: ("pattern", "count"), [("column_basis/*", 55), ("interval_division/*", 5), ("interval_solve_d*/*", 30), ("polynomial/*", 5), ("rational_dot/*", 54)], ) -def test_new_api_coverage_is_complete_without_inventing_baseline_timings(pattern: str, count: int) -> None: +def test_public_api_family_coverage_is_complete(pattern: str, count: int) -> None: library, _peers = scientific_ids() current = {name for name in library if fnmatch.fnmatchcase(name, pattern)} assert len(current) == count - assert current.isdisjoint(baseline_ids(release="v0.5.1")) - assert current <= baseline_ids(release="v0.5.2") def test_named_views_keep_every_metric_statistic_axis_and_explicit_input_choice() -> None: @@ -450,7 +430,7 @@ def test_native_recipes_preserve_scientific_gates_and_peer_reuse() -> None: measured_targets.add(target["name"]) gate = dry_run(ROOT, suite.measurement.current.gate[-1], justfile=justfile).stderr assert "cargo test --locked" in gate - if suite.since: + if suite.name in {"column-basis", "interval-solve", "polynomial", "rational-dot"}: assert suite.name.replace("-", "_") in gate or "polynomial_bench_inputs" in gate targets = { bench["name"] @@ -475,11 +455,10 @@ def test_native_recipes_preserve_scientific_gates_and_peer_reuse() -> None: def prepared(tmp_path: Path, pair: ReleasePair = PAIR) -> tuple[Path, Path]: """Replace only native timing/gates with a bounded fixture, retaining real policy.""" - _library, peers = scientific_ids() diagnostic_library, diagnostic_peers = scientific_ids("non-exact") ids = { side: { - **{name: sorted(cases) for name, cases in suite_ids().items() if side == "current" or cases <= baseline_ids(release=pair.baseline) | peers}, + **{name: sorted(cases) for name, cases in suite_ids().items()}, "all": [], "vs_linalg": sorted(diagnostic_library | (diagnostic_peers if side == "baseline" else set())), } @@ -591,10 +570,8 @@ def test_shared_progress_reports_validated_inventory_and_unknown_eta(measured_ru events = json.loads((root / "target/progress.json").read_text(encoding="utf-8")) budget = next(event for event in events if event["event"] == "budget") library, peers = scientific_ids() - baseline = baseline_ids() | peers - total = len(baseline) + len(library) - total += len(peers) - assert total == 2689 + total = 2 * len(library | peers) + assert total == 2838 assert budget["total"] == budget["remaining"] == budget["unknown_cases"] == total assert budget["completed"] == 0 assert budget["eta_seconds"] is None @@ -621,45 +598,26 @@ def test_shared_progress_reports_validated_inventory_and_unknown_eta(measured_ru assert comparison_incompatibilities(trial, ("current", f"d{dimension}/{peer}_lu_solve"), ("current", library_id)) == () -@pytest.mark.parametrize("baseline", ["v0.5.0", "v0.5.2", "v0.5.3"]) -def test_api_availability_uses_original_source_receipts(tmp_path: Path, baseline: str) -> None: - """The common harness must not change which original revision supports an API.""" - pair = ReleasePair("v0.5.4", baseline) - _baseline, current = prepared(tmp_path, pair) - plan = declaration(current) - assert isinstance(plan, SuiteMeasurementPlan) - # Shared suites have complete-inventory coverage above. Isolate all four - # introduction boundaries here while retaining every one of their 149 cases. - selected = replace(plan, suites=tuple(suite for suite in plan.suites if suite.since)) - evidence = measure_pair(current, selected, pair, working_tree=True, progress=ProgressReporter(mode="none")) - run = validate_run_policy(evidence, selected) - assert isinstance(run, ScheduledRun) - phases = dict(parse_suite_run(select_trial(evidence, 1)).phases) - introduced = scientific_ids()[0] - baseline_ids(release="v0.5.1") - assert len(introduced) == 149 - assert set(phases["current"].policy.expected) == introduced - assert set(phases["baseline"].policy.expected) == (set() if baseline == "v0.5.0" else introduced) - - +@pytest.mark.parametrize("release", ["v0.4.6", "v0.5.0", "v0.5.1"]) @pytest.mark.parametrize("phase", ["baseline", "current"]) -def test_full_plan_rejects_unsupported_release_before_native_commands(tmp_path: Path, phase: str) -> None: - """Schema 5 captures source receipts before enforcing the native release floor.""" - pair = ReleasePair("v0.4.6" if phase == "current" else PAIR.current, "v0.4.6" if phase == "baseline" else PAIR.baseline) +def test_full_plan_rejects_unsupported_release_before_native_commands(tmp_path: Path, phase: str, release: str) -> None: + """Reject retired releases before discovery, correctness gates or timing.""" + pair = ReleasePair(release if phase == "current" else PAIR.current, release if phase == "baseline" else PAIR.baseline) _baseline, current = prepared(tmp_path, pair) events: list[dict[str, object]] = [] - with pytest.raises(ValueError, match=r"requires v0\.5\.0 or newer"): + with pytest.raises(ValueError, match=r"requires v0\.5\.2 or newer"): measure_pair(current, declaration(current), pair, working_tree=True, progress=ProgressReporter(mode="none", observer=events.append)) assert not any(event["state"] in {"discovery", "gate", "acquisition"} for event in events) -def test_supported_new_api_discovery_failure_is_not_treated_as_unavailable(tmp_path: Path) -> None: - """Once column bases exist, failed native compilation cannot remove coverage.""" +def test_supported_api_discovery_failure_is_not_treated_as_unavailable(tmp_path: Path) -> None: + """Failed native compilation cannot remove required column-basis coverage.""" pair = ReleasePair("v0.5.3", "v0.5.2") _baseline, current = prepared(tmp_path, pair) plan = declaration(current) assert isinstance(plan, SuiteMeasurementPlan) suite = next(item for item in plan.suites if item.name == "column-basis") - assert suite.since == pair.baseline == "v0.5.2" + assert suite.since is None policy = suite.measurement.baseline.policy assert isinstance(policy, DiscoveryPolicy) assert len(policy.discovery.required) == 55 @@ -1053,7 +1011,7 @@ def test_actual_retention_offline_plot_and_readme_recipes(complete_run: tuple[Pa assert "Speedup vs faer" in document assert "Complete run evidence" in document assert "Evidence envelope" in document - assert "la-stack v0.5.2" in document + assert f"la-stack {PAIR.current}" in document assert "Statistic: median. Unit: ns." in document catalog = tomllib.loads((ROOT / "tooling/performance-policy.toml").read_text(encoding="utf-8")) rows = [ @@ -1146,8 +1104,10 @@ def failed_formatter(*_args: object, **_kwargs: object) -> None: assert {path: path.read_bytes() for path in retained} == retained +@pytest.mark.parametrize("release", ["v0.4.6", "v0.5.0", "v0.5.1"]) +@pytest.mark.parametrize("view", ["full", "non-exact"]) @pytest.mark.parametrize("phase", ["baseline", "current"]) -def test_actual_measurement_recipe_rejects_old_releases_before_git(phase: str, tmp_path: Path) -> None: +def test_actual_measurement_recipe_rejects_old_releases_before_git(phase: str, view: str, release: str, tmp_path: Path) -> None: root = tmp_path / "consumer" root.mkdir() for name in ("pyproject.toml", "uv.lock", ".python-version", "Cargo.toml", "rust-toolchain.toml"): @@ -1159,11 +1119,9 @@ def test_actual_measurement_recipe_rejects_old_releases_before_git(phase: str, t shutil.copyfile(source, destination) (root / "src").mkdir() (root / "src/lib.rs").write_text("// fixture\n", encoding="utf-8", newline="\n") - result = recipe( - root, "performance-measure", "v0.4.6" if phase == "current" else PAIR.current, "v0.4.6" if phase == "baseline" else PAIR.baseline, "non-exact" - ) + result = recipe(root, "performance-measure", release if phase == "current" else PAIR.current, release if phase == "baseline" else PAIR.baseline, view) assert result.returncode != 0 - assert "requires v0.5.0 or newer" in result.stderr + assert "requires v0.5.2 or newer" in result.stderr assert not (root / ".git").exists() assert not (root / "target").exists() diff --git a/tests/tooling/test_release_performance.py b/tests/tooling/test_release_performance.py index 883033b..9488349 100644 --- a/tests/tooling/test_release_performance.py +++ b/tests/tooling/test_release_performance.py @@ -26,7 +26,7 @@ def consumer(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Path: root = tmp_path / "consumer with spaces" root.mkdir() - (root / "Cargo.toml").write_text('[package]\nname = "fixture"\nversion = "0.5.2"\n', encoding="utf-8") + (root / "Cargo.toml").write_text('[package]\nname = "fixture"\nversion = "0.5.4"\n', encoding="utf-8") (root / ".gitignore").write_bytes(b"/target/\n") for name in ("tooling/measurements/full.toml", "tooling/performance-release.toml"): path = root / name @@ -35,8 +35,8 @@ def consumer(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Path: monkeypatch.setenv("GIT_CONFIG_GLOBAL", str(tmp_path / "absent-gitconfig")) monkeypatch.setenv("GIT_CONFIG_NOSYSTEM", "1") run_git_command(["--no-pager", "init", "--quiet"], cwd=root) - for tag in ("v0.4.6", "v0.5.0", "v0.5.1", "head"): - release = "0.5.2" if tag == "head" else tag.removeprefix("v") + for tag in ("v0.5.1", "v0.5.2", "v0.5.3", "head"): + release = "0.5.4" if tag == "head" else tag.removeprefix("v") (root / "Cargo.toml").write_text(f'[package]\nname = "fixture"\nversion = "{release}"\n', encoding="utf-8", newline="\n") run_git_command(["--no-pager", "add", "Cargo.toml"], cwd=root) run_git_command( @@ -75,16 +75,16 @@ def releases(monkeypatch: pytest.MonkeyPatch, *tags: str) -> None: def test_preparation_resolves_prospective_head_or_publication_order( consumer: Path, monkeypatch: pytest.MonkeyPatch, capsys: pytest.CaptureFixture[str], published: bool ) -> None: - current = "v0.5.1" if published else "v0.5.2" + current = "v0.5.3" if published else "v0.5.4" (consumer / "Cargo.toml").write_text(f'[package]\nname = "fixture"\nversion = "{current[1:]}"\n', encoding="utf-8") - releases(monkeypatch, *(("v0.5.0", "v0.5.1") if published else ("v0.5.1", "v0.5.0"))) + releases(monkeypatch, *(("v0.5.2", "v0.5.3") if published else ("v0.5.3", "v0.5.2"))) before = run_git_command(["--no-pager", "show-ref"], cwd=consumer).stdout assert main(["performance", "prepare", "tooling/performance-release.toml"]) == 0 assert f"Saved preparation: {INPUTS}" in capsys.readouterr().out record = performance_release.load_preparation(consumer, settings(consumer)) assert record.identities == { - "current": (current, run_git_command(["--no-pager", "rev-parse", "v0.5.1" if published else "HEAD"], cwd=consumer).stdout.strip()), - "baseline": ("v0.5.0", run_git_command(["--no-pager", "rev-parse", "v0.5.0"], cwd=consumer).stdout.strip()), + "current": (current, run_git_command(["--no-pager", "rev-parse", "v0.5.3" if published else "HEAD"], cwd=consumer).stdout.strip()), + "baseline": ("v0.5.2", run_git_command(["--no-pager", "rev-parse", "v0.5.2"], cwd=consumer).stdout.strip()), } assert run_git_command(["--no-pager", "show-ref"], cwd=consumer).stdout == before assert not (consumer / "target/bench-reports/full").exists() @@ -92,11 +92,11 @@ def test_preparation_resolves_prospective_head_or_publication_order( def test_explicit_pair_skips_provider_and_failed_preparation_preserves_record(consumer: Path, monkeypatch: pytest.MonkeyPatch) -> None: monkeypatch.setattr(performance_release, "published_releases", lambda *_args, **_kwargs: pytest.fail("explicit pairs need no provider")) - plan = replace(settings(consumer), mode="explicit", current="v0.5.1", baseline="v0.5.0") + plan = replace(settings(consumer), mode="explicit", current="v0.5.3", baseline="v0.5.2") performance_release.prepare_performance(consumer, plan) original = (consumer / INPUTS).read_bytes() with pytest.raises(subprocess.CalledProcessError): - performance_release.prepare_performance(consumer, replace(plan, current="v0.5.2")) + performance_release.prepare_performance(consumer, replace(plan, current="v0.5.4")) assert (consumer / INPUTS).read_bytes() == original @@ -104,9 +104,9 @@ def test_explicit_pair_skips_provider_and_failed_preparation_preserves_record(co def test_failed_preparation_never_writes_partial_assertions( consumer: Path, monkeypatch: pytest.MonkeyPatch, capsys: pytest.CaptureFixture[str], failure: str ) -> None: - releases(monkeypatch, *(() if failure == "empty-history" else ("v0.4.6" if failure == "old-release" else "v0.5.1",))) + releases(monkeypatch, *(() if failure == "empty-history" else ("v0.5.1" if failure == "old-release" else "v0.5.3",))) if failure == "missing-tag": - run_git_command(["--no-pager", "tag", "-d", "v0.5.1"], cwd=consumer) + run_git_command(["--no-pager", "tag", "-d", "v0.5.3"], cwd=consumer) if failure == "provider": def unavailable(*_args: object, **_kwargs: object) -> tuple[PublishedRelease, ...]: @@ -118,15 +118,15 @@ def unavailable(*_args: object, **_kwargs: object) -> tuple[PublishedRelease, .. expected = { "empty-history": "a published stable release is required", "provider": "provider unavailable", - "missing-tag": "refs/tags/v0.5.1^{commit}", - "old-release": "requires v0.5.0 or newer", + "missing-tag": "refs/tags/v0.5.3^{commit}", + "old-release": "requires v0.5.2 or newer", } assert expected[failure] in capsys.readouterr().err @pytest.mark.parametrize("changed", ["head", "baseline", "declaration", "package"]) def test_readme_rejects_stale_preparation_before_publication(consumer: Path, monkeypatch: pytest.MonkeyPatch, changed: str) -> None: - releases(monkeypatch, "v0.5.1") + releases(monkeypatch, "v0.5.3") performance_release.prepare_performance(consumer, settings(consumer)) if changed == "head": run_git_command( @@ -147,12 +147,12 @@ def test_readme_rejects_stale_preparation_before_publication(consumer: Path, mon cwd=consumer, ) elif changed == "baseline": - run_git_command(["--no-pager", "tag", "--force", "v0.5.1", "HEAD"], cwd=consumer) + run_git_command(["--no-pager", "tag", "--force", "v0.5.3", "HEAD"], cwd=consumer) elif changed == "declaration": path = consumer / "tooling/measurements/full.toml" path.write_bytes(path.read_bytes() + b"\n# changed\n") else: - (consumer / "Cargo.toml").write_bytes(b'[package]\nname="fixture"\nversion="0.5.3"\n') + (consumer / "Cargo.toml").write_bytes(b'[package]\nname="fixture"\nversion="0.5.5"\n') monkeypatch.setattr(performance_release, "published_releases", lambda *_args, **_kwargs: pytest.fail("README must not rediscover")) with pytest.raises(ValueError, match="stale preparation"): performance_release.load_readme_plan(consumer, settings(consumer)) @@ -171,7 +171,7 @@ def test_missing_or_legacy_preparation_stops_before_readme_and_measurement(consu @pytest.mark.parametrize("owner_kind", ["directory", "file"]) def test_fresh_acquisition_preserves_existing_owner_with_recovery_guidance(consumer: Path, monkeypatch: pytest.MonkeyPatch, owner_kind: str) -> None: - releases(monkeypatch, "v0.5.1") + releases(monkeypatch, "v0.5.3") performance_release.prepare_performance(consumer, settings(consumer)) owner = consumer.parent / "independent owner" if owner_kind == "directory": @@ -196,7 +196,7 @@ def test_fresh_acquisition_preserves_existing_owner_with_recovery_guidance(consu def test_fresh_acquisition_preserves_unrelated_directory_creation_error(consumer: Path, monkeypatch: pytest.MonkeyPatch) -> None: - releases(monkeypatch, "v0.5.1") + releases(monkeypatch, "v0.5.3") performance_release.prepare_performance(consumer, settings(consumer)) owner = consumer.parent / "independent owner" failure = FileExistsError("unrelated directory creation failure") diff --git a/tooling/README.md b/tooling/README.md index 9bc99d1..72dcf08 100644 --- a/tooling/README.md +++ b/tooling/README.md @@ -218,19 +218,18 @@ There is no runtime configuration generator. | `performance-readme.toml` | Canonical README selection, formatter, source freshness and tagged links | | `plots/{non-exact,retained,scratch}/*.toml` | Named metric/statistic/axis selections with explicit input ownership | -Both labels of a new measurement must be v0.5.0 or newer. The full and +Both labels of a new measurement must be v0.5.2 or newer. The full and non-exact declarations require 100 samples, mean and median estimates, 95% intervals and nanoseconds. Each phase runs its native correctness gate before -timing. Schema-6 availability resolves each suite before compilation, inside one -sequential trial. README and LU plots select trial 1. New-API +timing. Every suite runs on both revisions inside one sequential trial; +older releases are rejected before native compilation. README and LU plots select trial 1. The dedicated suites run their column-basis, rational-dot, interval-solve or polynomial gate on every supported revision. The non-exact diagnostic retains its original gate and baseline-phase reference libraries. -The release policy measures all public la-stack workflows at the current -revision and on supported baselines. Older baselines retain 1,254 shared library -cases; the 149 cases introduced in v0.5.2 become required automatically at that -boundary. The paired LU suite acquires 16 peer cases on each phase alongside +The release policy measures all 1,403 public la-stack cases at both the current +revision and the baseline, including every API introduced in v0.5.2. +The paired LU suite acquires 16 peer cases on each phase alongside the matching library cases; README ratios use current-phase observations. Hosted release jobs reuse the accepted local acquisition without collecting timings. The full scratch/retained plot selections therefore expose only LU solve; broad peer plots remain in the explicitly @@ -245,11 +244,11 @@ to the installed reporter, defaulting to `human` and `300` seconds. JSON status and `none` are supported without a local progress engine. Consumer fixtures exercise validated totals, unknown ETA, captured logs and early failure; report and README recipes retain their measurement-free retry boundaries. -The full declaration uses inclusive `since = "v0.5.2"` suite bounds; -supported missing cases or failed compilation remain errors. +The full declaration requires every suite on both phases; missing cases or +failed compilation remain errors. Schema-6 interrupted-trial recovery retains phase-specific sources. -Baseline sources declare historical README compiler input; current gates prove +Baseline sources declare v0.5.2's README compiler input; current gates prove README is excluded from ordinary debug/release compilation. Current README is one of the precise generated outputs. Historical current revisions that still compile it are rejected by the full candidate plan. diff --git a/tooling/measurements/full.toml b/tooling/measurements/full.toml index 2e23fda..e708841 100644 --- a/tooling/measurements/full.toml +++ b/tooling/measurements/full.toml @@ -1,4 +1,4 @@ -# Scientific acquisition units; availability resolves before native compilation. +# Scientific acquisition units; every supported release provides every suite. schema = 6 outputs = [ "README.md", @@ -23,7 +23,7 @@ nominal-seconds-per-case = 8 [suites.measurement] schema = 4 -minimum-release = "v0.5.0" +minimum-release = "v0.5.2" sources = [ "src/**/*.rs", "Cargo.toml" ] harness = [ "benches/**/*.rs", @@ -98,7 +98,7 @@ gate = [ "just", "--justfile", "tooling/performance.just", "--working-directory" [suites.measurement.phases.baseline.environment] CARGO_TARGET_DIR = "target/build" CRITERION_HOME = "target/criterion" -RUSTUP_TOOLCHAIN = "1.99.1" +RUSTUP_TOOLCHAIN = "1.100.0" RUSTFLAGS = "--cap-lints=warn" CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn" RUSTC = "rustc" @@ -768,7 +768,7 @@ gate = [ "just", "--justfile", "tooling/performance.just", "--working-directory" [suites.measurement.phases.current.environment] CARGO_TARGET_DIR = "target/build" CRITERION_HOME = "target/criterion" -RUSTUP_TOOLCHAIN = "1.99.1" +RUSTUP_TOOLCHAIN = "1.100.0" RUSTFLAGS = "--cap-lints=warn" CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn" RUSTC = "rustc" @@ -1454,7 +1454,7 @@ nominal-seconds-per-case = 8 [suites.measurement] schema = 4 -minimum-release = "v0.5.0" +minimum-release = "v0.5.2" sources = [ "src/**/*.rs", "Cargo.toml" ] harness = [ "benches/**/*.rs", @@ -1529,7 +1529,7 @@ gate = [ "just", "--justfile", "tooling/performance.just", "--working-directory" [suites.measurement.phases.baseline.environment] CARGO_TARGET_DIR = "target/build" CRITERION_HOME = "target/criterion" -RUSTUP_TOOLCHAIN = "1.99.1" +RUSTUP_TOOLCHAIN = "1.100.0" RUSTFLAGS = "--cap-lints=warn" CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn" RUSTC = "rustc" @@ -2169,7 +2169,7 @@ gate = [ "just", "--justfile", "tooling/performance.just", "--working-directory" [suites.measurement.phases.current.environment] CARGO_TARGET_DIR = "target/build" CRITERION_HOME = "target/criterion" -RUSTUP_TOOLCHAIN = "1.99.1" +RUSTUP_TOOLCHAIN = "1.100.0" RUSTFLAGS = "--cap-lints=warn" CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn" RUSTC = "rustc" @@ -2825,7 +2825,7 @@ nominal-seconds-per-case = 8 [suites.measurement] schema = 4 -minimum-release = "v0.5.0" +minimum-release = "v0.5.2" sources = [ "src/**/*.rs", "Cargo.toml" ] harness = [ "benches/**/*.rs", @@ -2900,7 +2900,7 @@ gate = [ "just", "--justfile", "tooling/performance.just", "--working-directory" [suites.measurement.phases.baseline.environment] CARGO_TARGET_DIR = "target/build" CRITERION_HOME = "target/criterion" -RUSTUP_TOOLCHAIN = "1.99.1" +RUSTUP_TOOLCHAIN = "1.100.0" RUSTFLAGS = "--cap-lints=warn" CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn" RUSTC = "rustc" @@ -2956,7 +2956,7 @@ gate = [ "just", "--justfile", "tooling/performance.just", "--working-directory" [suites.measurement.phases.current.environment] CARGO_TARGET_DIR = "target/build" CRITERION_HOME = "target/criterion" -RUSTUP_TOOLCHAIN = "1.99.1" +RUSTUP_TOOLCHAIN = "1.100.0" RUSTFLAGS = "--cap-lints=warn" CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn" RUSTC = "rustc" @@ -3052,12 +3052,11 @@ phase = "current" [[suites]] name = "column-basis" contract = "la-stack-column-basis-v1" -since = "v0.5.2" nominal-seconds-per-case = 8 [suites.measurement] schema = 4 -minimum-release = "v0.5.0" +minimum-release = "v0.5.2" sources = [ "src/**/*.rs", "Cargo.toml" ] harness = [ "benches/**/*.rs", @@ -3132,7 +3131,7 @@ gate = [ "just", "--justfile", "tooling/performance.just", "--working-directory" [suites.measurement.phases.baseline.environment] CARGO_TARGET_DIR = "target/build" CRITERION_HOME = "target/criterion" -RUSTUP_TOOLCHAIN = "1.99.1" +RUSTUP_TOOLCHAIN = "1.100.0" RUSTFLAGS = "--cap-lints=warn" CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn" RUSTC = "rustc" @@ -3219,7 +3218,7 @@ gate = [ "just", "--justfile", "tooling/performance.just", "--working-directory" [suites.measurement.phases.current.environment] CARGO_TARGET_DIR = "target/build" CRITERION_HOME = "target/criterion" -RUSTUP_TOOLCHAIN = "1.99.1" +RUSTUP_TOOLCHAIN = "1.100.0" RUSTFLAGS = "--cap-lints=warn" CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn" RUSTC = "rustc" @@ -3318,12 +3317,11 @@ exclude = [ "d*/nalgebra_*", "d*/faer_*" ] [[suites]] name = "interval-solve" contract = "la-stack-interval-solve-v1" -since = "v0.5.2" nominal-seconds-per-case = 8 [suites.measurement] schema = 4 -minimum-release = "v0.5.0" +minimum-release = "v0.5.2" sources = [ "src/**/*.rs", "Cargo.toml" ] harness = [ "benches/**/*.rs", @@ -3398,7 +3396,7 @@ gate = [ "just", "--justfile", "tooling/performance.just", "--working-directory" [suites.measurement.phases.baseline.environment] CARGO_TARGET_DIR = "target/build" CRITERION_HOME = "target/criterion" -RUSTUP_TOOLCHAIN = "1.99.1" +RUSTUP_TOOLCHAIN = "1.100.0" RUSTFLAGS = "--cap-lints=warn" CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn" RUSTC = "rustc" @@ -3465,7 +3463,7 @@ gate = [ "just", "--justfile", "tooling/performance.just", "--working-directory" [suites.measurement.phases.current.environment] CARGO_TARGET_DIR = "target/build" CRITERION_HOME = "target/criterion" -RUSTUP_TOOLCHAIN = "1.99.1" +RUSTUP_TOOLCHAIN = "1.100.0" RUSTFLAGS = "--cap-lints=warn" CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn" RUSTC = "rustc" @@ -3544,12 +3542,11 @@ exclude = [ "d*/nalgebra_*", "d*/faer_*" ] [[suites]] name = "polynomial" contract = "la-stack-polynomial-v1" -since = "v0.5.2" nominal-seconds-per-case = 8 [suites.measurement] schema = 4 -minimum-release = "v0.5.0" +minimum-release = "v0.5.2" sources = [ "src/**/*.rs", "Cargo.toml" ] harness = [ "benches/**/*.rs", @@ -3624,7 +3621,7 @@ gate = [ "just", "--justfile", "tooling/performance.just", "--working-directory" [suites.measurement.phases.baseline.environment] CARGO_TARGET_DIR = "target/build" CRITERION_HOME = "target/criterion" -RUSTUP_TOOLCHAIN = "1.99.1" +RUSTUP_TOOLCHAIN = "1.100.0" RUSTFLAGS = "--cap-lints=warn" CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn" RUSTC = "rustc" @@ -3655,7 +3652,7 @@ gate = [ "just", "--justfile", "tooling/performance.just", "--working-directory" [suites.measurement.phases.current.environment] CARGO_TARGET_DIR = "target/build" CRITERION_HOME = "target/criterion" -RUSTUP_TOOLCHAIN = "1.99.1" +RUSTUP_TOOLCHAIN = "1.100.0" RUSTFLAGS = "--cap-lints=warn" CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn" RUSTC = "rustc" @@ -3698,12 +3695,11 @@ exclude = [ "d*/nalgebra_*", "d*/faer_*" ] [[suites]] name = "rational-dot" contract = "la-stack-rational-dot-v1" -since = "v0.5.2" nominal-seconds-per-case = 8 [suites.measurement] schema = 4 -minimum-release = "v0.5.0" +minimum-release = "v0.5.2" sources = [ "src/**/*.rs", "Cargo.toml" ] harness = [ "benches/**/*.rs", @@ -3778,7 +3774,7 @@ gate = [ "just", "--justfile", "tooling/performance.just", "--working-directory" [suites.measurement.phases.baseline.environment] CARGO_TARGET_DIR = "target/build" CRITERION_HOME = "target/criterion" -RUSTUP_TOOLCHAIN = "1.99.1" +RUSTUP_TOOLCHAIN = "1.100.0" RUSTFLAGS = "--cap-lints=warn" CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn" RUSTC = "rustc" @@ -3864,7 +3860,7 @@ gate = [ "just", "--justfile", "tooling/performance.just", "--working-directory" [suites.measurement.phases.current.environment] CARGO_TARGET_DIR = "target/build" CRITERION_HOME = "target/criterion" -RUSTUP_TOOLCHAIN = "1.99.1" +RUSTUP_TOOLCHAIN = "1.100.0" RUSTFLAGS = "--cap-lints=warn" CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn" RUSTC = "rustc" diff --git a/tooling/measurements/non-exact.toml b/tooling/measurements/non-exact.toml index f72a6fe..4b51d7a 100644 --- a/tooling/measurements/non-exact.toml +++ b/tooling/measurements/non-exact.toml @@ -1,6 +1,6 @@ # Scientific measurement policy consumed directly by research-repo-tools. schema = 2 -minimum-release = "v0.5.0" +minimum-release = "v0.5.2" sources = [ "src/**/*.rs", "Cargo.toml", "README.md" ] harness = [ "benches/**/*.rs", @@ -53,7 +53,7 @@ faer = "Cargo.lock" command = [ "just", "--justfile", "tooling/performance.just", "--working-directory", ".", "baseline-vs_linalg" ] gate = [ "just", "--justfile", "tooling/performance.just", "--working-directory", ".", "gate" ] # Fixed code-generation settings are recorded for both phases. -environment = { CARGO_TARGET_DIR = "target", CRITERION_HOME = "target/criterion", RUSTUP_TOOLCHAIN = "1.99.1", RUSTFLAGS = "--cap-lints=warn", CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn", RUSTC = "rustc", RUSTC_WRAPPER = "", RUSTC_WORKSPACE_WRAPPER = "" } +environment = { CARGO_TARGET_DIR = "target", CRITERION_HOME = "target/criterion", RUSTUP_TOOLCHAIN = "1.100.0", RUSTFLAGS = "--cap-lints=warn", CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn", RUSTC = "rustc", RUSTC_WRAPPER = "", RUSTC_WORKSPACE_WRAPPER = "" } [phases.baseline.discovery] required = [ @@ -369,7 +369,7 @@ timeout = 14400 command = [ "just", "--justfile", "tooling/performance.just", "--working-directory", ".", "current-vs_linalg" ] gate = [ "just", "--justfile", "tooling/performance.just", "--working-directory", ".", "gate" ] # Fixed code-generation settings are recorded for both phases. -environment = { CARGO_TARGET_DIR = "target", CRITERION_HOME = "target/criterion", RUSTUP_TOOLCHAIN = "1.99.1", RUSTFLAGS = "--cap-lints=warn", CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn", RUSTC = "rustc", RUSTC_WRAPPER = "", RUSTC_WORKSPACE_WRAPPER = "" } +environment = { CARGO_TARGET_DIR = "target", CRITERION_HOME = "target/criterion", RUSTUP_TOOLCHAIN = "1.100.0", RUSTFLAGS = "--cap-lints=warn", CARGO_ENCODED_RUSTFLAGS = "--cap-lints=warn", RUSTC = "rustc", RUSTC_WRAPPER = "", RUSTC_WORKSPACE_WRAPPER = "" } [phases.current.discovery] required = [ diff --git a/tooling/performance-policy.toml b/tooling/performance-policy.toml index 4d50f60..aef0e39 100644 --- a/tooling/performance-policy.toml +++ b/tooling/performance-policy.toml @@ -1,7 +1,7 @@ # la-stack scientific selections; generic execution and rendering are shared. schema = 1 dimensions = [ 2, 3, 4, 5, 8, 16, 32, 64 ] -minimum-release = [ 0, 5, 0 ] +minimum-release = [ 0, 5, 2 ] library-benchmarks = [ "la_stack_det", "la_stack_det_from_ldlt", "la_stack_det_from_lu", "la_stack_det_via_lu", "la_stack_dot", "la_stack_inf_norm", "la_stack_ldlt", "la_stack_ldlt_solve", "la_stack_lu", "la_stack_lu_solve", "la_stack_norm2_sq", "la_stack_solve_from_ldlt", "la_stack_solve_from_lu" ] [exact] @@ -75,14 +75,7 @@ title = "Matrix infinity norm (max abs row sum)" benchmarks = [ "la_stack_inf_norm", "nalgebra_inf_norm", "faer_inf_norm" ] # Independent release case catalog. Native discovery must agree with these IDs. -# Independently assert introduction versions on both sides of every comparison. -[availability] -"column_basis/*" = "v0.5.2" -"interval_division/*" = "v0.5.2" -"interval_solve_d*/*" = "v0.5.2" -"polynomial/*" = "v0.5.2" -"rational_dot/*" = "v0.5.2" - +# Every supported revision must provide the complete catalog. [release] default = [ "angle_d3/dense/borrowed_slice", diff --git a/uv.lock b/uv.lock index b0b2120..6f63337 100644 --- a/uv.lock +++ b/uv.lock @@ -71,11 +71,11 @@ wheels = [ [[package]] name = "bracex" -version = "3.2.2" +version = "3.2.3" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/2d/1f/b7ce2efe406b87bb3693d587b91bcd8fa9030888870ceff29e4a0d233cb2/bracex-3.2.2.tar.gz", hash = "sha256:d18976160b3ba01a57d5c53a5c8c3aa2506efa9e0a3a62467251f82b8f563fde", size = 34980, upload-time = "2026-11-07T21:28:25.433Z" } +sdist = { url = "https://files.pythonhosted.org/packages/42/39/9ae971118d77b86cc3f03ab5a467ddb58de352d8ef29830c81531d22010c/bracex-3.2.3.tar.gz", hash = "sha256:8fbf92b4db3c31de999145e22a47d4ffdbefb983a98583c3272bd7d570f9a343", size = 35266, upload-time = "2026-11-14T17:11:16.858Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/21/b5/52a750a062db07ba056cde1c52c802b898a96b70953389a0b2247e18f210/bracex-3.2.2-py3-none-any.whl", hash = "sha256:284d59c4656e5a0421ff691402074bd5847049d50410535764a2c522a47095bc", size = 14151, upload-time = "2026-11-07T21:28:24.028Z" }, + { url = "https://files.pythonhosted.org/packages/c8/42/f5d49972873bd3fff36e736ad1fcb36f9fdadb1ad577dfcfa17777dc84f0/bracex-3.2.3-py3-none-any.whl", hash = "sha256:8d6d677856121820d67b9009e76a5740fb02ab6dcd2d9815a83724d1888c305d", size = 14182, upload-time = "2026-11-14T17:11:15.595Z" }, ] [[package]] @@ -828,7 +828,7 @@ wheels = [ [[package]] name = "pydantic-settings" -version = "2.16.2" +version = "2.16.3" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "pydantic" }, @@ -836,9 +836,9 @@ dependencies = [ { name = "typing-extensions" }, { name = "typing-inspection" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/d0/31/21d21e0e38a8f5f7a7f0cde22820117b6d17d6bc36f348129527f915d7f4/pydantic_settings-2.16.2.tar.gz", hash = "sha256:3dc08ffabed2bbd5dc2dd55ead7b78b4e4c5cd776aecd04310db5f1224caaf46", size = 309225, upload-time = "2026-10-28T11:14:28.066Z" } +sdist = { url = "https://files.pythonhosted.org/packages/59/28/227c843eedd29bd78e132e5aafa420d83154b10465c312f9c21ff2eaf77d/pydantic_settings-2.16.3.tar.gz", hash = "sha256:10e36f616623ebb586c05ca3d3cd22927146869db413d4f14c20c514442a1337", size = 311716, upload-time = "2026-11-13T11:18:30.102Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/39/88/4131c51ff87b7cd7f82a1194d0c0a2b7ca68c72d9da04c3b7e69ab91a79f/pydantic_settings-2.16.2-py3-none-any.whl", hash = "sha256:8d523e5c129b097686bde019bd6109bff53f4c8c3f63f1ddf9933ffa42e5ab4f", size = 81994, upload-time = "2026-10-28T11:14:26.716Z" }, + { url = "https://files.pythonhosted.org/packages/4c/26/3e68379ca313b6aa58e11fbd8b28d5c6f1b9f4428d70222ba021a76797ec/pydantic_settings-2.16.3-py3-none-any.whl", hash = "sha256:d1db16a2d34006323a1b42c0640898da58adfbad7ec30baaa9e2b18aafc08999", size = 82679, upload-time = "2026-11-13T11:18:28.73Z" }, ] [[package]]