Skip to content

refactor(backend): drop row_num/col_num legacy fallback from cms_params - #269

Merged
zzylol merged 1 commit into
mainfrom
drop-cms-params-legacy-fallback
May 16, 2026
Merged

zzylol merged 1 commit into
mainfrom
drop-cms-params-legacy-fallback

Conversation

@zzylol

@zzylol zzylol commented May 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Per-user direction: now that the asapcollector configs migrated to canonical w / d keys (sibling asapcollector PR sync-config-canonical-w-d), the row_num / col_num fallback PR #268 added has no remaining caller. Drop it.

Three sweeps

  • accumulator_factory::cms_params — canonical keys only; renamed test from cms_params_accepts_w_d_canonical_and_row_col_num_legacy to cms_params_reads_canonical_w_d_keys, dropping the legacy half.
  • storage_engines::sketch_db::accuracy::cms_params — same shape.
  • tests::accuracy_empirical_validation_tests — six test fixtures migrated from row_num / col_num to d / w to match the helper's new contract.

Remaining row_num / col_num mentions

All internal Rust identifiers (function arguments, struct fields, locals) describing the sketch matrix dimensions — not config-parameter keys. Those are idiomatic Rust and stay.

Test plan

  • cargo test --workspace --lib — 1534 pass, 0 fail
  • cargo test --test e2e_controller_plans_and_backend_serves — 10 pass

Cross-repo ordering

This PR depends on the asapcollector sync-config-canonical-w-d PR landing first (otherwise asapcollector deployments still shipping row_num / col_num would silently default to (4, 1000)). Merge order: asapcollector first, this PR second.

🤖 Generated with Claude Code

Per-user direction: now that the asapcollector configs migrated to
canonical `w` / `d` keys (sibling PR `sync-config-canonical-w-d`),
the `row_num` / `col_num` fallback PR #268 added has no remaining
caller. Drop it.

Three sweeps:
  - `accumulator_factory::cms_params` — canonical keys only;
    `cms_params_reads_canonical_w_d_keys` test updated to drop the
    legacy half.
  - `storage_engines::sketch_db::accuracy::cms_params` — same.
  - `tests::accuracy_empirical_validation_tests` — six test fixtures
    migrated from `row_num` / `col_num` to `d` / `w` to match the
    helper's new contract.

Remaining `row_num` / `col_num` mentions in the codebase are all
internal Rust identifiers (function arguments / struct fields /
locals describing the sketch matrix dimensions) — not config-
parameter keys. Those are idiomatic and stay.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@zzylol
zzylol merged commit abaeed8 into main May 16, 2026
@zzylol
zzylol deleted the drop-cms-params-legacy-fallback branch July 17, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant