Skip to content

build(plugins): stamp the provided type ids in every plugin plist - #3502

Merged
datlechin merged 1 commit into
mainfrom
build/plugin-provided-type-stamps
Oct 18, 2026
Merged

datlechin merged 1 commit into
mainfrom
build/plugin-provided-type-stamps

Conversation

@datlechin

Copy link
Copy Markdown
Member

Why

14 registry drivers had no TableProProvides* keys, so the app loaded them at launch instead of on first use: BigQuery, Cassandra, Cloudflare D1, DuckDB, DynamoDB, Elasticsearch, etcd, libSQL, MongoDB, SQL Server, Oracle, Snowflake, Teradata, Trino. PostgreSQL's list missed PGlite. Nothing compared the keys with the Swift ids. Step 12 cleanup of the release rewrite.

Change

  • The 14 drivers declare their database type ids, and PostgreSQL adds PGlite.
  • scripts/ci/check-plugin-provides.py checks every plugin plist against its class's databaseTypeId, additionalDatabaseTypeIds and formatId in Repo Hygiene. --write stamps them.
  • One Changed entry.

Verified

  • PluginLazyRegistrationTests: its bundled-plugin case fails with PGlite removed from the PostgreSQL plist.
  • A Debug OracleDriver build installed in a sandboxed app logs 16 lazy + 0 eager (0 driver(s) active). The same build with the key deleted logs 15 lazy + 1 eager (1 driver(s) active).

Not in this PR

  • Shipped registry plugins keep loading at launch until their next build ships.

@datlechin
datlechin merged commit a07cdcf into main Oct 18, 2026
7 checks passed
@datlechin
datlechin deleted the build/plugin-provided-type-stamps branch October 18, 2026 03:29
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