-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Windows compilation: Ensure thrift_proxy tests/mocks do not fail to compile with missing Validate method on google::protobuf::Struct #10780
Windows compilation: Ensure thrift_proxy tests/mocks do not fail to compile with missing Validate method on google::protobuf::Struct #10780
Conversation
- ThriftFilters::FactoryBase.createFilterFactoryFromProto() calls protobuf utility validation (Validate() method) on the template parameter class ConfigProto - The mocks set the template parameter to be google::protobuf::Struct and MSVC cannot find a Validate() method for that type - Instead, we match the structure of the dubbo_proxy test mocks that mock a helper template class similar to FactoryBase that does call any protobuf validation code, bypassing the need for Validate() on google::protobuf::Struct Co-authored-by: William A Rowe Jr <wrowe@pivotal.io> Signed-off-by: William A Rowe Jr <wrowe@pivotal.io> Co-authored-by: Sunjay Bhatia <sbhatia@pivotal.io> Signed-off-by: Sunjay Bhatia <sbhatia@pivotal.io>
It is not apparent that |
#10542 has the same changes, pulled this out of that PR so we can discuss further |
/retest |
🔨 rebuilding |
for reference, here is the full compilation failure output before this change:
|
MockFilterConfigFactory implements NamedThriftFilterConfigFactory Signed-off-by: Sunjay Bhatia <sbhatia@pivotal.io>
Signed-off-by: Sunjay Bhatia <sbhatia@pivotal.io>
Thanks! This kooks good. Not sure what the coverage failure is, though seems unrelated. to your change. Depending on how out-of-date your branch is, merging master might help, but it's not a failure I recognize. |
/retest |
🔨 rebuilding |
@zuercher hmmm, I kicked off the build again, I don’t remember seeing any changes yesterday that fixed flakes (I think this branch is only behind 14 commits, I believe all from yesterday) |
Description:
utility validation (Validate() method) on the template parameter class
ConfigProto
and MSVC cannot find a Validate() method for that type
mock a helper template class similar to FactoryBase that does call any
protobuf validation code, bypassing the need for Validate() on
google::protobuf::Struct
Risk Level: Low
Testing: Modifies existing test mocks
Docs Changes: N/A
Release Notes: N/A