From 330927503326fb3a831f59c38ca1fbad88311612 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Fri, 13 Sep 2024 16:16:23 +0000 Subject: [PATCH] chore: Add Clirr exemptions for Protobuf 4.27.4 runtime (#3188) Clirr is flagging a bunch of 7006 Method Return Type changed errors. The Protoc generated changes are source code compatible and should ignore these errors in our generated code. See [this doc](https://docs.google.com/spreadsheets/d/1qEzUWLougtiqh0ocRaG4e8w12pr89o0T_tQvB6YDStE/edit?pli=1&gid=0#gid=0) for more information. After adding all the Clirr checks exemptions in this PR to the downstream handwritten libraries, we are no longer seeing an Clirr failures. --- .../clirr/clirr-ignored-differences.xml.j2 | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/library_generation/owlbot/templates/clirr/clirr-ignored-differences.xml.j2 b/library_generation/owlbot/templates/clirr/clirr-ignored-differences.xml.j2 index 6528981704..3fc907802f 100644 --- a/library_generation/owlbot/templates/clirr/clirr-ignored-differences.xml.j2 +++ b/library_generation/owlbot/templates/clirr/clirr-ignored-differences.xml.j2 @@ -15,5 +15,66 @@ 7012 {{proto_path}}/*OrBuilder boolean has*(*) + + + + 7006 + {{proto_path}}/** + * getDefaultInstanceForType() + ** + + + 7006 + {{proto_path}}/** + * addRepeatedField(*) + ** + + + 7006 + {{proto_path}}/** + * clear() + ** + + + 7006 + {{proto_path}}/** + * clearField(*) + ** + + + 7006 + {{proto_path}}/** + * clearOneof(*) + ** + + + 7006 + {{proto_path}}/** + * clone() + ** + + + 7006 + {{proto_path}}/** + * mergeUnknownFields(*) + ** + + + 7006 + {{proto_path}}/** + * setField(*) + ** + + + 7006 + {{proto_path}}/** + * setRepeatedField(*) + ** + + + 7006 + {{proto_path}}/** + * setUnknownFields(*) + ** {% endfor %}