Update all deps (take 2) and make new release#849
Conversation
|
I spent an hour just now trying an alternative approach. Right now we declare our tool dependencies (like on golangci-lint) in an empty ... But then I hit subsequent errors that I don't think you've reached yet. It seems that some of the unittests in this repo are just outright busted. I suspect that's because some otel defaults have changed underneath us (based on reading the tea leaves of the ambiguous error message) but I haven't actually managed to make it work yet, so. |
|
The test failures I am hitting are variations of but they actually started happening with the previous PR (#848). I have not yet managed to figure out what it wants: the strings in that error message are difficult to grep and there are so many layers of FactoryProviderExporters that I haven't yet figured out what line of code is even throwing that error. |
The lightstep tracer had a latent bug: it appears that it was trying to use otelarrow even if the settings had disabled arrow. The code in Prior to your previous #848, that latent bug went undetected. But PR 848 pulled in this upstream change open-telemetry/opentelemetry-collector#12381 which is stricter about catching such configuration mismatches and caused our tests to start failing. I think this is probably a real bug: if |
|
I wonder if it's easier for us to just stop using the launcher in our code :/ |
| lines := readMetricsEndpoint(t.T()) | ||
|
|
||
| return slices.Contains(lines, `request_size_bucket{job="tester",property="value",service_name="tester",le="0"} 1`) | ||
| return slices.Contains(lines, `request_size_bucket{job="tester",otel_scope_name="test-meter",otel_scope_schema_url="",otel_scope_version="",property="value",service_name="tester",le="+Inf"} 1`) |
There was a problem hiding this comment.
so this one changed le="0" to le="+Inf" .. I think the other fields are just additions due to update of prom libraries..
There was a problem hiding this comment.
so this one changed le="0" to le="+Inf" .. I think the other fields are just additions due to update of prom libraries..
Was it failing consistently or flakily? I think "0" is correct, but also I think it doesn't really matter if the goal of the test is just to verify that there's some output. (If there's a count of 1 in the "le=0" bucket then there's necessarily a count of 1 in the "le=Inf" bucket as well, and both indicate that the counter.Add call did something... which I think is the goal of this test.) LGTM in any case.
| lines := readMetricsEndpoint(t.T()) | ||
|
|
||
| return slices.Contains(lines, `requests{job="tester",property="value",service_name="tester"} 12`) | ||
| return slices.Contains(lines, `requests{job="tester",otel_scope_name="test-meter",otel_scope_schema_url="",otel_scope_version="",property="value",service_name="tester"} 12`) |
There was a problem hiding this comment.
I think this is just additions due to upgrade of libraries
| lines := readMetricsEndpoint(t.T()) | ||
|
|
||
| return slices.Contains(lines, `request_size_bucket{job="tester",property="value",service_name="tester",le="0"} 1`) | ||
| return slices.Contains(lines, `request_size_bucket{job="tester",otel_scope_name="test-meter",otel_scope_schema_url="",otel_scope_version="",property="value",service_name="tester",le="+Inf"} 1`) |
There was a problem hiding this comment.
so this one changed le="0" to le="+Inf" .. I think the other fields are just additions due to update of prom libraries..
Was it failing consistently or flakily? I think "0" is correct, but also I think it doesn't really matter if the goal of the test is just to verify that there's some output. (If there's a count of 1 in the "le=0" bucket then there's necessarily a count of 1 in the "le=Inf" bucket as well, and both indicate that the counter.Add call did something... which I think is the goal of this test.) LGTM in any case.
Description: Update all deps (take 2)
This is currently blocked on:
mgechev/revive#1342
And is blocking:
https://github.com/lightstep/lightstep/pull/64194