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

Issue 1172053003: Created infra/tools/new_tool (Closed)

Created:
5 years, 6 months ago by pgervais
Modified:
5 years, 6 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/infra/infra.git@master
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

Created infra/tools/new_tool Use this tool to generate a stub in infra/tools/<toolname> BUG=498379 Committed: https://chromium.googlesource.com/infra/infra/+/40b336ae8afa6ade68584e79dab9ee2be5fa7c40

Patch Set 1 #

Total comments: 2

Patch Set 2 : Refactored #

Patch Set 3 : Added tests #

Total comments: 4

Patch Set 4 : More tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -25 lines) Patch
A + infra/tools/new_tool/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A infra/tools/new_tool/__main__.py View 1 chunk +24 lines, -0 lines 0 comments Download
A infra/tools/new_tool/new_tool.py View 1 2 3 1 chunk +100 lines, -0 lines 0 comments Download
A + infra/tools/new_tool/templates/main.template View 1 2 chunks +8 lines, -13 lines 0 comments Download
A + infra/tools/new_tool/templates/test.template View 1 1 chunk +8 lines, -9 lines 0 comments Download
A + infra/tools/new_tool/templates/tool.template View 1 1 chunk +1 line, -5 lines 0 comments Download
A + infra/tools/new_tool/test/__init__.py View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A infra/tools/new_tool/test/__main___test.py View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
A infra/tools/new_tool/test/data/test_template.template View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A infra/tools/new_tool/test/new_tool_test.py View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
pgervais
hinoka: This is what I used to generate the Antibody stub.
5 years, 6 months ago (2015-06-09 22:44:57 UTC) #2
Ryan Tseng
https://chromiumcodereview.appspot.com/1172053003/diff/1/infra/tools/new_tool/new_tool.py File infra/tools/new_tool/new_tool.py (right): https://chromiumcodereview.appspot.com/1172053003/diff/1/infra/tools/new_tool/new_tool.py#newcode1 infra/tools/new_tool/new_tool.py:1: # Copyright 2015 The Chromium Authors. All rights reserved. ...
5 years, 6 months ago (2015-06-09 23:03:05 UTC) #4
Sergey Berezin
Overall looks good. One comment, and please add tests. https://chromiumcodereview.appspot.com/1172053003/diff/1/infra/tools/new_tool/new_tool.py File infra/tools/new_tool/new_tool.py (right): https://chromiumcodereview.appspot.com/1172053003/diff/1/infra/tools/new_tool/new_tool.py#newcode159 infra/tools/new_tool/new_tool.py:159: ...
5 years, 6 months ago (2015-06-10 00:32:37 UTC) #5
pgervais
Alright, by refactoring. The code is shorter, and there are now separate template files. ptal
5 years, 6 months ago (2015-06-10 00:57:20 UTC) #6
Sergey Berezin
Looks great, looking forward to the tests :-)
5 years, 6 months ago (2015-06-10 23:00:42 UTC) #7
pgervais
On 2015/06/10 23:00:42, Sergey Berezin wrote: > Looks great, looking forward to the tests :-) ...
5 years, 6 months ago (2015-06-11 17:09:03 UTC) #8
Sergey Berezin
Thanks for the tests! Looks pretty good. Can we also have a smoke test for ...
5 years, 6 months ago (2015-06-11 17:33:17 UTC) #9
pgervais
Tested the rest. ptal https://codereview.chromium.org/1172053003/diff/40001/infra/tools/new_tool/test/new_tool_test.py File infra/tools/new_tool/test/new_tool_test.py (right): https://codereview.chromium.org/1172053003/diff/40001/infra/tools/new_tool/test/new_tool_test.py#newcode76 infra/tools/new_tool/test/new_tool_test.py:76: self.assertEqual(content, expected_content) On 2015/06/11 17:33:16, ...
5 years, 6 months ago (2015-06-11 17:46:54 UTC) #10
Sergey Berezin
Cool, thx! LGTM https://codereview.chromium.org/1172053003/diff/40001/infra/tools/new_tool/test/new_tool_test.py File infra/tools/new_tool/test/new_tool_test.py (right): https://codereview.chromium.org/1172053003/diff/40001/infra/tools/new_tool/test/new_tool_test.py#newcode76 infra/tools/new_tool/test/new_tool_test.py:76: self.assertEqual(content, expected_content) On 2015/06/11 17:46:54, pgervais ...
5 years, 6 months ago (2015-06-11 17:55:06 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1172053003/60001
5 years, 6 months ago (2015-06-11 18:04:01 UTC) #13
commit-bot: I haz the power
5 years, 6 months ago (2015-06-11 18:17:10 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/infra/infra/+/40b336ae8afa6ade68584e79dab9e...

Powered by Google App Engine
This is Rietveld 408576698