-
Notifications
You must be signed in to change notification settings - Fork 200
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
Remove include of gtest_prod.h #152
Conversation
I'm not sure this is my preferred way to address the issue. My concern is that exposing these internal methods, albeit with a If linking against gtest is a concern, maybe we can instead provide our own |
I think you proposed method is better. However, I'm not sure how this is possible in bazel/blade. You need to add come build time option to enable include of the actual |
Guess I wasn't clear about my proposal. What I meant was to always use This should be relatively easy to do, as |
acee433
to
e63b55a
Compare
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.
Sorry for the late reply, been busy these days..
I've commented inline.
Bazel build is also failing due to missing bazel target for test_prod.h
. (Previously bazel build failed too, but not for the same reason. It was mostly a environment issue. I'm trying to fix it in #153 )
I've merged aforementioned PR. You can now pull changes from master to verify that your changes pass all CIs. Thanks for the contribution 🙏. A few tests aren't stable and fail under high load, which does happen in GitHub runners, they can be safely ignored. |
e63b55a
to
b46ca6d
Compare
b46ca6d
to
243b570
Compare
All comments are addressed. However, I'm not sure why some tests are failing. Can you take a look? |
Some load-sensitivity tests, though I didn't expect them to fail so frequently. I retried them and now all of them passed. Merged, thanks! |
Currently we use flare's fiber in our project, which cannot include any googletest headers in the production environment. IMO, release headers should not include gtest. To test against certain private/protected class members, you can add some test-specific APIs to access these members. Similar methods can be applied to other components like hbase and rpc.