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

[chore] [exporter/signalfx] Rework property/tags update tests #36086

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Oct 30, 2024

Rework the tests to explicitly control requests handling by the mock server. Use channels to control start and finish of request handling instead of relying on timer and timeouts.

All the tests in the package are now executed in 1.5 seconds compared to 19 seconds as before the change.

This change also unblocks #36044 which can be covered after this

@dmitryax dmitryax requested review from crobert-1 and a team as code owners October 30, 2024 02:23
@dmitryax dmitryax force-pushed the signalfx-exp-rework-tests branch 2 times, most recently from 75021e7 to fe28fe7 Compare October 30, 2024 05:18
@dmitryax dmitryax force-pushed the signalfx-exp-rework-tests branch from fe28fe7 to 6255390 Compare October 30, 2024 16:30
Rework the tests to explicitly control requests handling by the mock server. Use channels to control request handling instead of relying on timer and timeouts.

All the tests in the package are now executed in 1.5 seconds compared to 19 seconds as before the change.
@dmitryax dmitryax force-pushed the signalfx-exp-rework-tests branch from 6255390 to 45c1e11 Compare October 30, 2024 16:56
@dmitryax dmitryax merged commit 57f2d2d into open-telemetry:main Oct 30, 2024
158 checks passed
@github-actions github-actions bot added this to the next release milestone Oct 30, 2024
@dmitryax dmitryax deleted the signalfx-exp-rework-tests branch October 30, 2024 17:38
ArthurSens pushed a commit to ArthurSens/opentelemetry-collector-contrib that referenced this pull request Nov 4, 2024
…elemetry#36086)

Rework the tests to explicitly control requests handling by the mock
server. Use channels to control start and finish of request handling
instead of relying on timer and timeouts.

All the tests in the package are now executed in 1.5 seconds compared to
19 seconds as before the change.

This change also unblocks
open-telemetry#36044
which can be covered after this
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
…elemetry#36086)

Rework the tests to explicitly control requests handling by the mock
server. Use channels to control start and finish of request handling
instead of relying on timer and timeouts.

All the tests in the package are now executed in 1.5 seconds compared to
19 seconds as before the change.

This change also unblocks
open-telemetry#36044
which can be covered after this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants