Skip to content

Release SDK updates - #14

Merged
autorender-bot merged 4 commits into
mainfrom
stainless/release
Jun 29, 2026
Merged

Release SDK updates#14
autorender-bot merged 4 commits into
mainfrom
stainless/release

Conversation

@autorender-bot

@autorender-bot autorender-bot commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

207ad4f Build SDK

Summary by CodeRabbit

  • New Features

    • Uploads can now accept tags as either a comma-separated string or a list, making request formatting more flexible.
  • Bug Fixes

    • Updated upload-from-URL handling to better match expected tag input formats.
  • Chores

    • Removed two background release/sync automation workflows.
    • Updated the release notes and package version to 0.2.2.
    • Refreshed the bundled mock API specification.
    • Updated tests to reflect the new tag input format.

vasanth-rb and others added 2 commits June 13, 2026 10:43
Stainless-Generated-From: e8b86d0b5a7c3e60ee5f69d62dd212e78202df09
scripts/mock EMBEDDED_SPEC conflict resolved by taking the new
gen-head version; tracking file updated accordingly.

Stainless-Generated-From: 96ea59d391e721e9f06a0e9f526cf424554a1f5e
stlc-bot and others added 2 commits June 29, 2026 16:43
@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The tags parameter in create_from_url (sync and async) and UploadCreateFromURLParams is broadened from str to Union[SequenceNotStr[str], str]. Tests are updated to pass a list. The package version is bumped to 0.2.2, CHANGELOG.md is updated, the embedded OpenAPI spec is refreshed, and two STLC GitHub Actions workflow files are deleted.

Changes

v0.2.2 release: tags type expansion and workflow cleanup

Layer / File(s) Summary
tags type contract
src/autorender/types/upload_create_from_url_params.py
Imports SequenceNotStr; changes UploadCreateFromURLParams.tags from str to Union[SequenceNotStr[str], str] with updated docstring.
Sync and async resource signatures
src/autorender/resources/uploads.py
Adds Union and SequenceNotStr imports; updates tags parameter type in both UploadsResource.create_from_url and AsyncUploadsResource.create_from_url.
Tests, spec, version, and changelog
tests/api_resources/test_uploads.py, scripts/mock, pyproject.toml, CHANGELOG.md, .github/workflows/stlc-*.yml
Tests pass tags as a list; embedded OpenAPI spec payload refreshed; version bumped to 0.2.2; CHANGELOG updated; two STLC automation workflows deleted.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 A tag was a string, just one lonely line,
Now arrays are welcome — oh how divine!
We bumped up the version, the changelog is bright,
Two workflows departed, we tidied up right.
Hop hop, 0.2.2 is here tonight! 🌟

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the PR's release-oriented SDK update changes, though it is broad.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch stainless/release

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
tests/api_resources/test_uploads.py (1)

80-91: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Keep coverage for the legacy string form.

This change broadens tags, but these are still the only end-to-end create_from_url(..., tags=...) cases in the provided tests. Replacing the old string fixture with a list drops regression coverage for the existing comma-separated-string contract, so a serializer change could break current callers unnoticed. Please parametrize these tests over both "tag1,tag2" and ["tag1", "tag2"].

Also applies to: 180-191

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/api_resources/test_uploads.py` around lines 80 - 91, The
create_from_url test coverage in tests/api_resources/test_uploads.py only
exercises the new list form for tags and drops the legacy comma-separated string
contract. Update the affected create_from_url test cases, including
test_method_create_from_url_with_all_params and the other referenced upload
tests, to be parametrized over both "tag1,tag2" and ["tag1", "tag2"] so the
serializer behavior is validated for both inputs.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@CHANGELOG.md`:
- Around line 54-99: The CHANGELOG has a duplicated release section for 0.1.0,
which makes the release history ambiguous. Remove the extra 0.1.0 heading/block
so only one release entry remains for that version, keeping the linked compare
header and the existing Features/Bug Fixes/Chores content under the single 0.1.0
section.

---

Outside diff comments:
In `@tests/api_resources/test_uploads.py`:
- Around line 80-91: The create_from_url test coverage in
tests/api_resources/test_uploads.py only exercises the new list form for tags
and drops the legacy comma-separated string contract. Update the affected
create_from_url test cases, including
test_method_create_from_url_with_all_params and the other referenced upload
tests, to be parametrized over both "tag1,tag2" and ["tag1", "tag2"] so the
serializer behavior is validated for both inputs.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 803ffd6c-f139-4834-8be9-e532510d322a

📥 Commits

Reviewing files that changed from the base of the PR and between a1fad42 and 32e182d.

📒 Files selected for processing (8)
  • .github/workflows/stlc-promote.yml
  • .github/workflows/stlc-sync-from-production.yml
  • CHANGELOG.md
  • pyproject.toml
  • scripts/mock
  • src/autorender/resources/uploads.py
  • src/autorender/types/upload_create_from_url_params.py
  • tests/api_resources/test_uploads.py
💤 Files with no reviewable changes (2)
  • .github/workflows/stlc-promote.yml
  • .github/workflows/stlc-sync-from-production.yml

Comment thread CHANGELOG.md
Comment on lines +54 to +99
## [0.1.0](https://github.com/autorenderhq/autorender-python/compare/v0.0.1...v0.1.0) (2026-05-25)


### Features

* add test CI job ([2c25e3a](https://github.com/autorenderhq/autorender-python/commit/2c25e3ad8ffe7ff44d5e7781e37de7c2598550df))
* **api:** api update ([84d1942](https://github.com/autorenderhq/autorender-python/commit/84d19422bdd7a80d8c0d52fe6bb0e989f7b2abe7))
* **api:** api update ([9dc8482](https://github.com/autorenderhq/autorender-python/commit/9dc848263fbf6509dd3e84a3a7963a897d14991b))
* **api:** api update ([04c1163](https://github.com/autorenderhq/autorender-python/commit/04c116350cc7a2f5f288a8fd9febd020083cf536))
* **api:** api update ([b4d6dbe](https://github.com/autorenderhq/autorender-python/commit/b4d6dbee14ac3e753968ce90388eaf01d2af4b94))
* **api:** api update ([3932736](https://github.com/autorenderhq/autorender-python/commit/393273609afc67cc8b30d33bb27861edb1e20988))
* **api:** api update ([58346bd](https://github.com/autorenderhq/autorender-python/commit/58346bdeba4b11a33fd1e63c69fceb432424bdf0))
* **api:** api update ([7fdb60a](https://github.com/autorenderhq/autorender-python/commit/7fdb60a62af1ae9fd716c3a9939d2cc128bd4a85))
* **api:** api update ([79c95b0](https://github.com/autorenderhq/autorender-python/commit/79c95b0a55d59e214f0b00936a5b517c0f66ca13))
* **api:** api update ([b43e6a1](https://github.com/autorenderhq/autorender-python/commit/b43e6a1b4b157808d3ef2606552df4e68c1524e7))
* **api:** api update ([658511c](https://github.com/autorenderhq/autorender-python/commit/658511ca294a346646139b0c4c5e0f4e151115e4))
* initial stlc build ([0bdb709](https://github.com/autorenderhq/autorender-python/commit/0bdb709b1d8e670a795f867f71fab9c3ef6be539))
* **internal/types:** support eagerly validating pydantic iterators ([477052f](https://github.com/autorenderhq/autorender-python/commit/477052fa9cd1ff89c96ee4b8febf010851c6501e))
* support setting headers via env ([749df21](https://github.com/autorenderhq/autorender-python/commit/749df21f7ac657d44cb297707a5ec2506bcb0df9))


### Bug Fixes

* **client:** add missing f-string prefix in file type error message ([0f93e15](https://github.com/autorenderhq/autorender-python/commit/0f93e15723c120a2f409cf2884d085f7966d5d0c))
* **examples:** use timestamp names and correct response shape in files.py ([b4d13a7](https://github.com/autorenderhq/autorender-python/commit/b4d13a7d72784c4448424db46495c985276773d3))
* install rye for Python SDK bootstrap ([5f089bf](https://github.com/autorenderhq/autorender-python/commit/5f089bf37c183b4d41b1eb1787c5b7390d93b0f2))
* **pagination:** resolve pyright incompatible override for has_next_page ([5cf6e56](https://github.com/autorenderhq/autorender-python/commit/5cf6e565ac0aeecdc5e59b887b1e008892eed1ce))
* **python:** rename pagination field has_next_page -> has_next to fix pyright lint ([729d204](https://github.com/autorenderhq/autorender-python/commit/729d20471bdfe545acdea2e443cfb2b8436ba08a))
* strip Content-Type header for body-less requests; add examples ([c3591d0](https://github.com/autorenderhq/autorender-python/commit/c3591d02910ded15e21a7ed7da402bf149f46857))
* use correct field name format for multipart file arrays ([f968ef9](https://github.com/autorenderhq/autorender-python/commit/f968ef95330967c6b888ea3fc89c85f12ee926d1))


### Performance Improvements

* **client:** optimize file structure copying in multipart requests ([498d621](https://github.com/autorenderhq/autorender-python/commit/498d621cc46637650c03f1ed9d00749dbcab9c99))


### Chores

* **internal:** more robust bootstrap script ([798e8b7](https://github.com/autorenderhq/autorender-python/commit/798e8b79c22e0173d4f30a80924dcad627cc838f))
* **internal:** reformat pyproject.toml ([fcc4169](https://github.com/autorenderhq/autorender-python/commit/fcc4169f137c6f4e6305bd0b8133658ad5337aa6))
* remove examples from SDK (moved to stainless-examples runner) ([12a383e](https://github.com/autorenderhq/autorender-python/commit/12a383e16ab6e856905dd8ce8f3f666ff914c43c))
* **tests:** bump steady to v0.22.1 ([30a0e81](https://github.com/autorenderhq/autorender-python/commit/30a0e8184adf8271f879cb9e5175ed52404a0043))
* update SDK settings ([aead4ee](https://github.com/autorenderhq/autorender-python/commit/aead4ee8dd9504134612b1845cd18576b7c58848))
* update stlc custom-code tracking files ([505f95e](https://github.com/autorenderhq/autorender-python/commit/505f95e9e6b66928d05ffa5b630102fdfe3b5e3e))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Remove the duplicated 0.1.0 entry.

Lines 54-99 already add a linked 0.1.0 section, but Line 100 starts a second 0.1.0 block immediately after it. Publishing both makes the release history ambiguous.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CHANGELOG.md` around lines 54 - 99, The CHANGELOG has a duplicated release
section for 0.1.0, which makes the release history ambiguous. Remove the extra
0.1.0 heading/block so only one release entry remains for that version, keeping
the linked compare header and the existing Features/Bug Fixes/Chores content
under the single 0.1.0 section.

@autorender-bot
autorender-bot merged commit a855eef into main Jun 29, 2026
11 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Jun 30, 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.

2 participants