Skip to content

feat: Explicitly export IO schema field order#595

Merged
dionhaefner merged 7 commits into
mainfrom
linus/export-io-field-order
May 27, 2026
Merged

feat: Explicitly export IO schema field order#595
dionhaefner merged 7 commits into
mainfrom
linus/export-io-field-order

Conversation

@linusseelinger

Copy link
Copy Markdown
Contributor

Description of changes

Export IO schemas' field declaration order in JSON. This is needed for downstream clients to reliably reproduce the order of inputs/outputs as declared in the schema (e.g. Postgres will scramble JSON field order).

Testing done

Local, CI

@codecov

codecov Bot commented May 18, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.16%. Comparing base (39b27ce) to head (89ae685).

Files with missing lines Patch % Lines
tesseract_core/runtime/schema_generation.py 92.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #595      +/-   ##
==========================================
+ Coverage   77.12%   77.16%   +0.04%     
==========================================
  Files          32       32              
  Lines        4502     4519      +17     
  Branches      741      743       +2     
==========================================
+ Hits         3472     3487      +15     
  Misses        727      727              
- Partials      303      305       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@PasteurBot

PasteurBot commented May 18, 2026

Copy link
Copy Markdown
Contributor

Benchmark Results

Benchmarks use a no-op Tesseract to measure pure framework overhead.

🚀 1 faster, ⚠️ 1 slower, ✅ 34 unchanged

Notable changes

Benchmark Baseline Current Change Status
cli/apply_100,000 1734.849ms 1969.412ms +13.5% ⚠️ slower
decoding/base64_100,000 0.826ms 0.680ms -17.7% 🚀 faster
Full results
Benchmark Baseline Current Change Status
api/apply_1,000 0.502ms 0.498ms -0.7%
api/apply_100,000 0.507ms 0.502ms -1.0%
api/apply_10,000,000 0.507ms 0.498ms -1.6%
cli/apply_1,000 1792.650ms 1925.915ms +7.4%
cli/apply_100,000 1734.849ms 1969.412ms +13.5% ⚠️ slower
cli/apply_10,000,000 2011.851ms 2000.930ms -0.5%
decoding/base64_1,000 0.029ms 0.029ms -0.3%
decoding/base64_100,000 0.826ms 0.680ms -17.7% 🚀 faster
decoding/base64_10,000,000 73.447ms 74.132ms +0.9%
decoding/binref_1,000 0.186ms 0.183ms -1.3%
decoding/binref_100,000 0.245ms 0.247ms +0.6%
decoding/binref_10,000,000 9.522ms 9.958ms +4.6%
decoding/json_1,000 0.098ms 0.099ms +0.7%
decoding/json_100,000 9.459ms 9.540ms +0.9%
decoding/json_10,000,000 1143.058ms 1134.744ms -0.7%
encoding/base64_1,000 0.027ms 0.027ms +0.0%
encoding/base64_100,000 0.143ms 0.143ms +0.1%
encoding/base64_10,000,000 24.257ms 24.314ms +0.2%
encoding/binref_1,000 0.278ms 0.273ms -1.9%
encoding/binref_100,000 0.449ms 0.452ms +0.7%
encoding/binref_10,000,000 18.385ms 18.122ms -1.4%
encoding/json_1,000 0.145ms 0.142ms -2.1%
encoding/json_100,000 15.035ms 15.935ms +6.0%
encoding/json_10,000,000 1551.427ms 1543.787ms -0.5%
http/apply_1,000 3.422ms 3.135ms -8.4%
http/apply_100,000 9.927ms 9.103ms -8.3%
http/apply_10,000,000 692.178ms 688.753ms -0.5%
roundtrip/base64_1,000 0.058ms 0.058ms -0.2%
roundtrip/base64_100,000 0.783ms 0.768ms -1.9%
roundtrip/base64_10,000,000 98.415ms 98.006ms -0.4%
roundtrip/binref_1,000 0.481ms 0.473ms -1.7%
roundtrip/binref_100,000 0.694ms 0.711ms +2.5%
roundtrip/binref_10,000,000 28.543ms 27.805ms -2.6%
roundtrip/json_1,000 0.250ms 0.246ms -1.3%
roundtrip/json_100,000 22.608ms 22.327ms -1.2%
roundtrip/json_10,000,000 2679.587ms 2678.705ms -0.0%
  • Runner: Linux 6.17.0-1013-azure x86_64

Comment thread tesseract_core/runtime/schema_generation.py Outdated
Comment thread tesseract_core/runtime/schema_generation.py Outdated
Comment thread tesseract_core/runtime/schema_generation.py Outdated
@dionhaefner
dionhaefner enabled auto-merge (squash) May 27, 2026 18:17
@dionhaefner
dionhaefner merged commit cbc8f76 into main May 27, 2026
52 checks passed
@dionhaefner
dionhaefner deleted the linus/export-io-field-order branch May 27, 2026 18:18
@pasteurlabs pasteurlabs locked and limited conversation to collaborators May 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants