[ 
https://issues.apache.org/jira/browse/AURORA-1980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16396321#comment-16396321
 ] 

John Sirois commented on AURORA-1980:
-------------------------------------

As a quick hack, the following _should_ work:
{noformat}
jsirois@gill ~/dev/apache/jsirois-aurora (master *) $ git diff
diff --git a/pants.ini b/pants.ini
index 8c71b1446..2bf22011c 100644
--- a/pants.ini
+++ b/pants.ini
@@ -12,7 +12,7 @@
# limitations under the License.

[GLOBAL]
-pants_version: 1.4.0.dev23
+pants_version: 1.4.0

plugins: [
'pantsbuild.pants.contrib.python.checks==%(pants_version)s',
{noformat}

The why is that 
{{/home/user/aurora/.pants.d/build_invalidator/7/pants_backend_python_tasks2_gather_sources_GatherSources/.pants.d.gen.thrift-py.252d64521cf9.api.src.main.thrift.org.apache.aurora.gen._storage.current.api.src.main.thrift.org.apache.aurora.gen._storage.hash}}
 is exactly 255 characters and I'm guessing the filesystem max is 254. In the 
1.4.0 final release, the 
{{pants_backend_python_tasks2_gather_sources_GatherSources}} class was renamed 
to {{pants_backend_python_tasks_gather_sources_GatherSources}} ... gaining back 
a single character :/. Medium-term, I've filed this issue to track a fix: 
https://github.com/pantsbuild/pants/issues/5587

> Integration tests fail with a pants exception: File name too long
> -----------------------------------------------------------------
>
>                 Key: AURORA-1980
>                 URL: https://issues.apache.org/jira/browse/AURORA-1980
>             Project: Aurora
>          Issue Type: Bug
>            Reporter: Renan DelValle
>            Priority: Major
>
> When running the integration tests the following error happens:
> {noformat}
>    Executing tasks in goals: gen -> pyprep -> test
> 17:13:42 00:01   [gen]
> 17:13:42 00:01     [thrift-py]
> 17:13:42 00:01       [cache]    
>                    No cached artifacts for 4 targets.
>                    Invalidated 4 targets.....
> 17:13:42 00:01   [pyprep]
> 17:13:42 00:01     [interpreter]
> 17:13:46 00:05     [requirements]
> 17:13:46 00:05       [cache]                                     
>                    No cached artifacts for 37 targets.
>                    Invalidated 37 targets.
> 17:14:06 00:25     [sources]
>                Waiting for background workers to finish.
> 17:14:06 00:25   [complete]
>                FAILURE
> Exception caught: (<type 'exceptions.IOError'>)
>  
> Exception message: [Errno 36] File name too long: 
> u'/home/user/aurora/.pants.d/build_invalidator/7/pants_backend_python_tasks2_gather_sources_GatherSources/.pants.d.gen.thrift-py.252d64521cf9.api.src.main.thrift.org.apache.aurora.gen._storage.current.api.src.main.thrift.org.apache.aurora.gen._storage.hash'{noformat}
>  
>        



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to