Skip to content
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

Re-enable obsreport-based tests #137

Closed
jmacd opened this issue Jan 16, 2024 · 1 comment · Fixed by #136
Closed

Re-enable obsreport-based tests #137

jmacd opened this issue Jan 16, 2024 · 1 comment · Fixed by #136

Comments

@jmacd
Copy link
Contributor

jmacd commented Jan 16, 2024

It is unclear why the call to obsreporttest.CheckReceiverTraces started failing. It is also unclear why the CI/CD tests did not fail when #131 was merged.

Whatever the cause and resolution of those questions may be, we have disabled a call to obsreporttest.CheckReceiverTraces appearing in collector/receiver/otelarrowreceiver/otelarrow_test.go until it can be diagnosed.

@jmacd
Copy link
Contributor Author

jmacd commented Jan 16, 2024

Note that in #131 the contents of .github/workflows/ci.yml indicate that CI/CD was enabled. Why did that pre-commit step succeed?

jmacd added a commit that referenced this issue Jan 17, 2024
Fixes #33. 
Fixes #37.

Note: each of the OTel-Arrow stream definitions has the same, identical
signature. Tests without-loss-of-generality use the Traces service
method and client mocks in mock-based tests, as these in fact work for
non-trace data because the signatures are identical.

Removes the stream entirely and updates the receiver code as
#135 did for the
exporter.

Note this also re-generates all the mock-based tests using
go.uber.org/mock which is the new location for github.com/golang/mock.
Two missing `Makefile` rules are saved, for the next time this needs to
be done.

Note: comments out one line of test in a test that is identical to the
core OTLP receiver. Having spent nearly an hour trying to understand
this, I can only say it is related to the OTel-Go metrics SDK and the
Prometheus registry; the obsreport functionality is working and the test
broke following #131 (and CI/CD did not work for unknown reasons). It
may be failing due to static relationships in the Arrow tests that are
not present in the core OTLP tests. This is recorded in #137.
@jmacd jmacd closed this as completed Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant