Chromium Code Reviews
Descriptionswarmbucket: non-string properties
Currently swarmbucket supports only string properties, e.g. "a:b" means
a property value is a string "b", "x:True" means x property value is a
string "True".
Add properties_j config field that interprets substring after colon as
JSON-encoded value, for example "a:1" and "b:true" means that properties
a and b have values 1 and True repspectively. Fields properties and
properties_j can be used together, but cannot set a vaue for the same
property:
properties: "a:b"
properties: "x:1"
Note that properties_j does not deprecate properties because it is very
inconvenient and verbose to escape quotes in text proto:
properties_j: "a:\"b\""
Why not property message, like {name: "a"; int: 3}? Because message
{name: "a"; int:0} may be indistinguishable from {name:"a"; b: false}
because both have default field values.
R=vadimsh@chromium.org
BUG=
Committed: https://chromium.googlesource.com/infra/infra/+/ca95ab8343c66e8842f6bb1c03d070205a2d19c6
Patch Set 1 #Patch Set 2 : swarmbucket: non-string properties #
Total comments: 4
Patch Set 3 : remove 9999 #
Messages
Total messages: 8 (3 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||