Skip to content

chore(catalog): remove SC-XML and TC-Text catalog formats - #2239

Open
mayani wants to merge 2 commits into
mainfrom
task/2235-remove-sc-xml-tc-text-catalog-formats
Open

mayani wants to merge 2 commits into
mainfrom
task/2235-remove-sc-xml-tc-text-catalog-formats

Conversation

@mayani

@mayani mayani commented Aug 22, 2026

Copy link
Copy Markdown
Member

Summary

  • Drops the legacy XML site-catalog and text transformation-catalog backends, converters, parsers, and schemas now that YAML is the only supported catalog format.
  • Fixes a latent bug in YAML.java's transformation-catalog insert(), exposed by this cleanup's switch of the embedded/inline transformation-catalog fallback from the Text to the YAML backend: it decomposed entries via addTCEntry(...) and silently dropped the bypass_staging flag. Now inserts a clone of the entry directly (matching the pattern already used by Text.java), preserving all fields including bypass staging.
  • Added a JUnit regression test (testInsertPreservesBypassStaging) that fails against the pre-fix code and passes with the fix.

CI note

e2e was run against the pre-fix commit and passed except for known environment-flaky tests (031-montage-jdbcrc-sqlite OSPool execute-node transfer flakes, unrelated to this diff — same signature seen intermittently on main). The e2e run against the fix commit was manually canceled since it was re-running the same pre-existing flakes, not anything related to this change.

Closes #2235
Closes #2238

mayani added 2 commits August 21, 2026 13:01
Drops the legacy XML site-catalog and text transformation-catalog
backends, converters, parsers, and schemas now that YAML is the only
supported catalog format.

Refs #2235
TransformationCatalog.impl.YAML#insert(TransformationCatalogEntry, boolean)
decomposed the incoming entry into individual fields and rebuilt it via
addTCEntry(), silently dropping the bypass staging flag since that method's
parameter list doesn't carry it. This went unnoticed because the
embedded/temp-file transformation catalog fallback used the Text backend
(already fixed for this via a clone-based insert), until #2235 switches
that fallback to the YAML backend now that Text is being removed, exposing
the latent bug and breaking test/core/043-integrity-bypass-staging-b.

Mirrors Text's clone-based insert so the entry's attributes, including
bypass, are preserved.

Refs #2235
Refs #2238
@mayani mayani self-assigned this Aug 22, 2026
@mayani mayani linked an issue Aug 22, 2026 that may be closed by this pull request
@mayani
mayani requested review from rynge and vahi August 24, 2026 18:46
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.

YAML transformation catalog insert() drops bypass_staging flag Remove SC-XML and TC-Text catalog formats

1 participant