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

Issue 250983003: Added TryJobGerritScheduler (Closed)

Created:
6 years, 8 months ago by nodir
Modified:
6 years, 7 months ago
CC:
chromium-reviews, kjellander-cc_chromium.org, cmp-cc_chromium.org, ilevy-cc_chromium.org, stip+watch_chromium.org
Visibility:
Public.

Description

Added TryJobGerritScheduler The TryJobGerritScheduler uses TryJobGerritPoller to poll open issues on Gerrit with TryJob=1 label. For each issue it searches for a 'new' message in that starts with !tryjob prefix. A 'new' message means its date is greater than previous poll time. If !tryjob is followed by json, it is parsed as a job description. The format is {'builderNames': <list of strings>}. The short form for this is just a list, e.g. ['Stable']. For each try job, TryJobGerritScheduler/TryJobGerritPoller create 1) a new buildbot change with the Gerrit patchset revision 2) a Sourcestamp 3) a Buildset with specified builder names. If not specified, the default builder list is used. The TryJobGerritPoller is a part of TryJobGerritScheduler and not designed to be used otherwise. This was tested locally with the following CL as input: https://quickoffice-internal-review.googlesource.com/#/c/11081/1 BUG=366099, 364639, 364631 R=kmg@chromium.org, vadimsh@chromium.org, dnj@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=266962

Patch Set 1 : #

Total comments: 10

Patch Set 2 : #

Patch Set 3 : added GerritPoller.change_category #

Total comments: 25

Patch Set 4 : renamed comment to message #

Patch Set 5 : Addressed Vadim's comments #

Patch Set 6 : 'except' simplification in JobDefinition.parse #

Total comments: 1

Patch Set 7 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -8 lines) Patch
M scripts/master/gerrit_poller.py View 1 2 3 4 7 chunks +20 lines, -8 lines 0 comments Download
A scripts/master/try_job_gerrit.py View 1 2 3 4 5 6 1 chunk +131 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
nodir
6 years, 8 months ago (2014-04-25 22:28:10 UTC) #1
Dan Jacques
https://codereview.chromium.org/250983003/diff/40001/scripts/master/try_job_gerrit.py File scripts/master/try_job_gerrit.py (right): https://codereview.chromium.org/250983003/diff/40001/scripts/master/try_job_gerrit.py#newcode63 scripts/master/try_job_gerrit.py:63: self.scheduler = scheduler I don't think the 'change source' ...
6 years, 8 months ago (2014-04-26 00:38:51 UTC) #2
Kevin Graney
https://codereview.chromium.org/250983003/diff/40001/scripts/master/try_job_gerrit.py File scripts/master/try_job_gerrit.py (right): https://codereview.chromium.org/250983003/diff/40001/scripts/master/try_job_gerrit.py#newcode108 scripts/master/try_job_gerrit.py:108: builderNames=default_builder_names, Are you somehow running PRESUBMIT.py for the jobs ...
6 years, 8 months ago (2014-04-26 02:45:11 UTC) #3
nodir
https://codereview.chromium.org/250983003/diff/40001/scripts/master/try_job_gerrit.py File scripts/master/try_job_gerrit.py (right): https://codereview.chromium.org/250983003/diff/40001/scripts/master/try_job_gerrit.py#newcode63 scripts/master/try_job_gerrit.py:63: self.scheduler = scheduler In general, yes, a poller and ...
6 years, 7 months ago (2014-04-28 22:31:10 UTC) #4
Kevin Graney
On 2014/04/28 22:31:10, nodir wrote: > https://codereview.chromium.org/250983003/diff/40001/scripts/master/try_job_gerrit.py > File scripts/master/try_job_gerrit.py (right): > > https://codereview.chromium.org/250983003/diff/40001/scripts/master/try_job_gerrit.py#newcode63 > ...
6 years, 7 months ago (2014-04-29 00:38:34 UTC) #5
dnj (Google)
lgtm
6 years, 7 months ago (2014-04-29 00:38:51 UTC) #6
nodir
The CQ bit was checked by nodir@chromium.org
6 years, 7 months ago (2014-04-29 00:43:02 UTC) #7
nodir
Thanks!
6 years, 7 months ago (2014-04-29 00:43:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nodir@chromium.org/250983003/80001
6 years, 7 months ago (2014-04-29 00:43:36 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 00:43:37 UTC) #10
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 7 months ago (2014-04-29 00:43:37 UTC) #11
Vadim Sh.
(FYI: I'm reviewing this now and I'm 'super star committer').
6 years, 7 months ago (2014-04-29 00:50:13 UTC) #12
nodir
Expecting a super review..
6 years, 7 months ago (2014-04-29 00:51:09 UTC) #13
Kevin Graney
On 2014/04/29 00:51:09, nodir wrote: > Expecting a super review.. It's not related to OWNERS, ...
6 years, 7 months ago (2014-04-29 01:17:26 UTC) #14
Vadim Sh.
https://codereview.chromium.org/250983003/diff/80001/scripts/master/gerrit_poller.py File scripts/master/gerrit_poller.py (right): https://codereview.chromium.org/250983003/diff/80001/scripts/master/gerrit_poller.py#newcode45 scripts/master/gerrit_poller.py:45: path = '/changes/?q=%s&n=1' % self.getChangeQuery() So if try server ...
6 years, 7 months ago (2014-04-29 01:22:45 UTC) #15
Vadim Sh.
On 2014/04/29 01:17:26, Kevin Graney wrote: > On 2014/04/29 00:51:09, nodir wrote: > > Expecting ...
6 years, 7 months ago (2014-04-29 01:24:54 UTC) #16
nodir
Good review, thanks https://codereview.chromium.org/250983003/diff/80001/scripts/master/gerrit_poller.py File scripts/master/gerrit_poller.py (right): https://codereview.chromium.org/250983003/diff/80001/scripts/master/gerrit_poller.py#newcode45 scripts/master/gerrit_poller.py:45: path = '/changes/?q=%s&n=1' % self.getChangeQuery() On ...
6 years, 7 months ago (2014-04-29 04:00:59 UTC) #17
Vadim Sh.
https://codereview.chromium.org/250983003/diff/80001/scripts/master/try_job_gerrit.py File scripts/master/try_job_gerrit.py (right): https://codereview.chromium.org/250983003/diff/80001/scripts/master/try_job_gerrit.py#newcode21 scripts/master/try_job_gerrit.py:21: if b] On 2014/04/29 04:01:00, nodir wrote: > On ...
6 years, 7 months ago (2014-04-29 18:17:39 UTC) #18
nodir
nit address, please approve
6 years, 7 months ago (2014-04-29 20:26:29 UTC) #19
nodir
On 2014/04/29 20:26:29, nodir wrote: > nit address, please approve s/address/addressed
6 years, 7 months ago (2014-04-29 20:26:48 UTC) #20
Vadim Sh.
lgtm
6 years, 7 months ago (2014-04-29 20:33:30 UTC) #21
nodir
The CQ bit was checked by nodir@chromium.org
6 years, 7 months ago (2014-04-29 21:06:44 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nodir@chromium.org/250983003/160001
6 years, 7 months ago (2014-04-29 21:07:51 UTC) #23
commit-bot: I haz the power
6 years, 7 months ago (2014-04-29 21:09:36 UTC) #24
Message was sent while issue was closed.
Change committed as 266962

Powered by Google App Engine
This is Rietveld 408576698