Skip to content

Sync staged changes (curated)#2709

Merged
musa-cf merged 12 commits intonextfrom
sync/staging-next-2026-04-30
Apr 30, 2026
Merged

Sync staged changes (curated)#2709
musa-cf merged 12 commits intonextfrom
sync/staging-next-2026-04-30

Conversation

@musa-cf
Copy link
Copy Markdown
Contributor

@musa-cf musa-cf commented Apr 30, 2026

Codegen Sync: staging-next -> next

Synced all resources from staging-next as of 2026-04-30. Additionally integrates the rye -> uv package manager migration.

Integrated Resources

Resource Type Summary
accounts chore file mode normalization
aisearch chore update types, remove unused tests
email_security chore remove deprecated type definitions (trace_get_params, domain_bulk_delete_response)
fraud chore update types and methods
r2 chore update types, file mode normalization
radar chore update to_markdown type ignore comments
workers_for_platforms chore update types

Excluded Resources

None -- all resources integrated successfully.

Recurring Codegen Bugs (no net change)

The following resources had staging-next changes that only re-introduced previously-fixed codegen bugs. After applying the same manual fixes as PR #2707, these files are byte-identical to next -- no commit needed:

Resource Bug Manual fix preserved
ai Required import dropped from asset_create_params.py; type-ignore comments removed from to_markdown.py Re-add Required import; restore # type: ignore[call-arg] / # pyright: ignore[reportCallIssue]
organizations organization_profile_get_params.py deleted but still imported by resource Keep type alias shim in place
pipelines SchemaFieldStruct/SchemaFieldList lost TypedDict (params) and BaseModel (responses) base classes Restore base classes

These bugs originate from commit 988df8632 and recur every sync because the codegen hasn't been fixed upstream.

Shared Changes

  • Switched package manager from rye to uv (pyproject.toml, CI workflows, scripts, lock files)
  • Removed noxfile.py and requirements.lock (replaced by uv dependency groups and uv.lock)
  • Updated devcontainer for uv
  • Updated .stats.yml codegen metadata
  • Updated organizations types barrel export

Validation

  • pyright: PASS (2 pre-existing _models.py pydantic compat errors only)
  • ruff: PASS

musa-cf added 12 commits April 30, 2026 12:21
- Switch package manager from rye to uv across pyproject.toml, CI workflows, and scripts
- Update devcontainer configuration for uv
- Remove noxfile.py and requirements.lock (replaced by uv.lock)
- Update .stats.yml codegen metadata
- Update organizations types __init__.py barrel export
…verrides

Pydantic 2.13 added polymorphic_serialization (bool | None) to
model_dump and model_dump_json. The pydantic v1 compat overrides
in _models.py need to match the new signature to satisfy pyright.
mypy attributes the files= kwarg error to the _get_api_list() call
expression, not the argument line. Move the suppression comment to
where mypy expects it while keeping pyright's ignore on the arg line.
The full matrix (2 Python versions x 2 pydantic versions = 3 runs)
causes CI timeouts. Run only min Python + pydantic v2 to keep CI
within the 30 minute budget. The full matrix can be run manually
via scripts/test when needed.
Set UV_PYTHON to skip the multi-Python loop while still running both
pydantic v2 and v1 tests. This matches the old rye-based CI behavior
(2 test runs instead of 3).
@musa-cf musa-cf merged commit 8179b62 into next Apr 30, 2026
9 checks passed
@musa-cf musa-cf deleted the sync/staging-next-2026-04-30 branch April 30, 2026 20:02
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