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

[tests] Use a specific logs entry to detect Collector readiness #1583

Closed
wants to merge 1 commit into from

Conversation

ovalenti
Copy link
Contributor

@ovalenti ovalenti commented Mar 1, 2024

Description

Emitting a log statement after Collector has completed its startup procedure (including connecting to Sensor)
will prevent loosing some signals during tests.

Checklist

  • Investigated and inspected CI test results

@robbycochran
Copy link
Collaborator

Could this be done with a message over GRPC? or identification of the first message that indicates the probe has been loaded successfully?

@ovalenti
Copy link
Contributor Author

ovalenti commented Mar 7, 2024

Could this be done with a message over GRPC? or identification of the first message that indicates the probe has been loaded successfully?

After a more thorough read of the code, it turns out that our readiness service already guarantees that absolutely everything is ready when it turns to green.

As a consequence, the usefulness of this PR is only to work on podman, where the container readiness is not implemented. Since it creates a dependency on a log entry, I think it is not worth it.

@ovalenti ovalenti closed this Mar 7, 2024
@ovalenti ovalenti deleted the ovalenti/collector_ready branch July 10, 2024 13:38
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.

2 participants