[
https://issues.apache.org/jira/browse/AURORA-529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14031687#comment-14031687
]
Joe Smith commented on AURORA-529:
----------------------------------
How did that ever work?
{noformat}
13:11:51 apache $ git diff ./aurora/admin/BUILD
diff --git a/src/main/python/apache/aurora/admin/BUILD
b/src/main/python/apache/aurora/admin/BUILD
index 637f4e6..7a100d1 100644
--- a/src/main/python/apache/aurora/admin/BUILD
+++ b/src/main/python/apache/aurora/admin/BUILD
@@ -14,7 +14,7 @@
python_library(
name = 'host_maintenance',
- sources = 'host_maintenance.py',
+ sources = ['host_maintenance.py'],
dependencies = [
pants(':util'),
pants('3rdparty/python:twitter.common.log'),
@@ -26,7 +26,7 @@ python_library(
python_library(
name = 'util',
- sources = 'admin_util.py',
+ sources = ['admin_util.py'],
dependencies = [
pants('src/main/python/apache/aurora/client:base'),
]
{noformat}
Next error:
{noformat}
[WARNING:/Users/joe/Development/incubator-aurora/.pants.d/thrift/py-thrift/org/apache/aurora/gen/storage.thrift:18]
Could not find include file api.thrift
[ERROR:/Users/joe/Development/incubator-aurora/.pants.d/thrift/py-thrift/org/apache/aurora/gen/storage.thrift:29]
(last token was 'api.JobConfiguration')
Type "api.JobConfiguration" has not been defined.
thrift generation failed!
STDOUT
None
STDERR
None
Failed to run test!
Traceback (most recent call last):
File
"/Users/joe/Development/incubator-aurora/build-support/pants.pex/pants/backend/python/test_builder.py",
line 180, in _run_python_tests
builder = chroot.dump()
File
"/Users/joe/Development/incubator-aurora/build-support/pants.pex/pants/backend/python/python_chroot.py",
line 161, in dump
self.MEMOIZED_THRIFTS[thr] = self._generate_thrift_requirement(thr)
File
"/Users/joe/Development/incubator-aurora/build-support/pants.pex/pants/backend/python/python_chroot.py",
line 131, in _generate_thrift_requirement
return self._generate_requirement(library, PythonThriftBuilder)
File
"/Users/joe/Development/incubator-aurora/build-support/pants.pex/pants/backend/python/python_chroot.py",
line 123, in _generate_requirement
sdist = builder.build(interpreter=self._interpreter)
File
"/Users/joe/Development/incubator-aurora/build-support/pants.pex/pants/backend/python/code_generator.py",
line 95, in build
self.generate()
File
"/Users/joe/Development/incubator-aurora/build-support/pants.pex/pants/backend/python/thrift_builder.py",
line 123, in generate
self.run_thrifts()
File
"/Users/joe/Development/incubator-aurora/build-support/pants.pex/pants/backend/python/thrift_builder.py",
line 70, in run_thrifts
raise PythonThriftBuilder.CodeGenerationException("Could not generate .py
from %s!" % src)
CodeGenerationException: Could not generate .py from
/Users/joe/Development/incubator-aurora/.pants.d/thrift/py-thrift/org/apache/aurora/gen/storage.thrift!
{noformat}
> pants is broken
> ---------------
>
> Key: AURORA-529
> URL: https://issues.apache.org/jira/browse/AURORA-529
> Project: Aurora
> Issue Type: Bug
> Reporter: Joe Smith
> Assignee: Joe Smith
> Priority: Blocker
>
> {noformat}
> [tw-mbp13-jsmith aurora (master)]$ ./pants
> ./src/test/python/apache/aurora/admin:all
> Build operating on targets:
> OrderedSet([PythonTestSuite(src/test/python/apache/aurora/admin/BUILD:all)])
> Failed to run test!
> Traceback (most recent call last):
> File
> "/Users/jsmith/.pex/install/twitter.pants-0.0.23-py2-none-any.whl.acd44f4c0cf3576608ff18b2adafeff6f0b8f65f/twitter.pants-0.0.23-py2-none-any.whl/twitter/pants/python/test_builder.py",
> line 204, in _run_python_test
> builder = chroot.dump()
> File
> "/Users/jsmith/.pex/install/twitter.pants-0.0.23-py2-none-any.whl.acd44f4c0cf3576608ff18b2adafeff6f0b8f65f/twitter.pants-0.0.23-py2-none-any.whl/twitter/pants/python/python_chroot.py",
> line 201, in dump
> platforms=platforms)
> File
> "/Users/jsmith/.pex/install/twitter.pants-0.0.23-py2-none-any.whl.acd44f4c0cf3576608ff18b2adafeff6f0b8f65f/twitter.pants-0.0.23-py2-none-any.whl/twitter/pants/python/resolver.py",
> line 109, in resolve_multi
> platform=platform)
> File
> "/Users/jsmith/.pex/install/twitter.common.python-0.5.6-py2-none-any.whl.966710ef4887d077b27ee1d9cc3725372604d0ef/twitter.common.python-0.5.6-py2-none-any.whl/twitter/common/python/resolver.py",
> line 98, in resolve
> raise Unsatisfiable('Cannot satisfy requirements: %s' %
> requirement_set[requirement.key])
> Unsatisfiable: Cannot satisfy requirements:
> [PythonRequirement(coverage==3.6b1), Requirement.parse('coverage>=3.6')]
> src.test.python.apache.aurora.admin.host_maintenance
> ..... EXCEPTION
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)