Skip to content

Release SDK updates - #15

Merged
vasanth-rb merged 9 commits into
mainfrom
stainless/release
Aug 7, 2026
Merged

Release SDK updates#15
vasanth-rb merged 9 commits into
mainfrom
stainless/release

Conversation

@autorender-bot

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

Copy link
Copy Markdown
Collaborator

620a8ec Merge branch 'main' of https://github.com/autorenderhq/sdk-config
1b70be9 chore: sync openapi.json from northstar-server
4daca99 reseal python custom-code after stlc 0.2.1 upgrade
207ad4f Build SDK

Summary by CodeRabbit

  • New Features

    • File listings now support synchronous and asynchronous pagination, including automatic page iteration.
    • Uploads accept tags as either a comma-separated string or an array of tags.
  • Documentation

    • Added pagination guidance and updated API examples and repository links.
    • Refreshed the changelog with recent release entries.
  • Chores

    • Bumped the package version to 0.2.3.
    • Removed release and synchronization automation workflows.

vasanth-rb and others added 4 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
Stainless-Generated-From: ec3cebf78b5415d4f7970eda786b518f221a2bc5
Stainless-Generated-From: c13792b8c4daac5fb8db2dda06d2016c8d88e742
@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@autorender-bot, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 57 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d5e609b9-fb35-4889-b8ef-1b4f9ea857bc

📥 Commits

Reviewing files that changed from the base of the PR and between 6d6648b and 2b84971.

📒 Files selected for processing (21)
  • .github/workflows/publish-pypi.yml
  • .github/workflows/release-doctor.yml
  • .github/workflows/release-please.yml
  • .github/workflows/stlc-promote.yml
  • .github/workflows/stlc-sync-from-production.yml
  • CHANGELOG.md
  • CONTRIBUTING.md
  • README.md
  • api.md
  • pyproject.toml
  • scripts/mock
  • src/autorender/_files.py
  • src/autorender/pagination.py
  • src/autorender/resources/files.py
  • src/autorender/resources/folders.py
  • src/autorender/resources/multipart_uploads.py
  • src/autorender/resources/uploads.py
  • src/autorender/types/file_list_response.py
  • src/autorender/types/upload_create_from_url_params.py
  • tests/api_resources/test_files.py
  • tests/api_resources/test_uploads.py
📝 Walkthrough

Walkthrough

Introduces paginated file listing responses for synchronous and asynchronous clients. Expands upload tags inputs to accept sequences or strings. Updates release metadata, repository links, documentation, tests, and the embedded mock specification.

Changes

API behavior and release updates

Layer / File(s) Summary
File pagination contract and resource flow
src/autorender/pagination.py, src/autorender/resources/files.py, src/autorender/types/file_list_response.py, tests/api_resources/test_files.py, README.md, api.md
Adds metadata-backed sync and async pagination models. File listing returns paginated responses and supports page iteration. Tests and documentation use page.files.
Upload tag input contract
src/autorender/types/upload_create_from_url_params.py, src/autorender/resources/uploads.py, tests/api_resources/test_uploads.py
Allows upload tags values as string sequences or strings. Updates method documentation and tests.
Release metadata and repository references
pyproject.toml, CHANGELOG.md, .github/workflows/*, CONTRIBUTING.md, src/autorender/resources/*, src/autorender/_files.py, scripts/mock
Bumps the package to 0.2.3, updates release entries and repository URLs, adjusts workflow guards, and replaces the embedded OpenAPI specification.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Client
  participant FilesResource
  participant Pagination
  Client->>FilesResource: list()
  FilesResource->>Pagination: request paginated file list
  Pagination-->>Client: page.files and page.meta
  Client->>Pagination: iterate or request next page
Loading
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 57.50% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the primary purpose of the changes: updating and releasing the SDK.
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 💡 2
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
⚔️ Resolve merge conflicts 💡
  • Resolve merge conflict in branch stainless/release
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch stainless/release

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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 one regression case for comma-separated string tags.

These updates only exercise the new list form, but create_from_url() still publicly accepts str as well. Add one sync and one async assertion that pass a comma-separated string so CI still guards the legacy input shape.

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 upload tests
only cover the new list-style tags input, but create_from_url() still accepts
legacy comma-separated string tags. Update the existing create_from_url coverage
in test_uploads.py by adding one sync and one async assertion that pass a string
tags value, alongside the current UploadCreateFromURLResponse checks. Use the
create_from_url method in both the synchronous client test and the async variant
so CI continues to guard the old input shape.
🤖 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 `@pyproject.toml`:
- Line 3: The runtime version source is out of sync because pyproject.toml was
updated but src/autorender/_version.py still hardcodes the old release version.
Update the version constant in _version.py to match the value declared in
pyproject.toml, and make sure any version-retrieval logic that feeds the
client/user-agent uses that shared source so the reported release stays current.

---

Outside diff comments:
In `@tests/api_resources/test_uploads.py`:
- Around line 80-91: The upload tests only cover the new list-style tags input,
but create_from_url() still accepts legacy comma-separated string tags. Update
the existing create_from_url coverage in test_uploads.py by adding one sync and
one async assertion that pass a string tags value, alongside the current
UploadCreateFromURLResponse checks. Use the create_from_url method in both the
synchronous client test and the async variant so CI continues to guard the old
input shape.
🪄 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: d556779c-7e2d-4c05-80cd-9f927c1d0642

📥 Commits

Reviewing files that changed from the base of the PR and between 6bf867f and 714a11f.

📒 Files selected for processing (9)
  • .github/workflows/stlc-promote.yml
  • .github/workflows/stlc-sync-from-production.yml
  • CHANGELOG.md
  • README.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-sync-from-production.yml
  • .github/workflows/stlc-promote.yml

Comment thread pyproject.toml
Stainless-Generated-From: 4b04eaec527725f87b0358f7422c28f31088ecf9
…e) (#1)

Mechanical cleanup after the org rename autorenderhq -> autorender. Updates GitHub
org/repo references (URLs, workflow repo guards, uses:, package metadata, docs).
Intentionally left unchanged: SDK mount paths (autorenderhq-<lang>), Linear workspace
URL, Sentry org slug. No logic changed (string references only).

Co-authored-by: Geetha Karthick <geetha.karthick@seaant.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
stlc-bot and others added 2 commits August 7, 2026 03:49
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@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: 4

🧹 Nitpick comments (1)
tests/api_resources/test_files.py (1)

64-95: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add page-traversal tests for both clients.

The current tests validate only the initial response type. They do not validate files extraction, meta.hasNext=False, page-number advancement, or preservation of the original query parameters.

  • tests/api_resources/test_files.py#L64-L95: Mock at least two pages and assert synchronous iteration requests page 2 and stops when hasNext is false.
  • tests/api_resources/test_files.py#L224-L255: Add the equivalent asynchronous iteration and next-page assertions.
🤖 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_files.py` around lines 64 - 95, Extend
tests/api_resources/test_files.py lines 64-95 with synchronous pagination
coverage around the files client tests: mock at least two pages, assert
extracted files, verify the second request advances to page 2 while preserving
the original query parameters, and confirm iteration stops when meta.hasNext is
false. Add equivalent asynchronous iteration and next-page assertions at
tests/api_resources/test_files.py lines 224-255.
🤖 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 `@api.md`:
- Line 25: Update the return-type link in the files list API documentation so
SyncPagePagination links to its definition in pagination.py, while
FileListResponse remains separately linked to file_list_response.py.

In `@CHANGELOG.md`:
- Line 62: Update CHANGELOG.md to eliminate the duplicate 0.1.0 release
headings: merge the May 15, 2026 legacy entries into the existing 0.1.0 section
or rename that legacy section, leaving one unambiguous 0.1.0 release entry.

In `@CONTRIBUTING.md`:
- Line 74: Update the installation command example in CONTRIBUTING.md to satisfy
markdownlint MD014 by removing the leading shell prompt marker, or add a
representative output block showing the command’s result.

In `@README.md`:
- Around line 167-170: Update the README example around first_page so accessing
the optional meta field cannot raise an AttributeError; guard first_page.meta
before reading page, while preserving the existing page-number output when
metadata is present.

---

Nitpick comments:
In `@tests/api_resources/test_files.py`:
- Around line 64-95: Extend tests/api_resources/test_files.py lines 64-95 with
synchronous pagination coverage around the files client tests: mock at least two
pages, assert extracted files, verify the second request advances to page 2
while preserving the original query parameters, and confirm iteration stops when
meta.hasNext is false. Add equivalent asynchronous iteration and next-page
assertions at tests/api_resources/test_files.py lines 224-255.
🪄 Autofix

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: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 695af4f5-4302-4f25-a73f-9fa8fe24544c

📥 Commits

Reviewing files that changed from the base of the PR and between 6d6648b and 2b84971.

📒 Files selected for processing (21)
  • .github/workflows/publish-pypi.yml
  • .github/workflows/release-doctor.yml
  • .github/workflows/release-please.yml
  • .github/workflows/stlc-promote.yml
  • .github/workflows/stlc-sync-from-production.yml
  • CHANGELOG.md
  • CONTRIBUTING.md
  • README.md
  • api.md
  • pyproject.toml
  • scripts/mock
  • src/autorender/_files.py
  • src/autorender/pagination.py
  • src/autorender/resources/files.py
  • src/autorender/resources/folders.py
  • src/autorender/resources/multipart_uploads.py
  • src/autorender/resources/uploads.py
  • src/autorender/types/file_list_response.py
  • src/autorender/types/upload_create_from_url_params.py
  • tests/api_resources/test_files.py
  • tests/api_resources/test_uploads.py
💤 Files with no reviewable changes (2)
  • .github/workflows/stlc-sync-from-production.yml
  • .github/workflows/stlc-promote.yml
🚧 Files skipped from review as they are similar to previous changes (4)
  • scripts/mock
  • src/autorender/types/upload_create_from_url_params.py
  • tests/api_resources/test_uploads.py
  • src/autorender/resources/uploads.py

Comment thread api.md

- <code title="get /api/v1/files/{fileNo}">client.files.<a href="./src/autorender/resources/files.py">retrieve</a>(file_no) -> <a href="./src/autorender/types/file_retrieve_response.py">FileRetrieveResponse</a></code>
- <code title="get /api/v1/files">client.files.<a href="./src/autorender/resources/files.py">list</a>(\*\*<a href="src/autorender/types/file_list_params.py">params</a>) -> <a href="./src/autorender/types/file_list_response.py">FileListResponse</a></code>
- <code title="get /api/v1/files">client.files.<a href="./src/autorender/resources/files.py">list</a>(\*\*<a href="src/autorender/types/file_list_params.py">params</a>) -> <a href="./src/autorender/types/file_list_response.py">SyncPagePagination[FileListResponse]</a></code>

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

Link SyncPagePagination to its definition.

Line 25 links SyncPagePagination[FileListResponse] to file_list_response.py. That file does not define SyncPagePagination. Link the wrapper to src/autorender/pagination.py and link FileListResponse separately.

🤖 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 `@api.md` at line 25, Update the return-type link in the files list API
documentation so SyncPagePagination links to its definition in pagination.py,
while FileListResponse remains separately linked to file_list_response.py.

Comment thread CHANGELOG.md
* trigger release-please ([8db5acc](https://github.com/autorender/autorender-python/commit/8db5acc865fce568f3ebb33c2e2536d9e84a41a6))
* update stlc custom-code tracking files ([505f95e](https://github.com/autorender/autorender-python/commit/505f95e9e6b66928d05ffa5b630102fdfe3b5e3e))

## [0.1.0](https://github.com/autorender/autorender-python/compare/v0.0.1...v0.1.0) (2026-05-25)

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

Avoid duplicate 0.1.0 release headings.

CHANGELOG.md contains two 0.1.0 sections dated May 25, 2026 and May 15, 2026. Merge the legacy entries under one version heading, or rename the legacy section so the release history has one unambiguous 0.1.0 entry.

Also applies to: 108-108

🤖 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` at line 62, Update CHANGELOG.md to eliminate the duplicate
0.1.0 release headings: merge the May 15, 2026 legacy entries into the existing
0.1.0 section or rename that legacy section, leaving one unambiguous 0.1.0
release entry.

Comment thread CONTRIBUTING.md
Comment thread README.md
Comment on lines +167 to +170
first_page = await client.files.list()

print(f"page number: {first_page.meta.page}") # => "page number: 1"
for file in first_page.files:

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

Guard access to optional meta.

first_page.meta can be None. Line 169 can raise AttributeError for a response without metadata. Guard meta before reading meta.page, or document that this endpoint always returns metadata.

🤖 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 `@README.md` around lines 167 - 170, Update the README example around
first_page so accessing the optional meta field cannot raise an AttributeError;
guard first_page.meta before reading page, while preserving the existing
page-number output when metadata is present.

@vasanth-rb
vasanth-rb merged commit 2137b3f into main Aug 7, 2026
11 checks passed
@vasanth-rb
vasanth-rb deleted the stainless/release branch August 7, 2026 05:05
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.

3 participants