From 6a1f9272b27ea007a7fc43d25104809ededcef21 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 27 Aug 2024 10:53:43 +0300 Subject: [PATCH] protogen: Distinguish between empty and nil messages Refs #59 Signed-off-by: Evgenii Stratonikov --- accounting/grpc/service_frostfs.pb.go | Bin 18600 -> 18342 bytes acl/grpc/types_frostfs.pb.go | Bin 45693 -> 45270 bytes apemanager/grpc/service_frostfs.pb.go | Bin 56057 -> 55317 bytes container/grpc/service_frostfs.pb.go | Bin 96320 -> 94832 bytes container/grpc/types_frostfs.pb.go | Bin 11604 -> 11466 bytes lock/grpc/types_frostfs.pb.go | Bin 3844 -> 3810 bytes netmap/grpc/service_frostfs.pb.go | Bin 54189 -> 53473 bytes netmap/grpc/types_frostfs.pb.go | Bin 53375 -> 53093 bytes object/grpc/service_frostfs.pb.go | Bin 217506 -> 214558 bytes object/grpc/types_frostfs.pb.go | Bin 60923 -> 59986 bytes refs/grpc/types_frostfs.pb.go | Bin 28706 -> 28639 bytes rpc/message/test/message.go | 1 - session/grpc/service_frostfs.pb.go | Bin 19354 -> 19127 bytes session/grpc/types_frostfs.pb.go | Bin 66791 -> 65885 bytes status/grpc/types_frostfs.pb.go | Bin 13491 -> 13457 bytes tombstone/grpc/types_frostfs.pb.go | Bin 5309 -> 5275 bytes util/proto/test/custom/test_frostfs.pb.go | Bin 25935 -> 25899 bytes util/protogen/internalgengo/proto.go | 2 +- 18 files changed, 1 insertion(+), 2 deletions(-) diff --git a/accounting/grpc/service_frostfs.pb.go b/accounting/grpc/service_frostfs.pb.go index e44d7d49a3cf56d0972bf7be428c62ba40778a70..b70fd2756a11373fd1df430d74d3caefbab7a464 100644 GIT binary patch delta 79 zcmZ26k#Si+;|3qL&Dm_*_$LQidQ9GJ88BJjYTD!iS@y|u6*(tsX&u|#E^$|Yx0;KS dvqH})F()xEId!t5mHg)Qnr(1BoAs?K`2dw99J2rb delta 307 zcmZ41&$wbD;|3o#IW;wf3O)bwywoDk6usb*#H5_m;LNI24NV0_TLpv7-fY|XrNL^P z@>41?6-;In^Hc=O`=*v8dZZ?%q!wXOb;lx58LTQSwJ0;K5~n&H%jug9#5W5y=&a2;mQ{QJisN6m diff --git a/acl/grpc/types_frostfs.pb.go b/acl/grpc/types_frostfs.pb.go index e542a193a0d06b0414d7f5b46167c5a6330e4c20..931f3b3e2c4c9923bc349962211dcb9bbbf9e95b 100644 GIT binary patch delta 66 zcmV-I0KNbHIerVTQ-ifU>K6?$%&IVGt@#nG9udch@$Nja&(nN_J8nhJ`x3I>yEhC0vz+o%DzP}{ Y_EHasn}ajc^Abx+i?ErZv}_9(0G1h_>;M1& diff --git a/apemanager/grpc/service_frostfs.pb.go b/apemanager/grpc/service_frostfs.pb.go index 380ba305252d2fc739b36825734cbfd2541006fe..c1d28ed8520b6682bc1ef78e930f824ad254e2b6 100644 GIT binary patch delta 194 zcmeylm3it0<_)XaCOb_tnmqqB8;^5FVrHI#qOC$+X3l0U_5`8Hfy+E53rGb_)?eN` z$$)F}0&(`qb5%JfpH1F7xtD`~@|=`4n-|M?%cH6jnB3*gy?KJIoe;?6&2jfqiV7-<;v) F0{|A2PGbN7 delta 942 zcmbQbf%)fF<_)XaWYyFZD)d4Ui_%j|^nyzglX6mnGpkZHG!+zW6$~by^E213&~wg6 z%*+D`*iooVRsly6%w)&j2(Bxh>&dIN*?A`2V+bD=XFgKs` zv!i$5oR1fo9GAnn*)M5<9GwHlzDEumFz=c|2?Pu`_5$og$3apds*w`m0%;B8AK8SJe=BpfR zg42sK7(FH%T@08WkjdB!RmVPAUX^q5+vR&Vo5;);n7&b)u?Hw44c0YT+Mavz@^aP5 z=f84KujgRo-n>9hkq^Td?#XjJxHreyeH8?0H=oR(!ZtlTkWmoqq|H)+D}~UsOi1G2 z9GUu17DJe0vOpKdPyR3y?xh2h*REjS%rV0g z)jbn{>NqDyrXHL8Z#viXWp<3~Cr{ffxVhllE2hZ@*6?i3TCdU~}IdIS~}MffR9VcDR%+xcSuM27VN|-suUvjBJw=ezI@A_vL~h zWA*fdJd9%7->@<2p@ld|Ax Zx?&)sJ189ew*%c8B?ecx9TlsEGaEY#ZFCbQ6K!S+5#g@M zdO8-951eJ2uIIxjNHDY~8?tv#p3uZGxgddc@&P~g>Fd-Pk4+9p;obZ)AXku%-kUtp zrVr{6_RU?%4`u0W_vQ&r+XaaW-rmUyGXy~ab#n9CsR4X+cIe~_i+CpAUk6I7hbFI| z%DVaA(n4rFQ=0XFiNS30hwW03Y!jSXT%4Jo7m}ZynunSEr}z3WPMlnDNMiDZ2YWZ? z?^G0_cQ`1_V4eJ6FWcq==W+$*!1>j`99ZmN&8s>O8tIu=A&L2y7^pm%-20Gw^M;TA z1=P^Xl;Y^jSj>RkzK)5}jovwL`U5sbp6NC6jNID|L>aFUn-QiPI53J%SI}l;-wwoZzP?HmBg#isuhWn8m;Z7Sno9sqrEblm^| diff --git a/container/grpc/types_frostfs.pb.go b/container/grpc/types_frostfs.pb.go index 3e0d8827efbf4e27d1e59cd47eca86e9b7e62fea..dcb9cf42b9ccbf1bd02f8777f33bb2f798d968de 100644 GIT binary patch delta 24 gcmcZ-bt-bhGSSILMLj0#h&`BWC?36ev-m<$0FW07kN^Mx delta 162 zcmX>Vc_nJYGEq4-HH8Yju+*aB%=|pP;F83ooYdgVs#Fb41w~s0gUL%pJt0c`%kxr; zJX5eJc`N!*1#F6ANl8&=QfWzQadc)Z7KLZUV${G219B3RQ*%@EN&@n8GLtJYm2TD$ HUnB|uiMuup diff --git a/lock/grpc/types_frostfs.pb.go b/lock/grpc/types_frostfs.pb.go index 30121113af4b33cbfa686b1133950109160d5380..52a1a2dc86931f9de911a5bc5736fbec28b510d2 100644 GIT binary patch delta 12 TcmZpXdnCKz9P8!}tRkEMBpw9n delta 46 zcmaDP+akB&9IK+5nnH!1Z)$E*YEf}?W~^RtNn%n?YH(&%s)nY5qOF3#=CiD#oB(|I B4=Mlv diff --git a/netmap/grpc/service_frostfs.pb.go b/netmap/grpc/service_frostfs.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!IX|x?F%ws$ zhS&KLj(3a6x9jFYOd}NcHj_8kr;r@~4v<&~PAvu{(~$h^RBUNAyP-q{99xbhB}JJ@ zr6sAwSmR;xy@p^Ju)^SioJ?#<$)M30;vLsy%t!zxOHR%TJ=f&P8|&mZ&uWy=h9o)v zq^#8B60BKc;~F0Yh=q6(+n+UFki>y2nQeAmyGR&fmrr7GNkC!|Hn%@J;4Tfe%O^80 n8`Jfhbq-DxkOV8h=G4u5E_U!k-0GZBnwO0|1UEZBvu&LQRgU3A?0Ormc!vFvP diff --git a/rpc/message/test/message.go b/rpc/message/test/message.go index 46fef6a..1e5eb63 100644 --- a/rpc/message/test/message.go +++ b/rpc/message/test/message.go @@ -126,7 +126,6 @@ func testCompatibility(t *testing.T, msgGen func(empty bool) message.Message) { } } t.Run("empty", func(t *testing.T) { - t.Skip() msg := msgGen(true) t.Run(fmt.Sprintf("Binary_%T", msg), func(t *testing.T) { compareBinary(t, msg) diff --git a/session/grpc/service_frostfs.pb.go b/session/grpc/service_frostfs.pb.go index cfec4d6983b32a3ea7660efec40ad05286839aef..aa42ee8fd1762a18d0f35d60c231d5602de7bb85 100644 GIT binary patch delta 40 pcmbO=opJkA#tq?Yo6Fel2~IAM@R)o{B4D$hq?$6ElV_{L2LMJ{4;BCb delta 271 zcmdl!m2uW|#tq?Ya%yS{6?*>Vd8tL7DSE*riAg!B!I@R58k!16)Dwu2{;i(9g_f0KH^hixiNiD*nszxGE8LTQSwJ0;K5|_HoXC%~>>1W;KGZND_ JE7(rw1pvGgRE+=t diff --git a/session/grpc/types_frostfs.pb.go b/session/grpc/types_frostfs.pb.go index af952105147e45e55a06f34a5ec454133e4e736e..4f8bf81784ac75c9e3a8df4f9d590d10b9a1f083 100644 GIT binary patch delta 178 zcmaFf$#S=eWkVqELpL{67syV&u>0KPgL|ANJIxZATs13j^1E5yllAv%Z*H2c zuK<+{01CMAKr{!JB$kvGPj2Lu-@I>cr_|(}8zGaQ-UyqVbkl$H`J2$c6IRkzzohz&r2*REyCia&FdAXmReMtnV*NnpcT{4LxL&7BQ-Gvs0?d} zPoA*LdGgK~BFbPl1*aB+Obf}+PQ_;AnHfP4Bb`zci&BelDU+S)1BpZbqRjM6Yz95p zrL%d;Onn8a`5};?h3*g)z=T;+T8tT7o7Hx2l~RL844%MOsGeN-NON zElI?qe6rrPaEQ5((7>m(lNVs(J|7&rRH|%Dcyx_aY