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

Issue 11553016: Sync PRESUBMIT.py with what is run on CQ. (Closed)

Created:
8 years ago by Mike Stip (use stip instead)
Modified:
6 years, 10 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, ilevy-cc_chromium.org
Visibility:
Public.

Description

Sync PRESUBMIT.py with what is run on CQ. BUG=108484

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -7 lines) Patch
M PRESUBMIT.py View 3 chunks +111 lines, -7 lines 2 comments Download

Messages

Total messages: 2 (0 generated)
Mike Stip (use stip instead)
maruel -- this fails in presubmit_support.py, line 924 with 'Do not use \',\' separated builder ...
8 years ago (2012-12-12 07:31:52 UTC) #1
M-A Ruel
8 years ago (2012-12-12 17:54:59 UTC) #2
https://chromiumcodereview.appspot.com/11553016/diff/1/PRESUBMIT.py
File PRESUBMIT.py (right):

https://chromiumcodereview.appspot.com/11553016/diff/1/PRESUBMIT.py#newcode936
PRESUBMIT.py:936: bot_list[builder] = (builder + ':' +
','.join(list(set(tests))))
What about we convert the code in depot_tools to use a dict(str, set(str))
instead? That would:
1. Greatly reduce the string parsing.
2. Make it easy to add a test *safely*:
out.setdefault('buider', set().add('test')

That requires more plumbing but it probably makes sense to do it before relying
on it everywhere?

The "consumer code" is in presubmit_support.py.

https://chromiumcodereview.appspot.com/11553016/diff/1/PRESUBMIT.py#newcode965
PRESUBMIT.py:965: 'android_clang_dbg',
In theory, all this list disappears.

Powered by Google App Engine
This is Rietveld 408576698