Skip to content

Overhaul SDK dispatch for versioned OAS files (dry-run)#180

Merged
Gvieve merged 4 commits intomasterfrom
gn/overhaul-repo-dispatch
Feb 18, 2026
Merged

Overhaul SDK dispatch for versioned OAS files (dry-run)#180
Gvieve merged 4 commits intomasterfrom
gn/overhaul-repo-dispatch

Conversation

@Gvieve
Copy link
Collaborator

@Gvieve Gvieve commented Feb 18, 2026

PR 1 of 3 — Detection and dry-run validation only. No live dispatches are sent.

What this does

Replaces the old update.yml dispatch (which triggered all 6 SDK repos on any mx_platform_api.yml change) with a new versioned-file-aware workflow that detects changes to openapi/v*.yml files and dispatches only to opted-in SDK repos.

Changes

File Change
versioned-sdk-dispatch.yml New. Detects changed versioned OAS files on PR merge, reads minor/patch from PR labels, builds api_versions list, logs dry-run payload. workflow_dispatch for manual runs. Only mx-platform-node opted in.
update.ymlupdate.yml.bak Deprecated. Renamed with deprecation header. GitHub Actions ignores .bak files. Kept for reference.
version.yml Updated. Label enforcement (minor/patch) now applies to openapi/v*.yml (removed check for mx_platform_api.yml since it will no longer be maintained).
sdk-generation-validation.yml Updated. Dynamically discovers changed versioned OAS files and cross-products with language matrix. Only validates OAS files that actually changed in the PR.

How to validate

Merge this PR, then open a follow-up PR that makes a trivial change to v20111101.yml (labeled minor). On merge, verify:

  • versioned-sdk-dispatch.yml fires — dry-run logs show correct file detection, label reading, and payload
  • update.yml does not fire
  • sdk-generation-validation.yml ran validation only for the changed OAS file

What comes next

  • PR 2: Replace dry-run echo with live repository_dispatch (arms the workflow, but no v*.yml changes in that PR so it won't fire)
  • PR 3: Minor change to v20111101.yml — first live dispatch to mx-platform-node

Genevieve Nuebel added 4 commits February 18, 2026 13:36
New workflow that detects changes to versioned OAS files (openapi/v*.yml)
on PR merge, builds api_versions list, reads version label (minor/patch),
and dispatches to opted-in SDK repos only.

Currently in DRY RUN mode — logs what it would send without dispatching.
Includes workflow_dispatch for manual runs with version/api_versions inputs.
Only mx-platform-node opted in initially.
Old workflow dispatched to all 6 SDK repos on any mx_platform_api.yml change.
Replaced by versioned-sdk-dispatch.yml which detects versioned OAS files and
dispatches only to opted-in repos. Kept as .bak for reference.
Changed-files check now includes openapi/v*.yml in addition to
mx_platform_api.yml. PRs that modify versioned OAS files now require
a minor or patch label before merge.
Replaced static mx_platform_api.yml reference with dynamic discovery of
changed versioned OAS files (openapi/v*.yml). Uses a discover job to build
a matrix from changed files, then cross-products with the language matrix.
Only runs generation validation for OAS files actually modified in the PR.
@Gvieve Gvieve self-assigned this Feb 18, 2026
@Gvieve Gvieve merged commit b1eb3d7 into master Feb 18, 2026
9 checks passed
@Gvieve Gvieve deleted the gn/overhaul-repo-dispatch branch February 18, 2026 21:00
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.

1 participant