Review Request 1742: Pass the BUILD file path to compile.

0 views
Skip to first unread message

John Sirois

unread,
Feb 9, 2015, 4:33:09 PM2/9/15
to Nick Howard (Twitter), pants-reviews, John Sirois
This is an automatically generated e-mail. To reply, visit: https://rbcommons.com/s/twitter/r/1742/

Review request for pants-reviews and Nick Howard (Twitter).
By John Sirois.
Bugs: 1067
Repository: pants

Description

This produces SyntaxErrors with the path to the bad BUILD file included
in the error details.

 src/python/pants/base/build_file.py             |   2 +-
 tests/python/pants_test/base/BUILD              |   2 +-
 tests/python/pants_test/base/test_build_file.py | 211 +++++++++++++++++++++++++++-----------------------
 3 files changed, 115 insertions(+), 100 deletions(-)

Testing

CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/50115987

Diffs

  • src/python/pants/base/build_file.py (3b532753638a4b0059b0f03b912a0e4c3dd1557a)
  • tests/python/pants_test/base/BUILD (d8713760078b0b5040ad86ee61fdce0fdc093fe6)
  • tests/python/pants_test/base/test_build_file.py (805141a49ac124f34692985ac8c85d171ad691b8)

View Diff

John Sirois

unread,
Feb 10, 2015, 7:25:34 PM2/10/15
to Nick Howard (Twitter), pants-reviews, John Sirois
This is an automatically generated e-mail. To reply, visit: https://rbcommons.com/s/twitter/r/1742/

ping

- John Sirois


On February 9th, 2015, 2:33 p.m. MST, John Sirois wrote:

Review request for pants-reviews and Nick Howard (Twitter).
By John Sirois.

Updated Feb. 9, 2015, 2:33 p.m.

Jin Feng

unread,
Feb 10, 2015, 7:35:26 PM2/10/15
to Nick Howard (Twitter), Jin Feng, pants-reviews, John Sirois
This is an automatically generated e-mail. To reply, visit: https://rbcommons.com/s/twitter/r/1742/

Ship it!

Ship It!

- Jin Feng


On February 9th, 2015, 1:33 p.m. PST, John Sirois wrote:

Review request for pants-reviews and Nick Howard (Twitter).
By John Sirois.

Updated Feb. 9, 2015, 1:33 p.m.

John Sirois

unread,
Feb 10, 2015, 7:54:01 PM2/10/15
to Jin Feng, Nick Howard (Twitter), pants-reviews, John Sirois
This is an automatically generated e-mail. To reply, visit: https://rbcommons.com/s/twitter/r/1742/

Thanks Jin - submitted @ https://github.com/pantsbuild/pants/commit/274df6c844634675af7d6f1657f14840e3480f25

- John Sirois


On February 10th, 2015, 5:41 p.m. MST, John Sirois wrote:

Review request for pants-reviews, Jin Feng and Nick Howard (Twitter).
By John Sirois.

Updated Feb. 10, 2015, 5:41 p.m.

Patrick Lawson

unread,
Feb 11, 2015, 11:18:09 AM2/11/15
to Jin Feng, Nick Howard (Twitter), pants-reviews, John Sirois, Patrick Lawson
This is an automatically generated e-mail. To reply, visit: https://rbcommons.com/s/twitter/r/1742/

tests/python/pants_test/base/test_build_file.py (Diff revision 1)
201
    parsed_locals = Compatibility.exec_function(build_file.code(), {'java_library': dict})

Sorry for the late review--we should always be using six equivalents rather than introducing new deps on t.c.*.; e.g. https://pythonhosted.org/six/#six.exec_


- Patrick Lawson


On February 11th, 2015, 12:41 a.m. UTC, John Sirois wrote:

Review request for pants-reviews, Jin Feng and Nick Howard (Twitter).
By John Sirois.

Updated Feb. 11, 2015, 12:41 a.m.

John Sirois

unread,
Feb 18, 2015, 4:13:00 AM2/18/15
to Jin Feng, Nick Howard (Twitter), pants-reviews, John Sirois, Patrick Lawson
This is an automatically generated e-mail. To reply, visit: https://rbcommons.com/s/twitter/r/1742/

On February 11th, 2015, 9:18 a.m. MST, Patrick Lawson wrote:

tests/python/pants_test/base/test_build_file.py (Diff revision 1)
201
    parsed_locals = Compatibility.exec_function(build_file.code(), {'java_library': dict})

Sorry for the late review--we should always be using six equivalents rather than introducing new deps on t.c.*.; e.g. https://pythonhosted.org/six/#six.exec_


On February 10th, 2015, 5:41 p.m. MST, John Sirois wrote:

Review request for pants-reviews, Jin Feng and Nick Howard (Twitter).
By John Sirois.

Updated Feb. 10, 2015, 5:41 p.m.

Bugs: 1067
Reply all
Reply to author
Forward
0 new messages