-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mdatagen] fix missing/extraneous imports for telemetry codegen #11762
base: main
Are you sure you want to change the base?
[mdatagen] fix missing/extraneous imports for telemetry codegen #11762
Conversation
the telemetry code generation does not include some required imports and also includes some imports that are not used, which leads to build failures. this fixes those issues; re-running mdatagen on the samplereceiver results in a no-op, indicating that somehow there was drift b/w the output codegen and the templates.
mdatagen is used by many packages. When making changes to the templates, you should regenerate everything with the |
@dmathieu thanks! I did run that, and there were no changes registered. I think that it doesn't currently run codegen on the examples, which might explain how this drift happened.
|
Ah, I think I may know how this was missed - |
I think Your PR still has failing tests though. |
Ah, thanks - I believe I have fixed up the issue in the template. Also added a new test. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #11762 +/- ##
==========================================
+ Coverage 91.45% 91.48% +0.02%
==========================================
Files 447 447
Lines 23721 23721
==========================================
+ Hits 21694 21700 +6
+ Misses 1653 1649 -4
+ Partials 374 372 -2 ☔ View full report in Codecov by Sentry. |
Maybe worth adding alias As it it done with the other generated files ? |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Description
the telemetry code generation does not include some required imports and also includes some imports that are not used, which leads to build failures. this fixes those issues; re-running mdatagen on the samplereceiver results in a no-op, indicating that somehow there was drift b/w the output codegen and the templates.
Link to tracking issue
Fixes #11761
Testing