Skip to content

[DO NOT MERGE] Test run for #32150 — verify schema auto-update fires - #32152

Closed
harsh-vador wants to merge 2 commits into
fix/track-generated-ui-jsonsfrom
test/verify-schema-autoupdate
Closed

harsh-vador wants to merge 2 commits into
fix/track-generated-ui-jsonsfrom
test/verify-schema-autoupdate

Conversation

@harsh-vador

@harsh-vador harsh-vador commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Throwaway PR. Do not merge. Will be closed once #32150 is reviewed.

Requested by @chirag-madlani as a test run before #32150 goes in.

Based on fix/track-generated-ui-jsons rather than main on purpose: typescript-type-generation.yml triggers on pull_request_target, which evaluates the workflow definition from the base branch. Basing on main would exercise the current workflow, not the changed one.

Setup: one probe property (clientName) added to natsConnection.json in openmetadata-spec/. src/jsons/ and src/generated/ deliberately left not regenerated, simulating a contributor who edits a spec and doesn't know the derived files exist.

Expected: the workflow regenerates both, auto-commits to this branch, and posts the "Generated Sources Auto-Updated" comment. The commit should touch serviceConnection.json, workflow.json, and testSuitePipeline.json in addition to natsConnection.json — the NATS schema is inlined into all three by dereferencing, which is why the job regenerates the whole tree rather than the edited file.

Fails if: no commit appears, or the commit misses src/jsons/. Either would mean committed schemas can silently rot against the spec, which is strictly worse than the pre-#32150 state.

Local results are in the #32150 description.

Greptile Summary

This throwaway PR verifies schema-derived source regeneration by adding a temporary optional NATS property and observing its propagation into committed TypeScript models.

  • Adds the clientName probe property to the NATS connection schema.
  • Propagates the property through the direct NATS interface and dereferenced workflow, automation, messaging-service, and ingestion-pipeline interfaces.

Confidence Score: 5/5

The PR appears safe for its stated throwaway validation purpose, with no blocking failure remaining.

No blocking failure remains.

Important Files Changed

Filename Overview
openmetadata-spec/src/main/resources/json/schema/entity/services/connections/messaging/natsConnection.json Adds the optional temporary clientName probe to the source NATS connection contract.
openmetadata-ui/src/main/resources/ui/src/generated/entity/services/connections/messaging/natsConnection.ts Reflects the probe in the direct generated NATS TypeScript interface.
openmetadata-ui/src/main/resources/ui/src/generated/entity/services/connections/serviceConnection.ts Propagates the probe into the dereferenced service-connection interface.
openmetadata-ui/src/main/resources/ui/src/generated/metadataIngestion/workflow.ts Propagates the probe into the generated metadata-ingestion workflow contract.
openmetadata-ui/src/main/resources/ui/src/generated/metadataIngestion/testSuitePipeline.ts Propagates the probe into the generated test-suite pipeline contract.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart LR
    S[NATS JSON schema] --> D[Dereferenced schemas]
    D --> N[Direct NATS TypeScript model]
    D --> M[Messaging service models]
    D --> W[Workflow and automation models]
    D --> I[Ingestion pipeline models]
Loading

Reviews (6): Last reviewed commit: "Update generated TypeScript types" | Re-trigger Greptile

Context used:

@harsh-vador
harsh-vador marked this pull request as ready for review August 27, 2026 07:40
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added the UI UI specific issues label Aug 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@harsh-vador harsh-vador added the safe to test Add this label to run secure Github workflows on PRs label Aug 27, 2026
@harsh-vador harsh-vador self-assigned this Aug 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ TypeScript Types Auto-Updated

The generated TypeScript types have been automatically updated based on JSON schema changes in this PR.

@harsh-vador
harsh-vador force-pushed the fix/track-generated-ui-jsons branch from 2cf6535 to 95a60ee Compare August 27, 2026 07:54
@harsh-vador
harsh-vador force-pushed the test/verify-schema-autoupdate branch from f6d4303 to 47901d0 Compare August 27, 2026 07:54
@github-actions

Copy link
Copy Markdown
Contributor

✅ TypeScript Types Auto-Updated

The generated TypeScript types have been automatically updated based on JSON schema changes in this PR.

@harsh-vador
harsh-vador force-pushed the test/verify-schema-autoupdate branch from 658b9fd to 7ce0433 Compare August 27, 2026 08:21
@github-actions

Copy link
Copy Markdown
Contributor

✅ TypeScript Types Auto-Updated

The generated TypeScript types have been automatically updated based on JSON schema changes in this PR.

@gitar-bot

gitar-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Adds a probe property to the NATS connection schema to verify that the schema auto-update workflow correctly regenerates and commits derived UI artifacts. No issues found.

Options

Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant