--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Wed, May 1, 2013 at 8:23 AM, Dariusz Luksza <dariusz...@gmail.com> wrote:
> I've same error 'invalid entry compressed size'
>
> On Wed, May 1, 2013 at 5:03 PM, Dave Borowitz <dbor...@google.com> wrote:
>> $ buck build :api
>> BUILDING //:api
>> Created JAR at buck-out/gen/lib/antlr/antlr-tool.jar
>> Created JAR at buck-out/gen//extension-api.jar
>> java.util.zip.ZipException: invalid entry compressed size (expected 4271 but
>> got 4275 bytes)
*sigh*
I forgot the :api targets use java_binary(). There is a bug fix you
need in Buck:
https://github.com/spearce/buck/commit/5fd88c68bd4ba4f0ca65336b5a150ad8f30db45b
Just to make it clear: are you going to release 2.6 final with buck?
I considered this because the build actually works. But I have to
rebase a number of things over, and the gwtexpui package doesn't exist
in the stable-2.6 branch. So I have also been considering abandoning
the 2.6 rc series and starting 2.7... :-(
Just tried the buck build. After a short time nothing moves, no CPU activity [1]
There are quite some Compiler processes [2].And each of them is dead-locked. The thread dump shows the following dead-lock for all of them [3].
Anybody else seeing the same issue?Any idea?
On Thu, May 2, 2013 at 2:11 PM, Saša Živkov <ziv...@gmail.com> wrote:
Just tried the buck build. After a short time nothing moves, no CPU activity [1]
There are quite some Compiler processes [2].And each of them is dead-locked. The thread dump shows the following dead-lock for all of them [3].
Anybody else seeing the same issue?Any idea?Update: after stopping the buck build :gerrit with CTRL-C all the compiler processeshad to be killed manually.Running the buck build :gerrit again resulted in a successful build:[d038025 ~/dev/gerrit ((8e7b5e1...) *)]$ buck build :gerritBUILDING //:gerritBUILD SUCCESSFUL
On Thu, May 2, 2013 at 2:18 PM, Saša Živkov <ziv...@gmail.com> wrote:
On Thu, May 2, 2013 at 2:11 PM, Saša Živkov <ziv...@gmail.com> wrote:
Just tried the buck build. After a short time nothing moves, no CPU activity [1]
There are quite some Compiler processes [2].And each of them is dead-locked. The thread dump shows the following dead-lock for all of them [3].
Anybody else seeing the same issue?Any idea?Update: after stopping the buck build :gerrit with CTRL-C all the compiler processeshad to be killed manually.Running the buck build :gerrit again resulted in a successful build:[d038025 ~/dev/gerrit ((8e7b5e1...) *)]$ buck build :gerritBUILDING //:gerritBUILD SUCCESSFULUpdate 2: the dead-lock problem is there again. It happens more often than the successful build :-(The only new thing I discovered is that when the dead-lock happens there is only one Compiler process.The 10 dead-locked Compiler processes I initially reported are probably remains of the previous buck builds.
On Thu, May 2, 2013 at 2:18 PM, Saša Živkov <ziv...@gmail.com> wrote:
On Thu, May 2, 2013 at 2:11 PM, Saša Živkov <ziv...@gmail.com> wrote:
Just tried the buck build. After a short time nothing moves, no CPU activity [1]
There are quite some Compiler processes [2].And each of them is dead-locked. The thread dump shows the following dead-lock for all of them [3].
Anybody else seeing the same issue?Any idea?Update: after stopping the buck build :gerrit with CTRL-C all the compiler processeshad to be killed manually.Running the buck build :gerrit again resulted in a successful build:[d038025 ~/dev/gerrit ((8e7b5e1...) *)]$ buck build :gerritBUILDING //:gerritBUILD SUCCESSFULUpdate 2: the dead-lock problem is there again. It happens more often than the successful build :-(The only new thing I discovered is that when the dead-lock happens there is only one Compiler process.The 10 dead-locked Compiler processes I initially reported are probably remains of the previous buck builds.
On Fri, May 3, 2013 at 1:46 AM, Saša Živkov <ziv...@gmail.com> wrote:
>>>> Just tried the buck build. After a short time nothing moves, no CPU
>>>> activity [1]
>>>> There are quite some Compiler processes [2].
>>>> And each of them is dead-locked. The thread dump shows the following
>>>> dead-lock for all of them [3].
...
> Update 3: after installing JDK-7 and uninstalling JDK-6 buck build works
> well!
> Platform: OSX Lion.
http://facebook.github.io/buck/setup/install.html indicates the
requirements are:
* Oracle JDK 7
* Ant
* Python 2.7
* Git
It seems to be OK with Python 2.6.5,
While I appreciate all the hard work that's gone into trying to make this work,I think there's a couple of fatal flaws with Buck that make it untenable as abuild system:- In a couple of days of fighting this, I've just now managed to get a workingbuild using OpenJDK7. This may be operator error, but one should never spendthis long using their *build tool*. By comparison, I can do a full release build of
Gerrit (`mvn clean install -e -Dgerrit.include-documentation=true -P all`) in lessthan 5 minutes (still <10m if I delete my entire .m2/repository too).
- Introducing a new build tool breaks existing integration setups that build Gerrit.Depending on a company's policies, this may or may not be easy to deal with.For me, it means I'll have to adjust a bunch of Jenkins jobs (can't use the mavenplugin), as well as package Buck for Ubuntu.- We're implicitly raising the requirements for building to (Oracle|Open) JDK 7.Currently, everything Just Works with the JDK 6 too. This is not a problem forme, and I don't know of anyone who's said it'd be a problem, but I don't know ifit's been sufficiently highlighted.I realize we're having some issues with Maven, but for me the comfort of stickingwith Maven (coupled with ways to improve its result or speed it up) just outweighthe trouble of dealing with Buck. It's certainly an interesting tool (and the buildtimes are impressive, once you get them), but I'm just not sure if it's the tool forGerrit.
I'm surprised to find the changes about the Buck build beeing abandoned.
I was keeping silence about the Buck build so far, basically because being on Windows
I couldn't try it out.
I do see the issues with Maven that Shawn described very well and I find it painful to work
with Maven especially if we talk about doing release builds.
It's painful, but not yet as painful that I would invest a lot of my own time to switch to
another build tool.
Still any work which would improve the current situation would be very welcome to me,
even if it would mean that I have to abandon Windows ;-)
So I find it a pity to see that the Buck build is given up now.
Thanks for summarizing this! I think this is really the right way forward. Buck looks exciting and we should really give it a serious try.
Shawn, your efforts with setting this up are really appreciated! Getting the build right is always an ungrateful task, but in the end everybody benefits from it!
So I refreshed the Buck change
https://gerrit-review.googlesource.com/45110 with my latest revision.
I have an Eclipse project generator working and producing an
environment in Eclipse I can run a debug init or daemon out of. This
gives the pgm_debug equivalent using precompiled JS and not the GWT
debugger. See the commit message for setup instructions.
Next up is to work on the GWT debug case from Eclipse, but I think
that is solvable so I don't think its going to derail anything.
There are 26 compile errors in WrappedContext. This is a particularly
painful class for me. It highlights the strength of BUCK at being able
to compile the class with servlet API 2.5 while using it in a 3.0
container, but the way this is setup in Eclipse as a single project
prevents Eclipse from having the correct compile time classpath here.
One would argue Gerrit should only use a single servlet API version
consistently throughout our source code, which at this point in time
would be servlet 3.0. Except my internal build for gerrit-review links
against a 2.5 container and can't compile with a 3.0 API. Except I
don't use plugins there, and this class exists only for plugins, so I
shouldn't have to build it. Except its somewhat tangled with some
other code I do compile so *sigh*. This single damn class surfaces
almost anything that could go wrong for me.
The Maven dependency bit is just a script to download some jar from some URL, it could be easily adapted to fetching any kind of dependency.
Tests are fixed.
$ buck --version
buck version c4df74bef4e101a7e5d0176831825b7946ea64a3
$ python --version
Python 2.7
$ git log -1 --format="%H"
7eef8edcba77058e4112c87b2d220517265b412d
$ echo $http_proxy
http://proxy.global.sonyericsson.net:8080
$ buck build eclipse
BUILDING //tools/eclipse:eclipse
http://repo1.maven.org/maven2/org/bouncycastle/bcprov-jdk16/1.44/bcprov-jdk16-1.44.jar:
expected 6327a5f7a3dc45e0fd735adb5d08c5a74c05c20c
received de6b5225831762a91db5ec6b5d577a57ca90b450
ov-jdk16-1.44.jar-6327a5f7a3dc45e0fd735adb5d08c5a74c05c20c
http://repo1.maven.org/maven2/org/apache/velocity/velocity/1.6.4/velocity-1.6.4.jar:
expected fcc58693dd8fc83d714fba149789be37cc19b66d
received 4af239e975010e59e704aadc61874e8249ebd436
city-1.6.4.jar-fcc58693dd8fc83d714fba149789be37cc19b66d
BUILD FAILED: com.facebook.buck.step.StepFailedException: Failed with 1: SRCS= OUT=/home/CORPUSERS/28850272/gerrit-code/google-gerrit/gerrit/buck-out/gen/lib/bouncycastle/bcprov/bcprov-jdk16-1.44.jar DEPS= SRCDIR=/home/CORPUSERS/28850272/gerrit-code/google-gerrit/gerrit/buck-out/gen/lib/bouncycastle/bcprov__download_bin__srcs TMP=/home/CORPUSERS/28850272/gerrit-code/google-gerrit/gerrit/buck-out/gen/lib/bouncycastle/bcprov__download_bin__tmp /bin/bash -ec 'PYTHONPATH= python /home/CORPUSERS/28850272/gerrit-code/google-gerrit/gerrit/tools/download_jar.py -o $OUT -u MAVEN_CENTRAL:/org/bouncycastle/bcprov-jdk16/1.44/bcprov-jdk16-1.44.jar -v 6327a5f7a3dc45e0fd735adb5d08c5a74c05c20c'
any hint?
Thanks!
/Bruce
--
--
I find some error when run on v2.7-rc1-348-gace391b
$ buck build download_sources
BUILDING //:download_sources
BUILD FAILED: No rule found when resolving target //lib/codemirror:codemirror__download_src in build file //lib/codemirror/BUCK
BUILD FAILED: //:download_sources failed on step "genrule: PYTHONPATH= python /home/CORPUSERS/28850272/gerrit-code/google-gerrit/gerrit/tools/download_all.py --src" with exit code 1
update lib/codemirror/BUCK by adding below genrule can fix it, but I think it is not a right patch here
There are a couple of things to be aware of with the buck build on latest master.
1. Buck now requires Java 7 [1] and the build will fail if not installed.
2. Buck will try to update itself to the required revision, but this will fail if the default remote is not Shawn’s fork at googlesource.com [2], i.e. if you have originally cloned buck from github and then added googlesource as an additional remote. Get around this by removing and re-cloning the repository from googlesource, or applying this patch that I have submitted [3] that changes `git fetch` to `git fetch --all`.
[1] https://github.com/facebook/buck/commit/952ceec8018f35ef0f47c130ea9c8c0308eca215
[2] https://gerrit.googlesource.com/buck.git
[3] https://github.com/facebook/buck/pull/32