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

Issue 966993002: api.trigger: refactoring, made extensible (Closed)

Created:
5 years, 9 months ago by nodir
Modified:
5 years, 9 months ago
Reviewers:
smut, smut
CC:
chromium-reviews, kjellander-cc_chromium.org, cmp-cc_chromium.org, stip+watch_chromium.org
Target Ref:
refs/heads/master
Project:
tools
Visibility:
Public.

Description

api.trigger: refactoring, made extensible More an more parameters are being added to trigger_specs that are not properties. This CL changes api.trigger function to accept trigger specs instead of properties. A trigger spec may contain properties, as well as builder_name, buildbot_changes and, in next CL, buildbucket bucket. Also this change renames "buildbot.changes" to "buildbot_changes", because a dot cannot be in recipe config schema. For backward compatibility, if there is "buildername" in a trigger spec, it is treated in the backward compatible mode. R=smut@google.com, smut@chromium.org BUG=449218 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=294290

Patch Set 1 : #

Total comments: 12

Patch Set 2 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -103 lines) Patch
M scripts/common/annotator.py View 1 1 chunk +5 lines, -8 lines 0 comments Download
M scripts/slave/recipe_modules/step/config.py View 1 chunk +2 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/trigger/api.py View 1 2 chunks +59 lines, -38 lines 0 comments Download
M scripts/slave/recipe_modules/trigger/example.py View 1 1 chunk +27 lines, -19 lines 0 comments Download
A + scripts/slave/recipe_modules/trigger/example.expected/backward_compatibility.json View 1 1 chunk +2 lines, -2 lines 0 comments Download
D scripts/slave/recipe_modules/trigger/example.expected/buildbot.changes.json View 1 chunk +0 lines, -20 lines 0 comments Download
A scripts/slave/recipe_modules/trigger/example.expected/buildbot_changes.json View 1 1 chunk +18 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/trigger/example.expected/trigger_one_build.json View 1 chunk +2 lines, -2 lines 0 comments Download
M scripts/slave/recipe_modules/trigger/example.expected/trigger_two_builds.json View 1 chunk +4 lines, -4 lines 0 comments Download
M scripts/slave/recipes/bisect.expected/basic.json View 8 chunks +4 lines, -4 lines 0 comments Download
M scripts/slave/recipes/bisect.expected/encoded_config_test.json View 8 chunks +4 lines, -4 lines 0 comments Download
M scripts/slave/recipes/infra/publish_tarball.expected/trigger.json View 1 chunk +1 line, -1 line 0 comments Download
M scripts/slave/recipes/syzygy/continuous.expected/full_master_client_syzygy_Syzygy_Official.json View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (5 generated)
nodir
PTAL
5 years, 9 months ago (2015-02-28 01:24:02 UTC) #2
nodir
5 years, 9 months ago (2015-02-28 01:30:56 UTC) #4
smut
https://codereview.chromium.org/966993002/diff/40001/scripts/common/annotator.py File scripts/common/annotator.py (right): https://codereview.chromium.org/966993002/diff/40001/scripts/common/annotator.py#newcode455 scripts/common/annotator.py:455: assert isinstance(changes, list), 'buildbot.changes must be a list' buildbot.changes ...
5 years, 9 months ago (2015-02-28 01:44:51 UTC) #6
smut
https://codereview.chromium.org/966993002/diff/40001/scripts/slave/recipe_modules/trigger/api.py File scripts/slave/recipe_modules/trigger/api.py (right): https://codereview.chromium.org/966993002/diff/40001/scripts/slave/recipe_modules/trigger/api.py#newcode30 scripts/slave/recipe_modules/trigger/api.py:30: """Convert from prevoius "properties-only" mode to trigger spec.""" s/prevouis/previous/ ...
5 years, 9 months ago (2015-02-28 01:49:42 UTC) #7
nodir
Sorry, the firs tpatchset was not really ready. Fixed now https://codereview.chromium.org/966993002/diff/40001/scripts/common/annotator.py File scripts/common/annotator.py (right): https://codereview.chromium.org/966993002/diff/40001/scripts/common/annotator.py#newcode455 ...
5 years, 9 months ago (2015-03-02 02:26:11 UTC) #9
smut
lgtm
5 years, 9 months ago (2015-03-03 00:39:32 UTC) #11
nodir
5 years, 9 months ago (2015-03-03 01:02:39 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:100001) manually as 294290.

Powered by Google App Engine
This is Rietveld 408576698