Open
Description
Go code in the cmd/otecontribcol
and cmd/otetestbedcol
modules is auto-generated using the collector builder. cmd/otecontribcol
also has additional lifecycle tests for all the components that do not necessarily belong to that module.
The go modules depend on all the other modules in the contrib repo. This makes the linter take up to 20 minutes just to build AST. The linter job often times out.
Do we really need to keep the generated code? Instead, we can generate the code whenever we need to build the otecontribcol
or otetestbedcol
artifacts. The lifecycle tests can be moved to each component by autogenerating them with the mdatagen
tool.
Action items (assuming the suggestion is accepted):