Skip to content

release: 0.17.2-alpha.2 — inline reflectapi-schema-codegen#135

Merged
hardbyte merged 1 commit into
mainfrom
release/0.17.2-alpha.2
May 6, 2026
Merged

release: 0.17.2-alpha.2 — inline reflectapi-schema-codegen#135
hardbyte merged 1 commit into
mainfrom
release/0.17.2-alpha.2

Conversation

@hardbyte
Copy link
Copy Markdown
Contributor

@hardbyte hardbyte commented May 6, 2026

Sequel to the failed v0.17.2-alpha.1 run: crates.io Trusted Publishing can't create new crates, only update existing ones. reflectapi-schema-codegen was brand new and blocked the workflow.

After review (option B from chat): the codegen IR has exactly one consumer today (reflectapi's Python codegen), isn't re-exported from reflectapi's public API, and #129 is still iterating on its shape. So we drop the standalone crate and move its source into reflectapi::codegen::schema (pub(crate)-only). Same module separation, no public semver contract, no bootstrap problem.

Changes

  • New: reflectapi/src/codegen/schema/{mod,ids,normalize,semantic,symbol}.rs
  • Drop: reflectapi-schema-codegen crate + workspace member + reflectapi's optional dep
  • python.rs now imports crate::codegen::schema as schema_codegen (one-line)
  • Tests inside the moved files updated for the new module hierarchy (super::*super::super::* where they reached the schema-codegen lib root)
  • release.yml drops the schema-codegen publish step and version-check entry
  • README.md Release section rewritten to match the actual workflow (Trusted Publishing, dual SemVer / PEP 440 versions, tag-driven)
  • 39 IR tests + 168 reflectapi tests + all snapshots still green

Versions

0.17.2-alpha.2 (Cargo) / 0.17.2a2 (PEP 440).

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --workspace (39 schema-IR tests + 168 reflectapi tests + snapshots)
  • After merge: git tag v0.17.2-alpha.2 && git push origin v0.17.2-alpha.2 and watch the run

…dule + 0.17.2-alpha.2

The reflectapi-schema-codegen crate had exactly one consumer
(reflectapi/src/codegen/python.rs) and wasn't re-exported through
reflectapi's public API. Publishing it would commit us to a semver
contract on the still-evolving semantic IR (#129), and the first
release hit the crates.io Trusted Publishing limitation that new
crates can't be created via OIDC.

Move ids/normalize/semantic/symbol back into the reflectapi crate as
reflectapi::codegen::schema (pub(crate) only). The architectural
separation that PR #128 established is preserved at the module
boundary; SymbolId / SchemaIds / SemanticSchema can still grow without
touching reflectapi-schema (the wire/interchange crate).

Concretely:

- New: reflectapi/src/codegen/schema/{mod,ids,normalize,semantic,symbol}.rs
- Drop: reflectapi-schema-codegen crate + workspace member
- Drop: reflectapi's optional dep on it + the codegen feature reference
- python.rs: 'use reflectapi_schema_codegen as schema_codegen'
            -> 'use crate::codegen::schema as schema_codegen'
- Module-level #![allow(dead_code)] inside schema/ — most accessor
  methods are exercised only by the module's own tests today and stay
  as the supported IR shape for future backend reuse.
- mod.rs re-exports trimmed to what python.rs actually consumes; the
  rest is reachable via self::ids::*, self::normalize::*, etc.
- release.yml drops the schema-codegen publish step and version-check
  entry; README's release section rewritten to match the workflow
  (Trusted Publishing, dual SemVer/PEP 440 form, tag-driven).

Versions: 0.17.2-alpha.1 -> 0.17.2-alpha.2 (Cargo) / 0.17.2a2 (PEP 440).
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

⚠️ Code review skipped — your organization's overage spend limit has been reached.

Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit at claude.ai/admin-settings/claude-code.

Once credits are available, reopen this pull request to trigger a review.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

📖 Documentation Preview: https://reflectapi-docs-preview-pr-135.partly.workers.dev

Updated automatically from commit ca2e4d7

@hardbyte hardbyte merged commit 07cba1a into main May 6, 2026
5 checks passed
@hardbyte hardbyte deleted the release/0.17.2-alpha.2 branch May 6, 2026 09:28
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