Skip to content

ci: add deterministic schemas type sync - #166

Merged
edenreich merged 2 commits into
mainfrom
ci/deterministic-schemas-sync
Jul 21, 2026
Merged

edenreich merged 2 commits into
mainfrom
ci/deterministic-schemas-sync

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

Part of the org-wide deterministic schemas→types sync (replaces the manual per-repo regeneration chore):

  • Standardizes the Taskfile sync contract: oas-download now accepts SCHEMAS_REF (refs/tags/vX.Y.Z, a branch ref, or a SHA; default refs/heads/main), and oas-sync chains download + codegen as the single entry point.
  • Pins the codegen at the call site (npx [email protected], was unpinned npx openapi-typescript); not added to devDependencies because openapi-typescript 7 peers on typescript@^5 while this repo is on TS 6.
  • Adds .github/workflows/schemas-sync.yml, a thin caller of the org reusable workflow inference-gateway/.github/.github/workflows/schemas-sync.yml@main. It regenerates types against a pinned schemas ref and opens/updates an idempotent PR on the fixed schemas-sync branch. Dispatch it from this repo's Actions tab, or fan out to all consumers via sync-downstream.yml in inference-gateway/schemas.

Verified locally: task oas-sync SCHEMAS_REF=refs/tags/v0.10.0 downloads the pinned spec and regenerates deterministically.

Impacted repos

Same rollout lands in: inference-gateway/.github (reusable workflow; SDK LLM drift audit retired, docs audit kept), sdk, python-sdk, rust-sdk, typescript-sdk, inference-gateway, and schemas (fan-out dispatcher).

@edenreich
edenreich merged commit e782511 into main Jul 21, 2026
1 check passed
@edenreich
edenreich deleted the ci/deterministic-schemas-sync branch July 21, 2026 13:03
inference-gateway-releaser Bot added a commit that referenced this pull request Jul 21, 2026
## [0.14.0](v0.13.0...v0.14.0) (2026-07-21)

### ✨ Features

* sync generated types with schemas v0.10.0 ([#167](#167)) ([948e9e3](948e9e3))

### 👷 CI

* add deterministic schemas type sync ([#166](#166)) ([e782511](e782511))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant