-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add code and scheme generation #18
Milestone
Comments
pleshakov
added a commit
that referenced
this issue
Feb 23, 2024
Problem: - Ensure the Attributes method of Exprotable interface are generated automatically for the telemetry data types. - Ensure the avro scheme (.avdl) is generated automatically for the telemetry data types. Solution: - Add generator tool in cmd/generator that generates code (Attributes method) and the scheme. - Generator can be used in //go:generate annotations in go source files. - Generator has "generator" build tag so that it is not included into the telemetry library by default. - Generator uses golang.org/x/tools/go/packages to parse source files. Testing: - Unit tests of parsing. - Unit tests of code and scheme generation - ensuring non-zero output. - Unit tests of generated code in cmd/generator/tests package - Manual validation of the generated scheme (cmd/generator/tests/data.avdl) using Apache Avro IDL Scheme Support IntelliJ plugin. CLOSES - #18
pleshakov
added a commit
that referenced
this issue
Feb 23, 2024
Problem: - Ensure the Attributes method of Exprotable interface are generated automatically for the telemetry data types. - Ensure the avro scheme (.avdl) is generated automatically for the telemetry data types. Solution: - Add generator tool in cmd/generator that generates code (Attributes method) and the scheme. - Generator can be used in //go:generate annotations in go source files. - Generator has "generator" build tag so that it is not included into the telemetry library by default. - Generator uses golang.org/x/tools/go/packages to parse source files. Testing: - Unit tests of parsing. - Unit tests of code and scheme generation - ensuring non-zero output. - Unit tests of generated code in cmd/generator/tests package - Manual validation of the generated scheme (cmd/generator/tests/data.avdl) using Apache Avro IDL Scheme Support IntelliJ plugin. CLOSES - #18
This was referenced Feb 28, 2024
Closed
pleshakov
added a commit
that referenced
this issue
Feb 28, 2024
Problem: - Ensure the Attributes method of Exprotable interface are generated automatically for the telemetry data types. - Ensure the avro scheme (.avdl) is generated automatically for the telemetry data types. Solution: - Add generator tool in cmd/generator that generates code (Attributes method) and the scheme. - Generator can be used in //go:generate annotations in go source files. - Generator has "generator" build tag so that it is not included into the telemetry library by default. - Generator uses golang.org/x/tools/go/packages to parse source files. Testing: - Unit tests of parsing. - Unit tests of code and scheme generation - ensuring non-zero output. - Unit tests of generated code in cmd/generator/tests package - Manual validation of the generated scheme (cmd/generator/tests/data.avdl) using Apache Avro IDL Scheme Support IntelliJ plugin. CLOSES - #18 Co-authored-by: Saylor Berman <[email protected]> Co-authored-by: Ciara Stacke <[email protected]>
pleshakov
added a commit
that referenced
this issue
Feb 29, 2024
Problem: - Ensure the Attributes method of Exprotable interface are generated automatically for the telemetry data types. - Ensure the avro scheme (.avdl) is generated automatically for the telemetry data types. Solution: - Add generator tool in cmd/generator that generates code (Attributes method) and the scheme. - Generator can be used in //go:generate annotations in go source files. - Generator has "generator" build tag so that it is not included into the telemetry library by default. - Generator uses golang.org/x/tools/go/packages to parse source files. Testing: - Unit tests of parsing. - Unit tests of code and scheme generation - ensuring non-zero output. - Unit tests of generated code in cmd/generator/tests package - Manual validation of the generated scheme (cmd/generator/tests/data.avdl) using Apache Avro IDL Scheme Support IntelliJ plugin. CLOSES - #18 Co-authored-by: Saylor Berman <[email protected]> Co-authored-by: Ciara Stacke <[email protected]>
Implemented in #20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add generation of:
for a struct defined in a go source file.
The text was updated successfully, but these errors were encountered: