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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

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>
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.

None yet

3 participants