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

Issue 23018008: GTTF: Print much better error message for dependency cycles. (Closed)

Created:
7 years, 4 months ago by Paweł Hajdan Jr.
Modified:
7 years, 4 months ago
Reviewers:
Mark Mentovai, scottmg
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

GTTF: Print much better error message for dependency cycles. Example: gyp: Cycles in .gyp file dependency graph detected: Cycle: build/linux/system.gyp -> third_party/zlib/zlib.gyp -> base/base.gyp -> tools/xdisplaycheck/xdisplaycheck.gyp -> build/linux/system.gyp Cycle: build/linux/system.gyp -> third_party/zlib/zlib.gyp -> base/base.gyp -> build/linux/system.gyp Cycle: base/base.gyp -> tools/xdisplaycheck/xdisplaycheck.gyp -> build/linux/system.gyp -> base/base.gyp Cycle: build/linux/system.gyp -> base/base.gyp -> tools/xdisplaycheck/xdisplaycheck.gyp -> build/linux/system.gyp Cycle: base/base.gyp -> build/linux/system.gyp -> base/base.gyp Cycle: base/base.gyp -> tools/xdisplaycheck/xdisplaycheck.gyp -> build/linux/system.gyp -> third_party/zlib/zlib.gyp -> base/base.gyp Cycle: base/base.gyp -> build/linux/system.gyp -> third_party/zlib/zlib.gyp -> base/base.gyp Cycle: build/linux/system.gyp -> base/base.gyp -> build/linux/system.gyp BUG=chromium:35878 Patch by Paweł Hajdan Jr. <phajdan.jr@chromium.org>; Take 2, originally landed in r1695 and backed out in r1696. Review URL: https://codereview.chromium.org/23018008/

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -3 lines) Patch
M pylib/gyp/input.py View 1 2 3 4 3 chunks +33 lines, -3 lines 0 comments Download
A pylib/gyp/input_test.py View 1 2 3 4 1 chunk +90 lines, -0 lines 0 comments Download
M test/small/gyptest-small.py View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Paweł Hajdan Jr.
7 years, 4 months ago (2013-08-15 23:16:51 UTC) #1
scottmg
Nice! The old output is very unhelpful.
7 years, 4 months ago (2013-08-16 03:07:40 UTC) #2
Mark Mentovai
Is there an easy way to test the cycle-finding logic?
7 years, 4 months ago (2013-08-16 04:25:48 UTC) #3
Paweł Hajdan Jr.
PTAL
7 years, 4 months ago (2013-08-16 19:26:35 UTC) #4
Mark Mentovai
https://codereview.chromium.org/23018008/diff/6001/pylib/gyp/input.py File pylib/gyp/input.py (right): https://codereview.chromium.org/23018008/diff/6001/pylib/gyp/input.py#newcode1751 pylib/gyp/input.py:1751: cycles.append('Cycle #%d: %s' % (num, ' -> '.join(simplified_paths))) I ...
7 years, 4 months ago (2013-08-16 19:32:46 UTC) #5
Paweł Hajdan Jr.
https://codereview.chromium.org/23018008/diff/6001/pylib/gyp/input.py File pylib/gyp/input.py (right): https://codereview.chromium.org/23018008/diff/6001/pylib/gyp/input.py#newcode1751 pylib/gyp/input.py:1751: cycles.append('Cycle #%d: %s' % (num, ' -> '.join(simplified_paths))) On ...
7 years, 4 months ago (2013-08-16 22:39:41 UTC) #6
Mark Mentovai
LGTM otherwise https://codereview.chromium.org/23018008/diff/6001/pylib/gyp/input.py File pylib/gyp/input.py (right): https://codereview.chromium.org/23018008/diff/6001/pylib/gyp/input.py#newcode1751 pylib/gyp/input.py:1751: cycles.append('Cycle #%d: %s' % (num, ' -> ...
7 years, 4 months ago (2013-08-17 03:59:02 UTC) #7
Paweł Hajdan Jr.
https://codereview.chromium.org/23018008/diff/6001/pylib/gyp/input.py File pylib/gyp/input.py (right): https://codereview.chromium.org/23018008/diff/6001/pylib/gyp/input.py#newcode1751 pylib/gyp/input.py:1751: cycles.append('Cycle #%d: %s' % (num, ' -> '.join(simplified_paths))) On ...
7 years, 4 months ago (2013-08-19 18:59:49 UTC) #8
Mark Mentovai
Adjust CL description and LGTM.
7 years, 4 months ago (2013-08-19 19:01:20 UTC) #9
Paweł Hajdan Jr.
On 2013/08/19 19:01:20, Mark Mentovai wrote: > Adjust CL description and LGTM. Done. Could you ...
7 years, 4 months ago (2013-08-19 19:36:57 UTC) #10
Mark Mentovai
Sure. Landed GYP r1695.
7 years, 4 months ago (2013-08-19 19:57:57 UTC) #11
scottmg
This has made http://build.chromium.org/f/client/gyp/ all red. Could one of you take a look?
7 years, 4 months ago (2013-08-19 21:31:06 UTC) #12
Mark Mentovai
Backed out at r1696. assertItemsEqual is new in Python 2.7. http://docs.python.org/2/library/unittest.html#unittest.TestCase.assertItemsEqual
7 years, 4 months ago (2013-08-19 21:40:06 UTC) #13
Paweł Hajdan Jr.
PTAL - now with trybots and a fix. Please commit if looks good.
7 years, 4 months ago (2013-08-19 22:22:45 UTC) #14
Mark Mentovai
7 years, 4 months ago (2013-08-20 13:28:46 UTC) #15
LGTM. r1700.

Powered by Google App Engine
This is Rietveld 408576698