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/CD] Some integration tests are currently being skipped due to naming restriction #32207
Labels
Comments
crobert-1
added
needs triage
New item requiring triage
ci-cd
CI, CD, testing, build issues
test coverage
Improve test coverage
bug
Something isn't working
labels
Apr 5, 2024
crobert-1
changed the title
Some integration tests are currently being skipped due to naming restriction
[CI/CD] Some integration tests are currently being skipped due to naming restriction
Apr 5, 2024
This was referenced Apr 9, 2024
This was referenced Apr 18, 2024
Removing |
codeboten
added a commit
that referenced
this issue
May 2, 2024
Including the `-run=Integration` argument in the `make` command means that only integration tests that include `Integration` in their name will be run. This requirement is not obvious to users, so there are currently around 15 integration tests that aren't being run because they don't conform to this requirement. I think the best approach here is to remove the `-run` argument (rather than rename tests) so that this doesn't happen again. Resolves #32207 --------- Co-authored-by: Antoine Toulme <antoine@toulme.name> Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com> Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
rimitchell
pushed a commit
to rimitchell/opentelemetry-collector-contrib
that referenced
this issue
May 8, 2024
…etry#32529) Including the `-run=Integration` argument in the `make` command means that only integration tests that include `Integration` in their name will be run. This requirement is not obvious to users, so there are currently around 15 integration tests that aren't being run because they don't conform to this requirement. I think the best approach here is to remove the `-run` argument (rather than rename tests) so that this doesn't happen again. Resolves open-telemetry#32207 --------- Co-authored-by: Antoine Toulme <antoine@toulme.name> Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com> Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
jlg-io
pushed a commit
to jlg-io/opentelemetry-collector-contrib
that referenced
this issue
May 14, 2024
…etry#32529) Including the `-run=Integration` argument in the `make` command means that only integration tests that include `Integration` in their name will be run. This requirement is not obvious to users, so there are currently around 15 integration tests that aren't being run because they don't conform to this requirement. I think the best approach here is to remove the `-run` argument (rather than rename tests) so that this doesn't happen again. Resolves open-telemetry#32207 --------- Co-authored-by: Antoine Toulme <antoine@toulme.name> Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com> Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Component(s)
No response
Background
While investigating #32206 I found that running a basic integration test command was causing test failures in the
receiver/mongodbatlasreceiver
package:The failing tests (here's one for example) were referencing files whose names changed over a year ago, so I investigated a bit and found that these tests weren't running.
Recent successful CI run output:
However, the MongoDB Atlas receiver has 4 integration tests, one found here, and three found here.
Problem
I found that the reason not all integration tests are running is because of the
-run=Integration
option in the following makefile variable:opentelemetry-collector-contrib/Makefile.Common
Line 32 in 191c2c9
This was introduced here.
From Go's documentation this means that only tests containing
Integration
in their name are being run.Impact
I used a script to scan through all of the integration test files and their tests names, only returning tests without
Integration
in their name. Here are the results:Proposed solution
I think the main two options are:
-run=Integration
option so that all tests in a file with theintegration
build tag are run.Integration
in their name.I think 1 is the best option here, as it would be too easy to forget and miss that this is a requirement of integration tests, shown by how long this has been missed.
Side note: Removing the
-run
argument may have some side effects on running tests that are currently passing. I'm seeing there are four integration tests in the Clickhouse Exporter that are all running successfully right now, but without the argument they hit a panic. There might be some kind of parallelization impact here that may need investigated.The text was updated successfully, but these errors were encountered: