Skip to content

fix(sdks): stop calling generator setters removed in sdk-generator 5.3.4 - #14073

Merged
ChiragAgg5k merged 1 commit into
mainfrom
fix/sdks-drop-removed-generator-setters
Oct 3, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
fix/sdks-drop-removed-generator-setters

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

sdk-generator 5.3.4 includes appwrite/sdk-generator#1959, which deleted SDK::setShareText, setShareURL, setShareTags, setShareVia and setBowerPackage. No template read them. The SDKs task still calls them, so on 5.3.4 every sdks run dies with Call to undefined method Appwrite\SDK\SDK::setShareText(). This blocks the Android 29.0.0 release in cloud, which needs 5.3.4.

This removes the seven calls. They were no-ops on every 5.x generator, so the task behaves the same on the 5.0.1 this repo locks and on 5.3.4. The lock is left alone: bumping 5.0.1 to 5.3.4 changes SDK output and belongs in its own PR.

Testing

With sdk-generator 5.3.4 installed locally (lock reverted before committing), php app/cli.php sdks --git=no --ai=no generates client-android, client-web and server-nodejs without errors. Those cover the share setters and both setBowerPackage paths. On main the same command fails on setShareText.

Nothing in CI runs the sdks task against a newer generator than the lock (sdk-preview.yml uses the locked 5.0.1), so a generator release that drops an API this task uses is caught only when someone generates with it.

Related: appwrite-labs/cloud#6299

sdk-generator 5.3.4 (appwrite/sdk-generator#1959) deleted the share and Bower settings: no template read them. The SDKs task still set them, so generation fails with 'Call to undefined method' on 5.3.4. Removing the calls works on every 5.x generator.
@ghost

ghost commented Oct 3, 2026

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

No concrete defects found in the scoped removal or its surrounding configuration paths.

Removes three Bower package setter calls from Web and Node SDK configuration and four share-metadata setters from the common SDK setup. This avoids calls to APIs removed in sdk-generator 5.3.4 while leaving the locked generator version and remaining configuration unchanged.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 1
File Change
src/Appwrite/Platform/Tasks/SDKs.php Remove obsolete Bower and share-metadata setter calls.

Reviewed da52726 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Tier S · Looks good to merge. Summary

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → fix/sdks-drop-removed-generator-setters (after).

Metric Before After Change
🚀 Requests/sec 196.91 198.97 ⚪ +1%
⏱️ Latency P50 88.42 ms 87.7 ms ⚪ -0.8%
⏱️ Latency P95 206.23 ms 202.21 ms ⚪ -2%
Per-scenario breakdown & investigation details

Metrics below reflect the current branch (after). Δ P95 compares against the base.

Scenario P50 (ms) P95 (ms) Requests RPS Δ P95 (ms)
API total 87.7 202.21 12,540 198.97 -4.02
Account 165.47 315.2 660 11.1 -14.7
TablesDB 85.21 165.37 6,820 110.71 +1.37
Storage 79.3 172.71 3,300 55.32 +0.4
Functions 123.41 235.63 1,760 30.11 -7.82

Top API waits (after)

API request Max wait (ms)
account.name.update 524.56
account.prefs.update 499.12
functions.variables.create 362.79
functions.variables.update 360.39
functions.create 354.23

@ChiragAgg5k
ChiragAgg5k merged commit ee75768 into main Oct 3, 2026
50 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the fix/sdks-drop-removed-generator-setters branch October 4, 2026 15:35
abnegate added a commit that referenced this pull request Oct 5, 2026
cloud#5410 re-pins server-ce to this branch and needs main at or past
ee75768: the health tests that stop asserting wall-clock ping budgets
(#14069), Content-Length: 0 on empty client bodies for OAuth token
requests (#14072) and the SDK task no longer calling setters removed in
sdk-generator 5.3.4 (#14073). Also brings the GitHub OAuth missing-user
fix (#14093) and appwrite/geo 0.3.2 (#14100). The merge is clean and the
lock is untouched; both sides still resolve appwrite/sdk-generator 5.0.1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ChiragAgg5k ChiragAgg5k self-assigned this Oct 5, 2026
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