Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Buck based build system for JGit?

On Sat, Nov 2, 2013 at 5:20 AM, Shawn Pearce <spearce@xxxxxxxxxxx> wrote:
On Fri, Nov 1, 2013 at 4:45 AM, Shawn Pearce <spearce@xxxxxxxxxxx> wrote:
> On Fri, Oct 18, 2013 at 5:01 AM, Shawn Pearce <spearce@xxxxxxxxxxx> wrote:
>> Its official, I have lost motivation to work on JGit because working
>> on JGit means using Maven. I don't want to use Maven.
>>
>> Is there interest in having a parallel build system using Buck? I
>> realize we cannot eliminate Maven as easily in JGit because we need to
>> create P2 bundles, and Tycho helps out a lot there.
>
> First draft at the Buck build is here:
>
>   https://git.eclipse.org/r/17955
>
> I am about to get on a long flight and will continue working on it in
> the air. Look for at least one more draft in the next few days. :-)

After a long flight, I think the first version of Buck support is
ready. The final commit in the series is:

  https://git.eclipse.org/r/17995

Please fetch and test. Build produces JARs, JUnit tests run and pass,
and an Eclipse uber-project can be generated.

is there a way to debug a test run by buck ? On my Mac I get the following
test failure which I'd like to debug (when run using Maven or Eclipse it doesn't fail),
I tried to debug

export BUCK_DEBUG_MODE="yes"

and attached the debugger on port 8888 with a breakpoint on the first line of the failing test
but it seems the test doesn't run in the process attached to the debugger.

FAILURE testEncode_Unicode: array lengths differed, expected.length=12 actual.length=20
java.lang.AssertionError: array lengths differed, expected.length=12 actual.length=20
at org.junit.Assert.fail(Assert.java:88)
at org.junit.internal.ComparisonCriteria.assertArraysAreSameLength(ComparisonCriteria.java:71)
at org.junit.internal.ComparisonCriteria.arrayEquals(ComparisonCriteria.java:32)
at org.junit.Assert.internalArrayEquals(Assert.java:473)
at org.junit.Assert.assertArrayEquals(Assert.java:294)
at org.junit.Assert.assertArrayEquals(Assert.java:305)
at org.eclipse.jgit.lib.ConstantsEncodingTest.testEncode_Unicode(ConstantsEncodingTest.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.junit.runners.Suite.runChild(Suite.java:127)
at org.junit.runners.Suite.runChild(Suite.java:26)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
at com.facebook.buck.junit.JUnitRunner.run(JUnitRunner.java:92)
at com.facebook.buck.junit.JUnitRunner.main(JUnitRunner.java:250) 

how can I invoke the build for OSGi bundles using https://git.eclipse.org/r/#/c/17995 ?

--
Matthias

Back to the top