Repository navigation
fix(ci): read the capability spec at the caller's pinned workflow ref - #87
Merged
Merged
Conversation
…as called at The sync workflow defaulted `sdk-ref` to a hardcoded commit from 2026-07-20, so it inserted capability IDs from a spec snapshot that never moved, while the validate workflow checks the same file against `main`. Any ID renamed or removed upstream since that snapshot came back on every sync, and validation rejected it as an unknown feature ID. Default to `job.workflow_sha` instead, which is the commit of this reusable workflow as the caller pinned it. Bumping the pin now also bumps the spec.
|
Important Review available on request
Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
No caller passes it, and its only remaining purpose would be to reintroduce the spec/workflow skew this branch fixes. Read the spec directly at job.workflow_sha instead.
Tr00d
approved these changes
Aug 18, 2026
spydon
pushed a commit
that referenced
this pull request
Aug 18, 2026
🤖 I have created a release *beep* *boop* --- ## [1.1.1](v1.1.0...v1.1.1) (2026-08-18) ### Bug Fixes * **ci:** read the capability spec at the caller's pinned workflow ref ([#87](#87)) ([f51a1ec](f51a1ec)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: supabase-releaser[bot] <223506987+supabase-releaser[bot]@users.noreply.github.com>
spydon
added a commit
to supabase/supabase-flutter
that referenced
this pull request
Aug 18, 2026
## What Bumps both `supabase/sdk` reusable workflow pins from v1.0.0 (`93b52588`) to v1.1.1 (`63c1ac1d`): - `.github/workflows/sync-compliance.yml` → `sync-sdk-compliance.yml` - `.github/workflows/validate-capabilities.yml` → `validate-sdk-compliance-dart.yml` ## Why v1.0.0 of the sync workflow read the capability spec from a hardcoded commit, `faba359a` from 2026-07-20. Every weekly run therefore re-inserted capability IDs that had since been renamed, split, or removed upstream, and the validate check then rejected them as unknown feature IDs. That is what produced #1726. Capabilities added after that date were never synced at all. supabase/sdk#87 fixed this by checking the spec out at `job.workflow_sha`, the commit of the reusable workflow as pinned here, so the spec now tracks this pin. The fix only takes effect once the pin is bumped, which is what this PR does. ## Notes The only change to `.github/` between v1.0.0 and v1.1.1 is that sync workflow fix, so the `validate-sdk-compliance-dart.yml` bump is a no-op in behavior and just keeps both pins on the same version. #1726 carries the stale IDs from the frozen snapshot and should be closed once this lands, then the sync re-run to regenerate it against the canonical spec. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated compliance and capability validation workflows to use the latest validation workflow version. * Improved the reliability of automated SDK checks. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This was referenced Aug 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
sync-sdk-compliance.ymldefaultedsdk-refto a hardcoded commit,faba359afrom 2026-07-20, so the sync always read the capability spec from that frozen snapshot. The matching validate workflows read the spec frommain.Any capability ID renamed or removed upstream after that snapshot therefore got re-inserted into every SDK's
sdk-compliance.yamlon every weekly sync, and the validate check then rejected it as an unknown feature ID. The pin also meant capabilities added after 2026-07-20 were never synced at all.This is what broke supabase/supabase-flutter#1726, which added five IDs that
9c53a702(#74) had already renamed or split:auth.sign_in.reset_passwordauth.sign_in.send_password_reset_emailrealtime.channel.sendrealtime.channel.broadcaststorage.file_buckets.list_files_paginatedstorage.analytics.iceberg_namespacecreate_namespace/list_namespaces/delete_namespacestorage.analytics.iceberg_tablecreate_table/list_tables/load_table/update_table/rename_table/delete_tableEvery repo calling this workflow was producing the same broken pull request.
Fix
Check the spec out at
job.workflow_sha, the commit of this reusable workflow as the caller pinned it. The spec now tracks the workflow version, so bumping the@shapin in a caller repo also bumps the spec, and the sync can never insert an ID that did not exist at that version.The
sdk-refinput is removed rather than re-defaulted. None of the three callers (supabase-js,supabase-swift,supabase-flutter) pass it, none of them expose aworkflow_dispatchpass-through that could, and its only remaining purpose would be to reintroduce the skew this fixes. Removing aworkflow_callinput is breaking in principle, but with no caller using it there is nothing to break, and callers need a pin bump for this fix regardless.The
sdk-refinput on thevalidate-sdk-compliance-*workflows is untouched. Those default tomain, which is the mirror image of this problem, and are a separate question.Follow-up
Caller repos need a pin bump to pick this up, since the fix lives in the workflow they pin. Under the current
fix:title this releases as a patch. The already-open sync pull requests carrying the stale IDs should be closed and re-run after the bump.Worth confirming on that first run that the
_sdk-speccheckout resolves to the pinned SHA rather thanmain. Ifjob.workflow_shaever came back empty,actions/checkoutwould silently take the default branch instead of failing.