|
|
Description[Cronet] Use gn desc to find third party licenses on Android.
Filter out build/secondary/third_party dependencies to work around
__main__.LicenseError: missing README.chromium or licenses.py SPECIAL_CASES entry in build/secondary/third_party/android_tools
BUG=606859
BUG=710801
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester
Review-Url: https://codereview.chromium.org/2959303002
Cr-Commit-Position: refs/heads/master@{#485291}
Committed: https://chromium.googlesource.com/chromium/src/+/0fd5121f8fe912464b4f4d46dbb90d6209f59bf0
Patch Set 1 #
Total comments: 3
Patch Set 2 : Removed TODO. #Patch Set 3 : Sync #Patch Set 4 : Use single quotes. #Messages
Total messages: 33 (22 generated)
Description was changed from ========== [Cronet] Use gn desc to find third party licenses on Android. Filter out build/secondary/third_party dependencies. BUG=606859 ========== to ========== [Cronet] Use gn desc to find third party licenses on Android. Filter out build/secondary/third_party dependencies. BUG=606859 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester ==========
The CQ bit was checked by mef@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== [Cronet] Use gn desc to find third party licenses on Android. Filter out build/secondary/third_party dependencies. BUG=606859 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester ========== to ========== [Cronet] Use gn desc to find third party licenses on Android. Filter out build/secondary/third_party dependencies. BUG=606859 BUG=710801 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester ==========
mef@chromium.org changed reviewers: + phajdan.jr@chromium.org
mef@chromium.org changed reviewers: + ichikawa@chromium.org
Hi Pawel, PTAL. This is followup to discussion on https://codereview.chromium.org/2797403002/ to use licenses.py and gn deps to generate LICENSES for Cronet on Android. Is it possible to have licenses sorted by project name? I'm afraid that without sorting we may end up with spurious diffs.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm Sorry I said I will do this but I never had time...
https://codereview.chromium.org/2959303002/diff/1/tools/licenses.py File tools/licenses.py (right): https://codereview.chromium.org/2959303002/diff/1/tools/licenses.py#newcode496 tools/licenses.py:496: # TODO(phajdan): Consider using PRUNE_PATHS to filter unwanted deps. Why does this TODO add me? It should add the person who has more context... you? ;-)
https://codereview.chromium.org/2959303002/diff/1/tools/licenses.py File tools/licenses.py (right): https://codereview.chromium.org/2959303002/diff/1/tools/licenses.py#newcode496 tools/licenses.py:496: # TODO(phajdan): Consider using PRUNE_PATHS to filter unwanted deps. On 2017/06/30 07:16:05, Paweł Hajdan Jr. wrote: > Why does this TODO add me? It should add the person who has more context... you? > ;-) I'll be happy to leave it as is or use PRUNE_PATHS if that makes sense, which I don't know. Do you know, who is a proper person to ask? The technical difficulty I ran into here is that PRUNE_PATHS contain relative paths, but |build_dep| contains the absolute one, so naive 'build_dep in PRUNE_PATHS' doesn't work.
https://codereview.chromium.org/2959303002/diff/1/tools/licenses.py File tools/licenses.py (right): https://codereview.chromium.org/2959303002/diff/1/tools/licenses.py#newcode496 tools/licenses.py:496: # TODO(phajdan): Consider using PRUNE_PATHS to filter unwanted deps. On 2017/06/30 12:38:40, mef wrote: > On 2017/06/30 07:16:05, Paweł Hajdan Jr. wrote: > > Why does this TODO add me? It should add the person who has more context... > you? > > ;-) > > I'll be happy to leave it as is or use PRUNE_PATHS if that makes sense, which I > don't know. > Do you know, who is a proper person to ask? > > The technical difficulty I ran into here is that PRUNE_PATHS contain relative > paths, but |build_dep| contains the absolute one, so naive 'build_dep in > PRUNE_PATHS' doesn't work. I've played with relpath and PRUNE_PATHS and it looks ugly. The problematic directory is 'build/secondary/third_party/android_tools' so naive check for it being in PRUNE_PATHS doesn't work. I think that current check is reasonably good and can stay. WDYT?
mef@chromium.org changed reviewers: + xunjieli@chromium.org
The CQ bit was checked by mef@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2017/06/30 14:31:46, mef wrote: > https://codereview.chromium.org/2959303002/diff/1/tools/licenses.py > File tools/licenses.py (right): > > https://codereview.chromium.org/2959303002/diff/1/tools/licenses.py#newcode496 > tools/licenses.py:496: # TODO(phajdan): Consider using PRUNE_PATHS to filter > unwanted deps. > On 2017/06/30 12:38:40, mef wrote: > > On 2017/06/30 07:16:05, Paweł Hajdan Jr. wrote: > > > Why does this TODO add me? It should add the person who has more context... > > you? > > > ;-) > > > > I'll be happy to leave it as is or use PRUNE_PATHS if that makes sense, which > I > > don't know. > > Do you know, who is a proper person to ask? > > > > The technical difficulty I ran into here is that PRUNE_PATHS contain relative > > paths, but |build_dep| contains the absolute one, so naive 'build_dep in > > PRUNE_PATHS' doesn't work. > > I've played with relpath and PRUNE_PATHS and it looks ugly. > The problematic directory is 'build/secondary/third_party/android_tools' so > naive check for it being in PRUNE_PATHS doesn't work. > > I think that current check is reasonably good and can stay. WDYT? Hi Pawel, friendly ping, PTAL, WDYT?
Description was changed from ========== [Cronet] Use gn desc to find third party licenses on Android. Filter out build/secondary/third_party dependencies. BUG=606859 BUG=710801 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester ========== to ========== [Cronet] Use gn desc to find third party licenses on Android. Filter out build/secondary/third_party dependencies to work around __main__.LicenseError: missing README.chromium or licenses.py SPECIAL_CASES entry in build/secondary/third_party/android_tools BUG=606859 BUG=710801 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester ==========
PTAL.
LGTM
The CQ bit was checked by mef@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by mef@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from ichikawa@chromium.org Link to the patchset: https://codereview.chromium.org/2959303002/#ps60001 (title: "Use single quotes.")
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 60001, "attempt_start_ts": 1499703880852860, "parent_rev": "b891953a093ee5ab2f78df398322e6cf59c7c2e6", "commit_rev": "0fd5121f8fe912464b4f4d46dbb90d6209f59bf0"}
Message was sent while issue was closed.
Description was changed from ========== [Cronet] Use gn desc to find third party licenses on Android. Filter out build/secondary/third_party dependencies to work around __main__.LicenseError: missing README.chromium or licenses.py SPECIAL_CASES entry in build/secondary/third_party/android_tools BUG=606859 BUG=710801 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester ========== to ========== [Cronet] Use gn desc to find third party licenses on Android. Filter out build/secondary/third_party dependencies to work around __main__.LicenseError: missing README.chromium or licenses.py SPECIAL_CASES entry in build/secondary/third_party/android_tools BUG=606859 BUG=710801 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Review-Url: https://codereview.chromium.org/2959303002 Cr-Commit-Position: refs/heads/master@{#485291} Committed: https://chromium.googlesource.com/chromium/src/+/0fd5121f8fe912464b4f4d46dbb9... ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/0fd5121f8fe912464b4f4d46dbb9... |