-
Notifications
You must be signed in to change notification settings - Fork 2.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
[receiver/prometheusremotewrite] Flaky test #36654
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
/label -needs-triage |
maybe we need to change tests to use a random port? |
Yeah, that's probably enough :) |
Very wild guess without looking at the code, but, I saw this some symptom many times on Windows tests. One possibility is that the component has a goroutine that holds the port/server and while the goroutine is terminated when the component is shut down it may do so asynchronously so the next test may find the port is in use. Once more I'm shooting from the hip here ... |
We're hardcoding the port during tests: opentelemetry-collector-contrib/receiver/prometheusremotewritereceiver/receiver_test.go Line 116 in 0abff4c
We probably want to use |
On my list. Don't worry. ✌🏽 @ArthurSens |
@perebaj @ArthurSens another thing to consider: sometimes the type of failure is because a prior test is still holding the port when another test is trying to open it again. Perhaps this was already helped by #37430 - I'm not sure at this point. |
Thanks for the tip, I will consider it |
Hi @perebaj, I hope you're doing well! I wanted to ask if you’ve already started working on fixing up this issue? I'm an LFX enthusiast, and since |
Hey ✌🏽. I'm already started to work on it. Maybe this issue would be nice for you #33661 I'm working on `addTypeSum. But there are a lot of open TODOs to address. |
I don't think so, I'm finishing it, just missing a test case. I think that this one would be a good idea. The approach that I'm following is using the previous implementation as reference, but using prw_v2 functions. WDYT? |
Component(s)
receiver/prometheusremotewrite
Describe the issue you're reporting
I've just noticed we have some flaky tests in main: https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/12146357038/job/33870088465
The text was updated successfully, but these errors were encountered: