8000 bugfix: use correct field name for app metrics protocol by cosmicBboy · Pull Request #712 · flyteorg/flyte-sdk · GitHub
[go: up one dir, main page]

Skip to content

bugfix: use correct field name for app metrics protocol#712

Merged
kumare3 merged 1 commit intomainfrom
nielsb/bugfix-app-metric-serde
Feb 25, 2026
Merged

bugfix: use correct field name for app metrics protocol#712
kumare3 merged 1 commit intomainfrom
nielsb/bugfix-app-metric-serde

Conversation

@cosmicBboy
Copy link
Contributor
@cosmicBboy cosmicBboy commented Feb 25, 2026

This pull request fixes a bug in the serialization of scaling metrics to protobuf by ensuring that the correct field (target_value) is used instead of the incorrect field (val). It also updates the related unit tests to verify the correct serialization behavior.

Bug fix: Scaling metric serialization

  • Updated _get_scaling_metric in app_serde.py to serialize Scaling.Concurrency and Scaling.RequestRate metrics using the target_value field, as expected by the protobuf definitions, instead of the incorrect val field.

Testing improvements

  • Modified tests in test_app_serde.py to verify that the target_value field is correctly set in the resulting protobuf objects for both Concurrency and RequestRate metrics, replacing previous tests that documented the bug.

Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
@kumare3 kumare3 merged commit cbc3511 into main Feb 25, 2026
17 checks passed
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.

2 participants

0