-
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
[CI] Contrib tests should also test updated mdatagen #11167
Comments
For fully testing the implications of updating |
Hi @mx-psi, I would like to work on this issue. Can you please assign this to me? |
…1223) #### Description This PR addresses the issue of contrib tests not testing the updated mdatagen version. It modifies the `check-contrib` and `restore-contrib` targets in the Makefile to ensure that the contrib tests use the local version of the `mdatagen` package. #### Link to tracking issue Fixes open-telemetry#11167 #### Testing All existing tests pass with `make test` Signed-off-by: Prateek Kumar <[email protected]>
#11519 added an additional check on mdatagen:
|
I'll take a look at this. |
#### Description There have been issues where changes in `mdatagen` are not properly tested in CI and end up breaking collector-contrib (cf. #11167). This is because `make check-contrib` does not rebuild or rerun `mdatagen` before running contrib tests. This PR fixes that. I added a flag to disable this when running manually, as it adds significant time (~3 min!) to the run and is only really useful when `mdatagen` has been modified. I had to change the `make gotidy` to `make for-all CMD="go mod tidy"` because we don't have a way to run `generate` on a specific module group (and doing so may cause false-positives/negatives if a module group depends on the generated files of another). #### Link to tracking issue Fixes #11167
…y#11670) #### Description There have been issues where changes in `mdatagen` are not properly tested in CI and end up breaking collector-contrib (cf. open-telemetry#11167). This is because `make check-contrib` does not rebuild or rerun `mdatagen` before running contrib tests. This PR fixes that. I added a flag to disable this when running manually, as it adds significant time (~3 min!) to the run and is only really useful when `mdatagen` has been modified. I had to change the `make gotidy` to `make for-all CMD="go mod tidy"` because we don't have a way to run `generate` on a specific module group (and doing so may cause false-positives/negatives if a module group depends on the generated files of another). #### Link to tracking issue Fixes open-telemetry#11167
…1223) #### Description This PR addresses the issue of contrib tests not testing the updated mdatagen version. It modifies the `check-contrib` and `restore-contrib` targets in the Makefile to ensure that the contrib tests use the local version of the `mdatagen` package. #### Link to tracking issue Fixes open-telemetry#11167 #### Testing All existing tests pass with `make test` Signed-off-by: Prateek Kumar <[email protected]>
…y#11670) #### Description There have been issues where changes in `mdatagen` are not properly tested in CI and end up breaking collector-contrib (cf. open-telemetry#11167). This is because `make check-contrib` does not rebuild or rerun `mdatagen` before running contrib tests. This PR fixes that. I added a flag to disable this when running manually, as it adds significant time (~3 min!) to the run and is only really useful when `mdatagen` has been modified. I had to change the `make gotidy` to `make for-all CMD="go mod tidy"` because we don't have a way to run `generate` on a specific module group (and doing so may cause false-positives/negatives if a module group depends on the generated files of another). #### Link to tracking issue Fixes open-telemetry#11167
The errors I am seeing on CI in #12305 make me think this is broken again :( |
@mx-psi That's because my fix involving |
When we run
make update-otel
we update themdatagen
version as well. To avoid issues in contrib, we have the contrib tests but they are not testing this.I believe in order to do this it would be as simple as adding a
-replace
option on check-contrib here https://github.com/open-telemetry/opentelemetry-collector/blob/5fc39ba6334f396c3b5497bf6d29db12823cb50c/Makefile#L260C1-L260C14 to also replace the version of mdatagenThe text was updated successfully, but these errors were encountered: