Skip to content

feat(metadata-models): add bump_schema_versions tool with pre-commit hook#16775

Merged
chakru-r merged 3 commits intomasterfrom
cr-zdu-schema-versioning
Mar 25, 2026
Merged

feat(metadata-models): add bump_schema_versions tool with pre-commit hook#16775
chakru-r merged 3 commits intomasterfrom
cr-zdu-schema-versioning

Conversation

@chakru-r
Copy link
Collaborator

Adds a CLI tool that automatically increments schemaVersion on PDL aspect files when their schema changes, including transitive changes via includes.

  • BFS traversal of reverse include graph to catch implicit changes
  • MAIN_BRANCH and PDL_ROOTS env vars for repo-specific configuration/overrides
  • Dry-run and verbose modes
  • Pre-commit hook registered as manual stage for now. A later PR will enable this to auto-run when ZDU Pre-enablement is done
  • unit tests covering parsing, graph traversal, version bump logic, and CLI

…hook

  Adds a CLI tool that automatically increments schemaVersion on PDL aspect
  files when their schema changes, including transitive changes via `includes`.

  - BFS traversal of reverse include graph to catch implicit changes
  - MAIN_BRANCH and PDL_ROOTS env vars for repo-specific configuration
  - Dry-run and verbose modes
  - Pre-commit hook registered as manual stage for now. A later PR will enable this to auto-run when ZDU Pre-enablement is done
  - unit tests covering parsing, graph traversal, version bump logic, and CLI
@github-actions github-actions bot added the devops PR or Issue related to DataHub backend & deployment label Mar 25, 2026
@chakru-r chakru-r merged commit 13543ed into master Mar 25, 2026
14 of 15 checks passed
@chakru-r chakru-r deleted the cr-zdu-schema-versioning branch March 25, 2026 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops PR or Issue related to DataHub backend & deployment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants