Skip to content

Fix f64 deserialization in DevTweaks inside flattened PipelineConfig#6017

Merged
abhizer merged 1 commit intomainfrom
fpv-parse-fix
Apr 11, 2026
Merged

Fix f64 deserialization in DevTweaks inside flattened PipelineConfig#6017
abhizer merged 1 commit intomainfrom
fpv-parse-fix

Conversation

@gz
Copy link
Copy Markdown
Contributor

@gz gz commented Apr 11, 2026

DevTweaks Option fields (bloom_false_positive_rate, balancer_balance_tax, etc.) fail to deserialize when nested inside PipelineConfig, which uses #[serde(flatten)] on RuntimeConfig.

This is a known serde_json bug (#1157) triggered by the workspace-wide arbitrary_precision feature: the Content buffer represents numbers as maps, producing "invalid type: map, expected f64".

Apply the existing serde_via_value::deserialize workaround (already used by ResourceConfig.cpu_cores_min/max) to all four Option fields in DevTweaks.

Describe Manual Test Plan

Checklist

  • Unit tests added/updated

Breaking Changes?

This fixes a breaking regression introduced in v0.277.

@gz gz requested a review from blp April 11, 2026 04:57
@gz gz force-pushed the fpv-parse-fix branch from 3d543b4 to 7688895 Compare April 11, 2026 04:58
…eConfig

DevTweaks Option<f64> fields (bloom_false_positive_rate, balancer_balance_tax,
etc.) fail to deserialize when nested inside PipelineConfig, which uses
triggered by the workspace-wide arbitrary_precision feature: the Content
buffer represents numbers as maps, producing "invalid type: map, expected f64".

Apply the existing serde_via_value::deserialize workaround (already used by
ResourceConfig.cpu_cores_min/max) to all four Option<f64> fields in DevTweaks.

Also add the chrono "alloc" feature to fix a pre-existing compile error in
adapter_stats.rs (to_rfc3339_opts returns String, which requires alloc).

Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
@gz gz force-pushed the fpv-parse-fix branch from 1f8bcc8 to 8e5f9c0 Compare April 11, 2026 05:06
Copy link
Copy Markdown

@mythical-fred mythical-fred left a comment

Choose a reason for hiding this comment

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

LGTM

@abhizer abhizer added this pull request to the merge queue Apr 11, 2026
Merged via the queue into main with commit 315c769 Apr 11, 2026
2 checks passed
@abhizer abhizer deleted the fpv-parse-fix branch April 11, 2026 06:47
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.

3 participants