Skip to content

cmd/integration: remove domain purification (compact_domains) - #22012

Merged
AskAlexSharov merged 1 commit into
mainfrom
sudeep/remove-domain-purification
Jun 25, 2026
Merged

AskAlexSharov merged 1 commit into
mainfrom
sudeep/remove-domain-purification

Conversation

@sudeepdino008

@sudeepdino008 sudeepdino008 commented Jun 25, 2026 •

Copy link
Copy Markdown
Member

Motivation

Domain purification — the compact_domains (alias purify_domains) integration command — rewrites domain .kv files with repeated keys dropped. A key live at step X may then exist only in an earlier file, so a file ending at step X no longer holds the state present at step X.

That invariant breaks tooling that works off the latest on-disk state:

  • commitment rebuild
  • seg rm-state --latest (and working off the resulting state)

Change

Removes the command and everything exclusive to it:

  • compactDomains cobra command + its flags (--out, --replace-in-datadir, --build-idx, --min-skip-ratio[-l0], --from, --to)
  • helpers makeCompactableIndexDB, makeCompactDomains
  • the RELEASE_INSTRUCTIONS.md step that ran it

read_domains / requestDomains in the same file are untouched. The db/integrity comments about purification stay — already-published files remain purified, so that handling is still needed.

Net: -409 lines. make lint clean; cmd/integration builds + vets.

Domain purification (the compact_domains / purify_domains command) rewrites
domain .kv files with repeated keys dropped, so a key live at step X may only
exist in an earlier file. That breaks the invariant that a file ending at step X
holds the state present at step X, which other tooling relies on — commitment
rebuild and 'seg rm-state --latest' (working off the latest state) among them.

Removes the command, its helpers (makeCompactableIndexDB, makeCompactDomains),
its flags, and the release-instructions step.
@AskAlexSharov
AskAlexSharov enabled auto-merge June 25, 2026 02:32
@AskAlexSharov
AskAlexSharov added this pull request to the merge queue Jun 25, 2026
Merged via the queue into main with commit df9c1f1 Jun 25, 2026
91 of 92 checks passed
@AskAlexSharov
AskAlexSharov deleted the sudeep/remove-domain-purification branch June 25, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants