-
Notifications
You must be signed in to change notification settings - Fork 409
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
Implement code generation for config parsing. #1893
Conversation
09682f9
to
672a22b
Compare
ee97d8f
to
07ace31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've completed a first pass review of the code. I've added some comments, mainly focused on improving the readability of the code. I apologize if there are quite a few – I hope they're helpful!
I also noticed a potential opportunity to refactor codegen/main.go
. It might be beneficial to create separate utility files for:
- Parsing the input params.yaml file
- Generating type template data
This could help streamline the main file and make the logic easier to follow.
Overall, I found some parts of the code a little challenging to understand at first. Please see if you can do something to make it more intuitive :)
c66d24b
to
ff6cbd5
Compare
ff6cbd5
to
aef2ec6
Compare
c5549d2
to
172b5f7
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1893 +/- ##
==========================================
- Coverage 73.76% 73.55% -0.21%
==========================================
Files 93 95 +2
Lines 10219 10252 +33
==========================================
+ Hits 7538 7541 +3
- Misses 2347 2378 +31
+ Partials 334 333 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
172b5f7
to
b5d1a17
Compare
* Create a new package called "cfg" where the generated code will reside. In future, this code will be moved into the config package to complete the migration. * Add an import in main.go to force compile the new package. Otherwise, we'll not know of any compile errors in the codegen and generated code. * Add a limited set of params in params.yaml to verify that the code generation works. We'll add the entire set of params in a subsequent PR.
b5d1a17
to
25cb4d1
Compare
Description
Link to the issue in case of a bug fix.
NA
Testing details