Skip to content

chore: sync API types from infrastructure - #6417

Merged
supabase-cli-releaser[bot] merged 1 commit into
developfrom
sync/api-types
Sep 1, 2026
Merged

chore: sync API types from infrastructure#6417
supabase-cli-releaser[bot] merged 1 commit into
developfrom
sync/api-types

Conversation

@supabase-cli-releaser

Copy link
Copy Markdown
Contributor

This PR was automatically created to sync API types from the infrastructure repository.

Changes were detected in the generated API code after syncing with the latest spec from infrastructure.

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Supabase CLI preview

npx --yes https://pkg.pr.new/supabase/cli/supabase@6cc874b920ecaba08af551d291733a9c10dfd759

Preview package for commit 6cc874b.

@supabase-cli-releaser
supabase-cli-releaser Bot added this pull request to the merge queue Sep 1, 2026
Merged via the queue into develop with commit d913b6a Sep 1, 2026
42 checks passed
@supabase-cli-releaser
supabase-cli-releaser Bot deleted the sync/api-types branch September 1, 2026 10:07
pull Bot pushed a commit to chizee/cli that referenced this pull request Sep 1, 2026
…hema (supabase#6425)

## What kind of change does this PR introduce?

Bug fix (CI).

## What is the current behavior?

The `Codegen` job in the `CI` workflow runs `go generate` against the
live Management API spec (`api.supabase.green`) and fails the build if
the checked-in `pkg/api` files drift from what it produces. Upstream
started splitting every response component schema into a base and
`_Output` variant (e.g. `JitListAccessResponse` ->
`JitListAccessResponse_Output`), which broke three
`apps/cli-go/api/overlay.yaml` selectors targeting the old schema name:

```
failed to apply Overlay "api/overlay.yaml" ... selector "$.components.schemas.JitListAccessResponse.properties.items.items.anyOf[0].properties.invite_id" did not match any targets
```

This has failed the `Codegen` check on every `develop` commit since
supabase#6417 (merged 2026-09-01), blocking the merge queue for all PRs since
the `merge_group` trigger has no path filter.

## What is the new behavior?

- `overlay.yaml` selectors repointed at `JitListAccessResponse_Output`
(schema shape is unchanged, only the name).
- Regenerated `pkg/api/{types,client}.gen.go` against the current live
spec, which also renames every other response schema type to its
`*Output` counterpart.
- Renamed all downstream Go references (`pkg/config`, `pkg/function`,
`internal/utils`, `internal/telemetry`, `internal/functions/download`)
to the new `*Output` type names so the module still builds.

Verified: `go build ./...`, `go vet ./...`, `golangci-lint run`, and `go
generate` (re-run to confirm idempotency) all pass in `apps/cli-go`. `go
test ./...` in `apps/cli-go` is green aside from two pre-existing,
environment-only failures (no local Docker daemon). `pkg/config`'s test
suite has ~20 pre-existing failures that are identical on a clean
`develop` checkout (confirmed via a baseline worktree) — unrelated to
this change, and that submodule isn't part of the CI `Test` job's scope
anyway.

## Related Issue(s)

Unblocks the merge queue (e.g. supabase#6423).
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