-
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
Integration tests consistently fail on first run #34495
Comments
/label ci-cd |
I am gonna look into this issue. Seems like the |
@odubajDT Adding some useful links for context..
Thoughts on adding a canary to integration tests? (ex replace a random file from the above integration targets with |
Hey @odubajDT I'd like to take a stab at this tomorrow if you don't have a fix/root cause for it yet, wanted to give you the opportunity to share anything before I jump the gun |
From what I can see is that the tests actually passes, therefore the status is reported correctly
As we can see, the second run of the The test is re-run due to the presence of This PR showcases it #34729 Also one additional (not related) issue I spotted, seems like that in certain cases See that |
No worries, I jinxed myself by saying I'd have time to do something 😅 Just sharing info from my side: You're 100% correct. It's interesting how consistently this fails (at least for the jmx cases), and super annoying when using goland for integ tests -- they fail every time with the "default" run configuration, so breakpoints get annoying. For jmx in particular, I was getting some complaints about a ryuk container not terminating in goland. I'll rename this issue to reflect the current understanding of things and see about removing the p1 label |
Thanks! The PR should be ready for review if you have time. |
**Description:** <Describe what has changed.> - removing re-running parameter from gotestsum - fixing tests/code with go routine leaks - resolving race conditions (mostly caused by parallel tests) - placing goleak ignorers for go routine leaks from external libraries **Link to tracking Issue:** #34495 --------- Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com> Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
**Description:** <Describe what has changed.> - removing re-running parameter from gotestsum - fixing tests/code with go routine leaks - resolving race conditions (mostly caused by parallel tests) - placing goleak ignorers for go routine leaks from external libraries **Link to tracking Issue:** open-telemetry#34495 --------- Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com> Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
**Description:** <Describe what has changed.> - removing re-running parameter from gotestsum - fixing tests/code with go routine leaks - resolving race conditions (mostly caused by parallel tests) - placing goleak ignorers for go routine leaks from external libraries **Link to tracking Issue:** open-telemetry#34495 --------- Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com> Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Component(s)
ci/cd
What happened?
Description
Integration tests don't fail the parent workflow if an integration test failsSteps to Reproduce
Example job
At least two tests in this spot check fail but the workflow succeeds. Search
jmx
in the build logs, output is below though.Expected Result
I expect the failing test to fail the workflow
Actual Result
Collector version
latest (main)
Environment information
No response
OpenTelemetry Collector configuration
No response
Log output
However, on rerun, it passes more or less immediately
another receiver:
The text was updated successfully, but these errors were encountered: