Closed GoogleCodeExporter closed 9 years ago
Original comment by maruel@chromium.org
on 1 Dec 2014 at 3:46
Original comment by maruel@chromium.org
on 1 Dec 2014 at 3:46
What is the strict formal difference between 'state' and 'properties'? "Magic
values" sounds to vague :)
Is it correct to say that:
a) 'state' can be modified from bot_config (based on bot machine state).
b) 'properties' can NOT be modified from bot_config, but rather assigned by the
server ('version' is derived from server version, some other properties may be
read from the datastore, etc.)
If it is not correct and there's no clear distinction between 'state' and
'properties', I'd rather we have a single set.
Original comment by vadimsh@chromium.org
on 1 Dec 2014 at 5:55
Fair point. The current magical values are:
dimensions:
- id: must be one item and the item must be unique
- quarantined: if set, the server behavior changes.
state:
- quarantined: if set, the server behavior changes.
I guess proper documentation would be fine.
Original comment by maruel@chromium.org
on 1 Dec 2014 at 7:52
So... If I want to add a new key-value pair, how do I choose where to add it to
('state' or 'properties')?
Original comment by vadimsh@chromium.org
on 1 Dec 2014 at 7:54
If it's magic, e.g. it changes the server behavior w.r.t. this specific bot, it
should be in 'properties'. 'state' would be for monitoring only. That's the
basic idea.
Original comment by maruel@chromium.org
on 1 Dec 2014 at 7:58
Wrote a wiki page instead:
https://code.google.com/p/swarming/wiki/SwarmingMagicValues
Original comment by maruel@chromium.org
on 3 Dec 2014 at 6:22
Original issue reported on code.google.com by
maruel@chromium.org
on 1 Dec 2014 at 3:46