Repository navigation
test(sdk): lock SDK parameter order so reorders fail CI - #14469
Conversation
SDKs pass arguments positionally, so declaring a new param ahead of an existing one, or reordering existing ones, silently shifts released callers onto the wrong params. The lock records every SDK method's order per platform; the test fails on a reorder, a removal or a new param placed ahead of existing ones, and asks for new methods and appended params to be added.
|
Review complete. No issues found — approved ✅. This PR introduces a contract lock for the SDK generator's positional parameter order: a new per-platform lockfile for
No findings met the reporting threshold; reviewers confirmed route-bootstrap parity, platform keying, hidden/deprecated param handling, and alias matching as sound. Reviewed commit: 3af8660 |
Security rulesNo new WARNING or ERROR findings from security rules. 19 existing findings tracked in
|
🟢 Tier S · Ready to mergeAdds a per-platform lock for SDK method parameter order and a unit test that derives current parameter lists from registered routes and checks them against that lock. The SDK specification formatter now exposes the same requiredness rule used by generation so the test also reproduces SDK-required parameter ordering, including the web-platform hostname override. Latest changes: The latest commit extracts the hostname-requiredness override into
📂 Walkthrough · 3
Reviewed the commits since |
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
The spec forces hostname to required on createWebPlatform and updateWebPlatform, so SDKs list it ahead of optional params. The lock test read the route flag instead and would have flagged an optional param declared before hostname as breaking.
Bring in the description schema attribute (#14471) and the SDK parameter order lock (#14469). The collection configs on this branch declare attributes with typed Attribute value objects, so main's array-shaped description entries are ported as Attribute::string(size: 1024, default: '') in the same positions; the V25 steps already go through the typed createAttributeFromCollection helpers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
SDKs pass arguments positionally, so a param declared in the wrong place silently shifts released callers (#14423, #14467). This locks the order and fails CI when it changes.
app/config/sdks/parameters.lock.jsonrecords each method per platform, in SDK order: path/query before body, required first, then as declared, which matches the generator.tests/unit/SDK/ParametersTest.phploads every route and checks:The lock was seeded from
mainand checked against the released SDKs: it matches node 29.3.1 (server) and web 28.3.0 (client). Console 19.0.0 shipped the reordered messaging and OAuth2 signatures that #14467 reverted. The lock keeps the server order, so the next console SDK release moves those 15 methods back. The console app passes objects, not positional args, so it isn't affected.Seen red: with #14467 reverted, the test fails on
messaging.createEmail(shown above for an injected param).Closes #14470