fix(catalog): reject duplicate descriptor entity refs #52

Merged
martin merged 1 commit from feat/forgejo-descriptor-ref-validation into main 2026-11-21 19:07:33 +00:00
Owner

Summary

  • Parse discovered catalog-info.yaml files and canonicalize each entity ref as kind:namespace/name.
  • Reject malformed descriptor identities and duplicate refs before applying a full snapshot; retain the last successful catalog on failure.
  • Do not rewrite descriptor names; report both repositories so owners can resolve collisions.
  • Update the discovery guide and source-of-truth decision record.

Refs #24

Validation

  • bun install --frozen-lockfile
  • bun run tsc
  • bun run lint:all
  • bun run prettier:check
  • bun run build:backend
  • CI=1 bun run test:ci --runInBand (12 tests)
  • Backstage config validation for the E2E overlay

E2E was not run locally because a pre-existing backend process occupies the configured localhost port; it was left untouched. CI will validate this follow-up.

## Summary - Parse discovered `catalog-info.yaml` files and canonicalize each entity ref as `kind:namespace/name`. - Reject malformed descriptor identities and duplicate refs before applying a full snapshot; retain the last successful catalog on failure. - Do not rewrite descriptor names; report both repositories so owners can resolve collisions. - Update the discovery guide and source-of-truth decision record. Refs #24 ## Validation - `bun install --frozen-lockfile` - `bun run tsc` - `bun run lint:all` - `bun run prettier:check` - `bun run build:backend` - `CI=1 bun run test:ci --runInBand` (12 tests) - Backstage config validation for the E2E overlay E2E was not run locally because a pre-existing backend process occupies the configured localhost port; it was left untouched. CI will validate this follow-up.
fix(catalog): reject duplicate descriptor entity refs
All checks were successful
ci/woodpecker/pr/pr-review Pipeline was successful
ci/woodpecker/pr/application-checks Pipeline was successful
f85677dae1
Parse discovered descriptors and canonicalize entity refs before publishing a snapshot. Reject invalid identities and collisions without replacing the last successful catalog.

Co-authored-by: OpenCode <opencode@anoma.ly>
martin merged commit 1393edc97e into main 2026-11-21 19:07:33 +00:00
martin deleted branch feat/forgejo-descriptor-ref-validation 2026-11-21 19:07:33 +00:00
Sign in to join this conversation.
No description provided.