Skip to content

chore(api): simplify OpenAPI sync workflow#5602

Open
jgoux wants to merge 1 commit into
developfrom
chore/api-openapi-sync-detector
Open

chore(api): simplify OpenAPI sync workflow#5602
jgoux wants to merge 1 commit into
developfrom
chore/api-openapi-sync-detector

Conversation

@jgoux

@jgoux jgoux commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

The scheduled API package sync workflow was failing because its inline OpenAPI comparison logic drifted from the package generator. In particular, the workflow reimplemented override handling in jq, so adding new override operations could break the detector before the real generator ever ran.

This removes the custom detector job and makes the workflow use pnpm generate as the source of truth on every scheduled run. The workflow now regenerates the API package, formats it, checks for changes under packages/api/src/generated, and only creates a sync PR when generated output actually changes.

This also removes the stale high_availability add override now that the upstream spec includes that field directly, and refreshes the generated API files for the current upstream spec.

Reviewer context: future OpenAPI override operation support only needs to be implemented in the generator path; the workflow no longer has a second override interpreter to keep in sync.

@jgoux jgoux marked this pull request as ready for review June 17, 2026 16:24
@jgoux jgoux requested a review from a team as a code owner June 17, 2026 16:24
@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown

Supabase CLI preview

npx --yes https://pkg.pr.new/supabase/cli/supabase@9e9453e7601931c485c41d55a5241b8e3c13c403

Preview package for commit 9e9453e.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4115e9bcf9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/api-package-sync.yml Outdated
@jgoux jgoux force-pushed the chore/api-openapi-sync-detector branch from 4115e9b to 36fb7ac Compare June 17, 2026 16:31
@jgoux jgoux changed the title chore(api): fix OpenAPI sync detector chore(api): simplify OpenAPI sync workflow Jun 17, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 36fb7ac96b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/api/src/generated/contracts.ts
@jgoux jgoux force-pushed the chore/api-openapi-sync-detector branch from 36fb7ac to f27217d Compare June 17, 2026 17:02
@jgoux jgoux force-pushed the chore/api-openapi-sync-detector branch from f27217d to 9e9453e Compare June 17, 2026 17:36

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9e9453e760

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/api/src/generated/contracts.ts
@jgoux jgoux enabled auto-merge June 18, 2026 10:26
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