Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attach_source default causing problems on buck master #1

Open
bootstraponline opened this issue Mar 20, 2014 · 6 comments
Open

attach_source default causing problems on buck master #1

bootstraponline opened this issue Mar 20, 2014 · 6 comments

Comments

@bootstraponline
Copy link

I had to set the attach_source to False in maven_jar.bucket, otherwise a bunch of these errors appear:

Caused by: java.util.concurrent.ExecutionException: java.io.FileNotFoundException: /training/modules/source/java_ios_2/buck-out/gen/lib/selenium/selenium-remote-driver/selenium-remote-driver-2.40.0-src.jar (No such file or directory)
at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:135)
at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2344)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2316)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2193)
at com.google.common.cache.LocalCache.get(LocalCache.java:3932)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3936)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4806)
at com.facebook.buck.util.DefaultFileHashCache.get(DefaultFileHashCache.java:74)
... 16 more

On an older buck version, I didn't see this issue.

@davcamer
Copy link

I just tried maven_jar as well. I get similar errors to the above, and then that executor runs forever. I have one that is sitting at 890s to download 'guava-16.0-src.jar'.

Same jar takes 0.3s after changing the attach_source default to False.

@davido
Copy link
Owner

davido commented May 31, 2014

Just to make sure: This repository was moved to gerrit-review [1]. Have you cloned it from there?

[1] git clone https://gerrit.googlesource.com/bucklets

@davido
Copy link
Owner

davido commented May 31, 2014

Added Warning to README and link to the right repository.

@davido
Copy link
Owner

davido commented May 31, 2014

Updated the Github repo with newest version: remove usage of genfile() as this is considered to be deprecated and going to be removed. PTAL.

@davcamer
Copy link

Thanks for the tip! Several blogs from around the time Gerrit's build process was switched to Buck point to this repo.

I tried the bucklets from the Gerrit repo, and that worked correctly.

Thank you for updating this repo as well. I tried the latest version from here, and it also worked correctly. Actually, it completed even a little bit more quickly (0.9s vs 3.0s), but that could be because of some caching I don't know about.

Any thoughts on which version is best to use for the future?

@davido
Copy link
Owner

davido commented May 31, 2014

I will keep this repo in sync with gerrit. And i think it's easy for hte folks report here issues. So i suggest to use this one. I am going to add even more bucklets like gwt_module() , gerrit_plugin() and set up Wiki with documentation and examples. Don't hesitate to help ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants