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][pkg/stanza] Ensure all start/stop calls are in balanced #28294

Merged

Conversation

djaglowski
Copy link
Member

@djaglowski djaglowski commented Oct 23, 2023

Follows #28228

This normalizes calls to Start and Stop across the test suite.

In some cases, poll is called directly in order to trigger behavior independently of timing. However, we should either use poll directly, or use both Start and Stop exactly once. In the future, I expect poll will be exported and tested directly as part of an internal package.

@djaglowski djaglowski changed the title chore][pkg/stanza] Ensure all start/stop calls in are balanced [chore][pkg/stanza] Ensure all start/stop calls in are balanced Oct 23, 2023
@djaglowski djaglowski added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Oct 23, 2023
@djaglowski djaglowski marked this pull request as ready for review October 23, 2023 20:28
@djaglowski djaglowski requested a review from a team as a code owner October 23, 2023 20:28
@djaglowski djaglowski force-pushed the pkg-stanza-fileconsumer-pollstop2 branch from 9802a28 to 09cbf59 Compare October 23, 2023 21:15
@djaglowski djaglowski changed the title [chore][pkg/stanza] Ensure all start/stop calls in are balanced [chore][pkg/stanza] Ensure all start/stop calls are in balanced Oct 24, 2023
@djaglowski djaglowski merged commit cde5da6 into open-telemetry:main Oct 24, 2023
83 checks passed
@djaglowski djaglowski deleted the pkg-stanza-fileconsumer-pollstop2 branch October 24, 2023 02:35
@github-actions github-actions bot added this to the next release milestone Oct 24, 2023
djaglowski added a commit that referenced this pull request Oct 24, 2023
sigilioso pushed a commit to carlossscastro/opentelemetry-collector-contrib that referenced this pull request Oct 27, 2023
…-telemetry#28294)

Follows
open-telemetry#28228

This normalizes calls to `Start` and `Stop` across the test suite. 

In some cases, `poll` is called directly in order to trigger behavior
independently of timing. However, we should _either_ use `poll`
directly, or use both `Start` and `Stop` exactly once. In the future, I
expect `poll` will be exported and tested directly as part of an
internal package.
jmsnll pushed a commit to jmsnll/opentelemetry-collector-contrib that referenced this pull request Nov 12, 2023
…-telemetry#28294)

Follows
open-telemetry#28228

This normalizes calls to `Start` and `Stop` across the test suite. 

In some cases, `poll` is called directly in order to trigger behavior
independently of timing. However, we should _either_ use `poll`
directly, or use both `Start` and `Stop` exactly once. In the future, I
expect `poll` will be exported and tested directly as part of an
internal package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg/stanza Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants