feat(#EE-808): rewrite sync-catalog-context as plain .mjs#35
Open
rogiervanstraten wants to merge 1 commit into
Open
feat(#EE-808): rewrite sync-catalog-context as plain .mjs#35rogiervanstraten wants to merge 1 commit into
rogiervanstraten wants to merge 1 commit into
Conversation
rogiervanstraten
force-pushed
the
feat/catalog-context-sync-script
branch
from
July 22, 2026 12:08
17cbc31 to
1dd46a6
Compare
rogiervanstraten
marked this pull request as ready for review
July 22, 2026 12:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Converts
scripts/sync-catalog-context.tsto a dependency-free.mjsscript, removing the need fortsx,typescript,package.json, andtsconfig.json. Aligns the workflow with catalog-context conventions (action versions, node 24, consolidated secrets step, dry-run input).Closes EE-808
Note
Medium Risk
Automated enum updates can break entity validation when catalog-context removes values; the workflow also uses release credentials to open PRs, though changes are reviewable before merge.
Overview
Adds automated syncing of canonical enum values from the
catalog-contextrepo into this repo’s Datadog catalog v3 JSON schemas.A new
sync-catalog-contextGitHub Actions workflow runs on a weekly schedule, oncatalog-context-releaserepository dispatch, or manually (with an optional dry-run that skips opening a PR). It authenticates via GCP/GitHub App, downloads*.schema.jsonassets from the latestcatalog-contextrelease, runs the sync, and opens or updates a labeled PR onchore/sync-catalog-contextwhen not in dry-run.The sync is implemented as a dependency-free
scripts/sync-catalog-context.mjsinvoked withnode(notsx/TypeScript toolchain). It reads tier, lifecycle, domain, and service-type sources and rewritespartials/spec-defaults,partials/extensions-defaults,partials/tags-defaults, andservice.schema.json(lifecycle/tier, domain/areaallOf, tag mirroring, servicetypeenum). The workflow PR body calls out that removed enum values can break validation after merge/release.Reviewed by Cursor Bugbot for commit 1dd46a6. Bugbot is set up for automated code reviews on this repo. Configure here.