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

Issue 2707593002: Whitelist allowed test names

Created:
3 years, 10 months ago by martiniss
Modified:
3 years, 10 months ago
CC:
chromium-reviews, hinoka, infra-reviews+recipes-py_chromium.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Whitelist allowed test names Forces test names to be only alphanumeric. Works around a bug in depot_tools patching logic, which didn't like filenames with spaces. BUG=693779

Patch Set 1 #

Patch Set 2 : Comment code. #

Total comments: 6

Patch Set 3 : Use correct regex #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -4 lines) Patch
M recipe_engine/recipe_test_api.py View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M recipe_engine/unittests/recipe_test_api_test.py View 1 2 3 chunks +11 lines, -3 lines 0 comments Download
M unittests/errors_test.py View 1 chunk +16 lines, -1 line 0 comments Download

Messages

Total messages: 10 (2 generated)
martiniss
PTAL
3 years, 10 months ago (2017-02-18 00:11:20 UTC) #3
dnj
https://codereview.chromium.org/2707593002/diff/20001/recipe_engine/recipe_test_api.py File recipe_engine/recipe_test_api.py (right): https://codereview.chromium.org/2707593002/diff/20001/recipe_engine/recipe_test_api.py#newcode193 recipe_engine/recipe_test_api.py:193: match = re.match(r'(\w)*', name) Why not: "name.isalnum()"? Also will ...
3 years, 10 months ago (2017-02-18 00:15:29 UTC) #4
martiniss
On 2017/02/18 at 00:15:29, dnj wrote: > https://codereview.chromium.org/2707593002/diff/20001/recipe_engine/recipe_test_api.py > File recipe_engine/recipe_test_api.py (right): > > https://codereview.chromium.org/2707593002/diff/20001/recipe_engine/recipe_test_api.py#newcode193 ...
3 years, 10 months ago (2017-02-18 00:25:13 UTC) #5
dnj
https://codereview.chromium.org/2707593002/diff/20001/recipe_engine/recipe_test_api.py File recipe_engine/recipe_test_api.py (right): https://codereview.chromium.org/2707593002/diff/20001/recipe_engine/recipe_test_api.py#newcode193 recipe_engine/recipe_test_api.py:193: match = re.match(r'(\w)*', name) On 2017/02/18 00:15:29, dnj wrote: ...
3 years, 10 months ago (2017-02-18 01:27:41 UTC) #6
iannucci
won't this patching logic be irrelevant if we switch to gerrit?
3 years, 10 months ago (2017-02-18 10:08:20 UTC) #7
Paweł Hajdan Jr.
LGTM w/comments IMO this is a good change even when we switch to Gerrit. Limiting ...
3 years, 10 months ago (2017-02-21 09:53:31 UTC) #8
martiniss
On 2017/02/18 at 10:08:20, iannucci wrote: > won't this patching logic be irrelevant if we ...
3 years, 10 months ago (2017-02-21 18:50:29 UTC) #9
Paweł Hajdan Jr.
3 years, 10 months ago (2017-02-22 17:15:22 UTC) #10
On 2017/02/21 18:50:29, martiniss wrote:
> On 2017/02/18 at 10:08:20, iannucci wrote:
> > won't this patching logic be irrelevant if we switch to gerrit?
> 
> I think so? I agree with pawel though, that I think restricting test names
makes
> sense anyways.

Especially that we have the CL now.

To me it means we don't need to ask whether the work is worth it, since it's
already done.

Any possible remaining questions might be about code complexity or related
matters, but IMO we do so many other really complex things, that this CL
shouldn't raise such concerns.

I suggest we land this CL, unless someone has a really strong opinion (and
preferably, equally strong justification).

Powered by Google App Engine
This is Rietveld 408576698