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][receiver/kubeletstats] Introduce retry on test that rely on shared Informer sync #33685

Merged
merged 8 commits into from
Jul 1, 2024

Conversation

ChrsMark
Copy link
Member

Description:

This PR introduces a "retry" check on the test that relies on the shared node informer. This retry will ensure that the first valid scrape will be after the informer has been "triggered" to handle the node's addition.

Link to tracking Issue: Related to #33681.

Testing:

Documentation:

}, 10*time.Second, 100*time.Millisecond,
"metrics not collected")

md, err = r.Scrape(context.Background())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this second scrape?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽 not really. Removed.

…nformer sync

Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
@TylerHelmuth TylerHelmuth added the ready to merge Code review completed; ready to merge by maintainers label Jun 28, 2024
@TylerHelmuth TylerHelmuth merged commit a4706ac into open-telemetry:main Jul 1, 2024
154 checks passed
@github-actions github-actions bot added this to the next release milestone Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers receiver/kubeletstats
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants