Skip to content

test(dev,bindings): deduplicate binding generator assertions - #9609

Merged
Xuanwo merged 2 commits into
mainfrom
xuanwo/audit-generator-test-coverage
Dec 3, 2026
Merged

Xuanwo merged 2 commits into
mainfrom
xuanwo/audit-generator-test-coverage

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Dec 3, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

Closes #9581.

Rationale for this change

The binding tests already exercise several option conversions and public C++ declarations that the generator tests also check as Rust or C++ source text. The documentation tests also duplicate the generators' wording rules, which makes a prose change require edits to two copies of the same rules.

What changes are included in this PR?

  • Check C++ option member types, ReadRange discriminants, and the type returned by ReadRange::Full() in the C++ suite. Keep a generator check for native and fixed integer widths, which can be aliases on a 64-bit test host.
  • Check the exact HTTP byte ranges sent by sync and async Python reads with and without prefetch. Keep the existing Python open tests and Node.js operator tests for the conversions they exercise.
  • Check generated docs where the bindings adapt core text. C and Go warn that an S3 multipart copy can succeed with a truncated destination when the length hint is too short. Node.js checksum docs omit the Rust writer's copy_from behavior. The generator tests also cover escaping, public names, ownership, schema, and frozen ABI ordering.

Are there any user-facing changes?

This PR changes tests only. Regeneration reproduces the checked-in binding outputs.

Breaking changes

AI Usage Statement

  • Pi in T3 Code ran magpie/codex/gpt-6.2-astra at high effort to map generator assertions to independent binding tests and identify ABI and schema checks to preserve.
  • Pi in T3 Code ran magpie/codex/gpt-6.2-sol at max effort to implement and validate the test changes and draft this description. The binding tests used local memory, filesystem, and HTTP fixtures. Generator checks cover valid Node.js copy tuning values that the filesystem fixture cannot observe.
  • Pi in T3 Code ran magpie/codex/gpt-6.2-sol at high effort for both independent reviews. The first identified gaps in chunk sizing, generated docs, and the C++ range factory. The follow-up reviewed the signed candidate and reran the focused Python and C++ tests.
  • Antigravity in T3 Code ran gemini-4-neon at high effort to copy-edit the PR title and description.

@Xuanwo
Xuanwo merged commit a38fa6b into main Dec 3, 2026
73 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/audit-generator-test-coverage branch December 3, 2026 19:59
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.

chore(dev/generate): ablate redundant source-fragment and docstring-mirroring tests while preserving ABI invariants

2 participants