-
Notifications
You must be signed in to change notification settings - Fork 0
Rebase upstream changes #7
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
Conversation
8ffb004 to
ff45002
Compare
ff45002 to
2c66f4b
Compare
|
I removed the commit "Override labels with constant labels." because it turns out upstream has already fixed this issue on duplicate labels here - https://github.com/jupp0r/prometheus-cpp/blob/master/core/src/family.cc#L50 |
|
I had an annoying issue with the other PRs where clang-format wasn't correctly putting the |
6837162 to
dd539fd
Compare
Have we tried to upstream this feature? This seems pretty self-contained and easy to push upstream.
Is this something that we can try to upstream too? (Does prometheus-cpp already use IWYU?) I'm wondering if applying IWYU is worth the overhead of making our fork drift more from upstream. |
These also seem like things that we could upstream easily. |
silverjam
left a comment
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 we should try to upstream most of these changes and avoid the ones that cause drift from upstream without a large amount of material benefit. So we could potentially drop IWYU and the clang format changes.
Nevermind, looks like prometheus-cpp already uses IWYU so we can submit a PR for that too. We can probably make a case for the clang-format change too. |
|
@silverjam Good point, I'll drop those minor commits and make PRs for upstream (I'll make a ticket to do this once have bit of time). The IWYU was originally so that I could make sure the expired metrics stuff had the correct headers, so I'll keep only the stuff directly related to that. |
b389800 to
3fc5e1a
Compare
|
I kept only the expired changes, and rolled one of the |
|
I opened up some upstream PRs for the smaller changes that I removed from here. |
|
Master has been updated so closing the PR. |
Our fork of prometheus-cpp is fairly out of date and I want to use some of the fixes and improvements from upstream.
I also fixed an unused variable error that shows up under latest upstream CI pipeline in the expired metrics code.
Finally I also fixed up bunch of missing/incorrect headers that show up with include-what-you-use which upstream enforces.
As for what to review, basically only the last three commits that are different from upstream: