Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Issue 2106633002: swarmbucket: non-string properties (Closed)

Created:
4 years, 5 months ago by nodir
Modified:
4 years, 5 months ago
Reviewers:
Vadim Sh.
CC:
chromium-reviews, infra-reviews+infra_chromium.org
Base URL:
https://chromium.googlesource.com/infra/infra.git@master
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

swarmbucket: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -32 lines) Patch
M appengine/cr-buildbucket/proto/project_config.proto View 1 1 chunk +10 lines, -0 lines 0 comments Download
M appengine/cr-buildbucket/proto/project_config_pb2.py View 7 chunks +16 lines, -9 lines 0 comments Download
M appengine/cr-buildbucket/swarming/swarming.py View 1 2 chunks +15 lines, -8 lines 0 comments Download
M appengine/cr-buildbucket/swarming/swarmingcfg.py View 3 chunks +35 lines, -11 lines 0 comments Download
M appengine/cr-buildbucket/swarming/test/swarming_test.py View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M appengine/cr-buildbucket/swarming/test/swarmingcfg_test.py View 4 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
nodir
PTAL
4 years, 5 months ago (2016-06-28 00:04:12 UTC) #1
Vadim Sh.
lgtm *shrug* https://codereview.chromium.org/2106633002/diff/20001/appengine/cr-buildbucket/proto/project_config.proto File appengine/cr-buildbucket/proto/project_config.proto (right): https://codereview.chromium.org/2106633002/diff/20001/appengine/cr-buildbucket/proto/project_config.proto#newcode44 appengine/cr-buildbucket/proto/project_config.proto:44: // Same as properties, but the value ...
4 years, 5 months ago (2016-06-28 00:10:35 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2106633002/40001
4 years, 5 months ago (2016-06-28 00:42:37 UTC) #5
nodir
https://codereview.chromium.org/2106633002/diff/20001/appengine/cr-buildbucket/proto/project_config.proto File appengine/cr-buildbucket/proto/project_config.proto (right): https://codereview.chromium.org/2106633002/diff/20001/appengine/cr-buildbucket/proto/project_config.proto#newcode44 appengine/cr-buildbucket/proto/project_config.proto:44: // Same as properties, but the value must valid ...
4 years, 5 months ago (2016-06-28 00:42:38 UTC) #6
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 01:04:57 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/infra/infra/+/ca95ab8343c66e8842f6bb1c03d07...

Powered by Google App Engine
This is Rietveld 408576698