Skip to content

fix(ci): repair python pipeline and simplify sdk-compliance workflow - #42

Merged
spydon merged 4 commits into
mainfrom
fix/decouple-sdk-compliance-languages
Jun 24, 2026
Merged

spydon merged 4 commits into
mainfrom
fix/decouple-sdk-compliance-languages

Conversation

@spydon

@spydon spydon commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The reusable validate-sdk-compliance.yml workflow failed for Flutter/Dart with:

##[error]Unable to resolve action `actions/setup-python@39cd14951b08e74b54015ebf0246ef4cc7b4ce8`, unable to find version

(example failing run)

GitHub resolves and downloads every action referenced in a job before evaluating any step-level if:. So even though the Python steps were gated with if: inputs.language == 'python', the unresolvable setup-python SHA failed the whole check job for Dart (and every other language) too.

Changes

  • Fix the Python pipeline. Replace the unresolvable setup-python SHA with v5.6.0 (a26af69be951a213d495a4c3e4e4022e16d87065) and pin python-version from the floating 3.x to 3.13.
  • Collapse PR/base duplication. Every language ran its extraction command twice as near-identical steps (once against the PR checkout, once against base). Each pair is now a single step that loops for b in pr base, so the command and its flags are written once.
  • Drop the Resolve parse command indirection. It only ever produced parse-ts, so JavaScript now calls parse-ts directly, with an explicit Validate language input guard added up front.

No behavioral change beyond the Python fix: same commands, same working directories, and GitHub's default bash -eo pipefail keeps the exit 1 guards failing the step as before. The check job goes from 23 steps to 18 (net -106/+60 lines).

Why not separate jobs or a matrix

I explored decoupling each language into its own job (and a matrix) for action-resolution isolation. It doesn't help: a matrix instance is still a single job, GitHub resolves all uses: actions in it before any step if: runs, and matrix isn't available in job-level if: so irrelevant instances can't be skipped. Since the workflow only ever runs one language per call, there's nothing to fan out over, and a single conditional job is the minimal-overhead shape. The bad SHA was the only real bug.

…flow

GitHub resolves every action in a job before evaluating step-level
`if:`, so a broken `setup-python` ref failed the whole check job even
for non-Python SDKs. Split each language into its own job gated by a
job-level `if:` (skipped jobs never resolve their actions) that uploads
a symbols artifact, with a final check job consuming it.

Also fix the unresolvable `setup-python` SHA (now v5.6.0) and pin
python-version to 3.13.
@spydon
spydon requested review from a team as code owners June 23, 2026 14:08

@QuintinWillison QuintinWillison left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The repetition being introduced by this change makes me wonder if this might be a contender for a matrix strategy.

Revert the per-language job split: a matrix/separate-job design can't
avoid resolving other languages' actions (resolution ignores step `if:`)
and the workflow only ever runs one language per call, so the single
conditional job is the minimal-overhead shape. Keep only the actual fix:
the unresolvable setup-python SHA (now v5.6.0) and python-version pinned
to 3.13.
@spydon spydon changed the title fix(ci): decouple per-language extraction in reusable compliance workflow fix(ci): correct setup-python ref and pin python version Jun 24, 2026
Each language ran the same extraction command twice (PR checkout, base
checkout). Loop over both branches in one step instead, and drop the
'Resolve parse command' indirection now that only JavaScript uses
parse-ts. Adds an explicit language guard up front.
@spydon spydon changed the title fix(ci): correct setup-python ref and pin python version fix(ci): repair python pipeline and simplify sdk-compliance workflow Jun 24, 2026
@spydon

spydon commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor Author

The repetition being introduced by this change makes me wonder if this might be a contender for a matrix strategy.

Unfortunately that wouldn't work since it would then have to resolve all dependencies still.

@spydon
spydon merged commit 2140f44 into main Jun 24, 2026
@spydon
spydon deleted the fix/decouple-sdk-compliance-languages branch June 24, 2026 10:09
grdsdev pushed a commit that referenced this pull request Aug 12, 2026
🤖 I have created a release *beep* *boop*
---


## [1.0.0](v1.0.0...v1.0.0)
(2026-08-12)


### ⚠ BREAKING CHANGES

* reconcile capability matrix inconsistencies from skill audit
([#74](#74))

### Features

* add capabilities based on supabase-js public methods
([#19](#19))
([8b07e38](8b07e38))
* add capability-matrix maintenance skill
([#73](#73))
([070e2c9](070e2c9))
* add review-spec and review-spec-compliance skills
([#6](#6))
([b2646c1](b2646c1))
* add SDK implementation status matrix to README and skill
([#4](#4))
([753f06c](753f06c))
* **api-check:** include file path and line number in compliance failure
messages ([#45](#45))
([2f4be47](2f4be47))
* **auth:** add sign-out reason capability
([#47](#47))
([51a3abd](51a3abd))
* canonical SDK capability matrix
([#8](#8))
([215bc3e](215bc3e))
* **capability-matrix:** strict cross-SDK parity score + coverage scope
([#63](#63))
([de1abe1](de1abe1))
* CI check 1 — block PRs adding public API not in capability matrix
([#31](#31))
([293440c](293440c))
* **compliance:** list undeclared features after validation
([#48](#48))
([29f396a](29f396a))
* **compliance:** list undeclared features as notes after validation
([29f396a](29f396a))
* **compliance:** split symbol evidence from symbol coverage
([#75](#75))
([abc8e71](abc8e71))
* initial SDK specs, skills, and install script
([e662b17](e662b17))
* move SDK compliance to per-repo files
([#15](#15))
([4d32675](4d32675))
* **parsers:** add Dart public API parser via package:analyzer
(alternative to [#35](#35))
([#41](#41))
([e3ba07a](e3ba07a))
* **parsers:** add griffe-based Python public API surface parser
([#36](#36))
([c44f836](c44f836))
* **parsers:** replace Swift regex parser with swift-symbolgraph-extract
([#38](#38))
([80529a7](80529a7))
* **realtime:** add multiple postgres_changes filters capability
([#70](#70))
([825ab0c](825ab0c))
* reconcile capability matrix inconsistencies from skill audit
([#74](#74))
([9c53a70](9c53a70))
* rename sdk-parse-ignore to .sdk-parse-ignore
([#37](#37))
([4f4ab61](4f4ab61))
* render symbol names as clickable links in capability matrix
([#14](#14))
([dcaf122](dcaf122))
* show feature description as visible sub-text in capability matrix
([#13](#13))
([3a750ab](3a750ab))
* **site:** serve compliance.json with precomputed parity from GitHub
Pages ([#46](#46))
([0d9106c](0d9106c))
* **storage:** add purge_cache and purge_bucket_cache canonical
capabilities ([#44](#44))
([9a6f864](9a6f864))
* **storage:** add storage.errors.error_codes capability
([#71](#71))
([fabb9a7](fabb9a7))
* **storage:** add the five missing Iceberg catalog capabilities
([#76](#76))
([c3c8f9e](c3c8f9e))


### Bug Fixes

* **aggregate:** point csharp and go SDKs at correct repo slugs
([#62](#62))
([8b7320f](8b7320f))
* **aggregate:** point kotlin SDK at supabase-community/supabase-kt
([#61](#61))
([b1a99e9](b1a99e9))
* **capability-matrix:** correct coverage scope metric description
([#64](#64))
([5daeaf5](5daeaf5))
* **ci:** repair python pipeline and simplify sdk-compliance workflow
([#42](#42))
([2140f44](2140f44))
* **ci:** use nx to run docs:json so workspace deps are built first
([#56](#56))
([9b449bb](9b449bb))
* **dart-extractor:** exclude
[@internal-annotated](https://github.com/internal-annotated) symbols
from the public API surface
([9bd358e](9bd358e))
* **dart-extractor:** exclude [@internal](https://github.com/internal)
symbols from the public API surface
([#54](#54))
([9bd358e](9bd358e))
* remove broken sticky thead, add scroll-margin-top and group-row
borders ([#10](#10))
([68761cd](68761cd))

---
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>
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.

3 participants