Repository navigation
feat(console): build preview Console SDKs from the pinned release's spec - #14441
Conversation
Security rulesNo new WARNING or ERROR findings from security rules. 19 existing findings tracked in
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
@appwrite.io/console is generated from the Cloud spec, so a PR that adds an endpoint and the Console UI for it cannot type-check until Cloud releases the next SDK. Since 19.0.0 the package ships the spec it was built from, so `bun run sdk:preview` lays this branch's console spec over it and builds an SDK that keeps every Cloud API and gains the branch's changes. The SDK Preview workflow publishes that build to pkg.pr.new on PRs that change both the Console and the API, for the Console to pin until a release carries the change.
59c5d5d to
257e7a2
Compare
…their sdk-for-* repos
commit: |
|
Review complete. 🟡 2 medium 💬 Inline comments (2)
This PR wires an automated Console SDK preview into CI: a new workflow builds the console app, merges an OpenAPI overlay produced from the changed repo onto the pinned base spec, and publishes the result to pkg-pr.new with an update comment on the PR. Supporting changes add a
Reviewed commit: ec26f76 |
🟢 Tier S · Ready to mergeAdds a local command to generate a preview Console SDK by overlaying this branch’s console spec on the pinned SDK’s spec. Extends the SDK Preview workflow to build and publish that SDK for qualifying PRs or manual runs, and documents how contributors can use and pin the preview.
📂 Walkthrough · 5
Reviewed |
There was a problem hiding this comment.
Adds a GitHub workflow job that builds and publishes a pkg-pr.new preview of the Console SDK from merged specs, plus a lint rule and console script/tooling updates to support it.
Key findings
- 🟡
pathsfilter omitspackages/**andcomposer.lockcounted as API changes — sdk-preview.yml:8 - 🟡 Grant
pull-requests: writeto the console preview job — sdk-preview.yml:106
Brings in the 23 commits main gained since the last sync: the MQTT subscribe gate that refuses a user topic whose row name is not the reserved filter and addresses topics by id so lookups hit the primary key (#14460), the console preview SDK flow (#14441) and the SDK docs audit (#14482). MqttServerTest conflicted where the branch had added the reconnect regression tests (blocked user, deleted session) next to main's rewrite of the subscription tests. Both are kept: the branch's reconnect tests, then main's membership-gated subscription tests addressed by topic id. Co-Authored-By: Claude Opus 5.5 <[email protected]>
What
A PR can now ship an API change and the Console UI for it together, built against a Console SDK that has the change.
bun run sdk:preview(inapps/console) generates this branch's console spec and lays it over thespec.jsonthe pinned@appwrite.io/consoleships (feat(sdks): ship the generated spec inside the Console web SDK #14435, first released in 19.0.0). It then generates and builds the Console web SDK and installs it intonode_modules.--no-installonly builds it.bun install --forcerestores the pinned SDK.consolejob runs on PRs that change bothapps/consoleand the API (app/,src/,packages/,composer.lock), and on manual runs withplatform: console. It publishes the same build to pkg.pr.new and comments the URL. The job needs only PHP with swoole, with no Docker stack.lint-sdk-pinsalready allows pkg.pr.new and still blocks pkg.vc Cloud-branch builds. Its note now explains why.apps/console/AGENTS.mddocuments the flow.Contributor flow
bun run sdk:previewgives an SDK with the new endpoint locally.bun run checkandbun run devwork against it.https://pkg.pr.new/appwrite/appwrite/@appwrite.io/console@<pr>URL, which follows the latest push.https://pkg.pr.new/appwrite/appwrite/@appwrite.io/console@<sha>, inapps/console/package.jsonso Console CI builds against it.Verification
Run locally against the pinned
@appwrite.io/[email protected](#14449):sdk:previewbuilds the SDK in about 30s.bun run lint:typesreports the same 1,824 known errors as main, none new.bun install --forcerestores the pinned SDK.updateOauthTrustProviderEmailPolicyandProjectPolicyId.Oauthtrustprovideremailmissing).php -n -d extension=swoole.so).lint:sdk-pinsand actionlint are clean, apart from the existingparallel:step that actionlint flags.@14441and@151a7beURLs serve the build.--no-compact.@appwrite.io/consolelistsappwrite/sdk-for-consoleas its npm repository, so compactpkg.pr.new/@appwrite.io/console@<sha>URLs return 404. The per-SDK preview job gets the same flag.Closes #14443