mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
831ee51c86
## What changed - TypeScript schema fixture generation now goes through in-memory tree helpers rather than a heavier on-disk generation path. - The comparison logic normalizes generated banner and path differences that are not semantically relevant to the exported schema. - TypeScript and JSON fixture coverage are split into separate tests, and the expensive schema-export tests are serialized in `nextest`. ## Why this fixes the flake - The original fixture coverage mixed several heavy codegen paths into one monolithic test and then compared generated output that included incidental banner/path differences. - On Windows CI, that combination created both runtime pressure and output variance unrelated to the schema shapes we actually care about. - Splitting the coverage isolates failures by format, in-memory generation reduces filesystem churn, normalization strips generator noise, and serializing the heavy tests removes parallel resource contention. ## Scope - Production helper change plus test changes.
26 lines
831 B
Rust
26 lines
831 B
Rust
mod experimental_api;
|
|
mod export;
|
|
mod jsonrpc_lite;
|
|
mod protocol;
|
|
mod schema_fixtures;
|
|
|
|
pub use experimental_api::*;
|
|
pub use export::GenerateTsOptions;
|
|
pub use export::generate_json;
|
|
pub use export::generate_json_with_experimental;
|
|
pub use export::generate_ts;
|
|
pub use export::generate_ts_with_options;
|
|
pub use export::generate_types;
|
|
pub use jsonrpc_lite::*;
|
|
pub use protocol::common::*;
|
|
pub use protocol::thread_history::*;
|
|
pub use protocol::v1::*;
|
|
pub use protocol::v2::*;
|
|
pub use schema_fixtures::SchemaFixtureOptions;
|
|
#[doc(hidden)]
|
|
pub use schema_fixtures::generate_typescript_schema_fixture_subtree_for_tests;
|
|
pub use schema_fixtures::read_schema_fixture_subtree;
|
|
pub use schema_fixtures::read_schema_fixture_tree;
|
|
pub use schema_fixtures::write_schema_fixtures;
|
|
pub use schema_fixtures::write_schema_fixtures_with_options;
|