Fix Avro required defaults#3254
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (24)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThis PR removes automatic propagation of Avro default values from schemas into generated Pydantic models. The change disables ChangesAvro Default Values Removal
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
📚 Docs Preview: https://pr-3254.datamodel-code-generator.pages.dev |
Merging this PR will improve performance by 18.82%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ | WallTime | test_perf_all_options_enabled |
6.4 s | 5.2 s | +22.17% |
| ⚡ | WallTime | test_perf_deep_nested |
5.9 s | 4.9 s | +21.49% |
| ⚡ | WallTime | test_perf_kubernetes_style_pydantic_v2 |
2.9 s | 2.4 s | +20.37% |
| ⚡ | WallTime | test_perf_aws_style_openapi_pydantic_v2 |
2.1 s | 1.8 s | +19.49% |
| ⚡ | WallTime | test_perf_openapi_large |
3.2 s | 2.7 s | +19.01% |
| ⚡ | WallTime | test_perf_graphql_style_pydantic_v2 |
885.9 ms | 746.3 ms | +18.7% |
| ⚡ | WallTime | test_perf_complex_refs |
2.2 s | 1.9 s | +18.45% |
| ⚡ | WallTime | test_perf_large_models_pydantic_v2 |
4 s | 3.4 s | +17.41% |
| ⚡ | WallTime | test_perf_duplicate_names |
1,115.7 ms | 955.1 ms | +16.81% |
| ⚡ | WallTime | test_perf_multiple_files_input |
3.8 s | 3.3 s | +16.81% |
| ⚡ | WallTime | test_perf_stripe_style_pydantic_v2 |
2.3 s | 1.9 s | +16.45% |
Tip
Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.
Comparing fix-avro-required-defaults (d74b53b) with main (4131e7a)
Footnotes
-
98 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3254 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 112 112
Lines 25209 25194 -15
Branches 3185 3182 -3
=========================================
- Hits 25209 25194 -15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
No description provided.