-
Notifications
You must be signed in to change notification settings - Fork 85
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
pra: add test for prometheus federation #2169
Conversation
This is needed to avoid conflict with internal prometheus service, since we are running in the same cluster. Issue: ZENKO-4876
ServiceMonitor were not scrapped. Issue: ZENKO-4876
When an SHA1 is used which is not the tip of the branch, it is not available after a `git clone` (which fetches only commits reachable from current branches). This causes issues if a build is started while the component branch with the commit has been rewritten (rebase...) To overcome this, the safe way is to explicitely fetch the commit: which works for any commit (branch, tag, sha1). Issue: ZENKO-4876
No reason to keep separate, and it helps avoid a github bug/limitation when creating a check: and the Issue: ZENKO-4876
Hello francoisferrand,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Request integration branchesWaiting for integration branch creation to be requested by the user. To request integration branches, please comment on this pull request with the following command:
Alternatively, the |
bca6536
to
a4cb9ae
Compare
baseURL: '/api/v1', | ||
}); | ||
|
||
for (;;) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Timing out, does not give proper logs actually, it would be great to have a timeout in the code and to properly log that prom does not respond or that metrics are still empty after 70k ms
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think we should litter the code with "manual" timeout: if the logs are not correct, it should be improved in the framework instead (so that we benefit from it everywhere)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the point was more: the test already manually set a 70s timeout, yet we are never calling this.world.logger.debug
to log what we got when calling prometheus, so in case of timeout, we have 0 clue to understand the problem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we receive anything, we will bail out... so if we timeout, it means we did not receive anything : and the information to troubleshoot will be deep inside prometheus, not in the api call we make here, unfortunately...
so not sure what could be logged...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be a personal opinion, but I don't think an infinite loop is any better than a "manual" timeout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not an infinite loop : we are expected to exit eventually, as prometheus should return a metric!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so not sure what could be logged...
If we can get some connectivity info then logging will be useful - if we expect nothing, the current approach is good enough...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm beyond Killian's comment
Issue: ZENKO-4876