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

Issue 2802723004: Fix an issue that tools/license.py fails when BUILD.gn is not directly (Closed)

Created:
3 years, 8 months ago by Hiroshi Ichikawa
Modified:
3 years, 8 months ago
CC:
chromium-reviews, Eugene But (OOO till 7-30), ios-reviews+web_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix an issue that tools/license.py fails when BUILD.gn is not directly under third_party/* directory. e.g., FindThirdPartyDeps() currently returns ".../third_party/cld_3/src/src" where it should be ".../third_party/cld_3". I can reproduce the issue by: $ git cl patch 2797403002 $ tools/licenses.py --gn-target=//ios/web_view \ --gn-out-dir=out/Debug-iphonesimulator license_file I'm planning to reuse this script to generate LICENSE file for //ios/web_view, and encountered this issue. Review-Url: https://codereview.chromium.org/2802723004 Cr-Commit-Position: refs/heads/master@{#465497} Committed: https://chromium.googlesource.com/chromium/src/+/baea08206b03227c71eeafa328185c5741f4f2e5

Patch Set 1 #

Patch Set 2 : Remove a file included by mistake. #

Total comments: 2

Patch Set 3 : Extract a method and add test. #

Patch Set 4 : Apply review comments. #

Patch Set 5 : Add file description. #

Patch Set 6 : Rebase. #

Patch Set 7 : Add //tools/tests/OWNERS. #

Total comments: 2

Patch Set 8 : Apply review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -6 lines) Patch
M tools/licenses.py View 1 2 3 4 5 3 chunks +18 lines, -6 lines 0 comments Download
A tools/tests/OWNERS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A tools/tests/licenses_test.py View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
Hiroshi Ichikawa
3 years, 8 months ago (2017-04-06 04:16:22 UTC) #2
Paweł Hajdan Jr.
I may need more context what the specific issue is. It could also help to ...
3 years, 8 months ago (2017-04-06 11:55:09 UTC) #3
Hiroshi Ichikawa
On 2017/04/06 11:55:09, Paweł Hajdan Jr. wrote: > I may need more context what the ...
3 years, 8 months ago (2017-04-07 05:07:41 UTC) #5
Hiroshi Ichikawa
https://codereview.chromium.org/2802723004/diff/20001/tools/licenses.py File tools/licenses.py (right): https://codereview.chromium.org/2802723004/diff/20001/tools/licenses.py#newcode494 tools/licenses.py:494: m = re.search(r"^(.+/third_party/[^/]+)/(.+/)?BUILD\.gn$", build_dep) On 2017/04/06 11:55:09, Paweł Hajdan ...
3 years, 8 months ago (2017-04-07 05:07:51 UTC) #6
Hiroshi Ichikawa
PTAL?
3 years, 8 months ago (2017-04-14 02:27:56 UTC) #7
Paweł Hajdan Jr.
LGTM
3 years, 8 months ago (2017-04-18 20:22:19 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2802723004/80001
3 years, 8 months ago (2017-04-19 01:47:49 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/350276) chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 8 months ago (2017-04-19 01:51:00 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2802723004/100001
3 years, 8 months ago (2017-04-19 01:58:51 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/414602)
3 years, 8 months ago (2017-04-19 02:06:24 UTC) #17
Hiroshi Ichikawa
scottmg@: Can you review addition of these two new files, or point me a better ...
3 years, 8 months ago (2017-04-19 03:52:13 UTC) #19
scottmg
rs lgtm based on phajdan's review. https://codereview.chromium.org/2802723004/diff/120001/tools/tests/OWNERS File tools/tests/OWNERS (right): https://codereview.chromium.org/2802723004/diff/120001/tools/tests/OWNERS#newcode1 tools/tests/OWNERS:1: dpranke@chromium.org No need ...
3 years, 8 months ago (2017-04-19 04:25:16 UTC) #20
Hiroshi Ichikawa
https://codereview.chromium.org/2802723004/diff/120001/tools/tests/OWNERS File tools/tests/OWNERS (right): https://codereview.chromium.org/2802723004/diff/120001/tools/tests/OWNERS#newcode1 tools/tests/OWNERS:1: dpranke@chromium.org On 2017/04/19 04:25:15, scottmg wrote: > No need ...
3 years, 8 months ago (2017-04-19 04:33:24 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2802723004/140001
3 years, 8 months ago (2017-04-19 04:34:11 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 05:24:52 UTC) #27
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/baea08206b03227c71eeafa32818...

Powered by Google App Engine
This is Rietveld 408576698