• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-flutter / 35978129877
94%

Build:
DEFAULT BRANCH: main
Ran 24 Sep 2026 08:58AM UTC
Jobs 11
Files 171
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Sep 2026 08:55AM UTC coverage: 90.951% (+0.006%) from 90.945%
35978129877

push

github

web-flow
fix(supabase_typegen): order the view copies of a foreign key deterministically (#1883)

## What

Mirrors [supabase/sdk#207](https://github.com/supabase/sdk/pull/207)
(SDK-1953) in the Dart port of `sortGeneratorMetadata`.

The relationship comparator compared only `foreign_key_name`,
`referenced_relation` and `referenced_columns`. The view expansion
copies one foreign key onto every view exposing it, so those copies tie
on all three and stayed in the order the view key dependency query
aggregated them in, which has no `ORDER BY`. The port pinned that with a
stable merge sort and the test "keeps the introspection order of
relationships that tie", so it matched postgrest-typegen 0.2.2 byte for
byte while both depended on query order. The comparator now breaks ties
on `referenced_schema`, `schema`, `relation` and `columns`, the same
keys in the same order as upstream, and the test asserts the same order
from two input orders.

- `test/fixtures/generator_metadata.json` regenerated with
`tool/regenerate_fixture.ts --source` pointing at the sdk#207 branch:
the only change is that the `author_stats` copy of
`books_author_id_fkey` now precedes the `books` one.
- Goldens regenerated: `Authors.relations` lists `authorStats` before
`books`, and the header now names the current package version.

## Pin

`postgrestTypegenRevision` stays at `postgrest-typegen-v0.2.2`. The
drift check compares the SQL builders, which are unchanged, so it passes
against both the pin and sdk `main`. The sort itself is not covered by
that check, which is why this change has to be mirrored by hand. Bump
the pin once the postgrest-typegen release containing sdk#207 is out.

## Tests

- `dart test` in `packages/supabase_typegen` with
`SUPABASE_TYPEGEN_PARITY_DATABASE_URL` set against a fresh `postgres:15`
seeded with `seed.sql`, introspected through the Supabase CLI 2.116: 196
tests pass, including the parity test against the regenerated fixture
and goldens.
- `dart analyze` clean, `dart... (continued)

6 of 6 new or added lines in 1 file covered. (100.0%)

8664 of 9526 relevant lines covered (90.95%)

4.86 hits per line

Jobs
ID Job ID Ran Files Coverage
11 supabase_typegen - 35978129877.11 24 Sep 2026 08:58AM UTC 24
95.2
GitHub Action Run
3 supabase_flutter - 35970668421.3 24 Sep 2026 07:39AM UTC 14
78.5
GitHub Action Run
2 yet_another_json_isolate - 35608843571.2 21 Sep 2026 01:58PM UTC 1
98.44
GitHub Action Run
3 supabase_common - 35624013119.3 21 Sep 2026 04:13PM UTC 22
87.36
GitHub Action Run
6 supabase_realtime - 35970668421.6 24 Sep 2026 07:43AM UTC 13
90.66
GitHub Action Run
7 supabase_auth - 35970668421.7 24 Sep 2026 07:43AM UTC 32
92.0
GitHub Action Run
9 supabase_functions - 35970668421.9 24 Sep 2026 07:39AM UTC 4
93.81
GitHub Action Run
5 iceberg - 35970668421.5 24 Sep 2026 07:39AM UTC 6
68.52
GitHub Action Run
4 postgrest - 35970668421.4 24 Sep 2026 07:42AM UTC 28
93.44
GitHub Action Run
8 supabase - 35970668421.8 24 Sep 2026 07:42AM UTC 18
93.71
GitHub Action Run
11 supabase_storage - 35970668421.11 24 Sep 2026 07:41AM UTC 9
97.61
GitHub Action Run
Source Files on build 35978129877
  • Tree
  • List 171
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35978129877
  • 6975f620 on github
  • Prev Build on main (#35970668421)
  • Next Build on main (#35998092270)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc