Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tracecompass-dev] Question about building TC with maven

Hi Yang,

Sounds like SWTBot is running. I have a basic question though, are you trying to build a package to share or are you developing at the moment. If you're planning on sharing, it may be easier to push the patch to Gerrit and let our CI handle that, as well as developing in eclipse so errors are shown. Let's say you're working on a package, the UI tests can be sensitive to current mouse movements and whatnot, so you need to leave your computer along for the time needed. 

try mvn clean install -DskipTests=true

with head also.

From: tracecompass-dev-bounces@xxxxxxxxxxx <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Sent: Tuesday, March 31, 2020 11:40 AM
To: tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Subject: Re: [tracecompass-dev] Question about building TC with maven
 

Hello Matthew, 


Thanks a lot for the explanation, I switch to the HEAD branch and try build again, and here's what I experenced:


1.  The first time I build with "mvn install", TC was lunched during the build process, and a sequence graph is displayed. 

      I tried to import some common trace to test the program, and after a (mis)click the build process is triggered to continue,

     Then the UI is flashing fast from example to example, from the console I see the builder is going through the test modules.

     I shut down the program when it was blocked at some example again

2. I tried to build again with "mvn clean install -Dmaven-skip-test=true", now the UI is launched after a while, and it still goes 

     through some test modules, and the build process quit after encountering an error, the output of this time is attached.


I wonder if it's necessary to do certain interactions with the UI when building the test modules? 

Neither time can I successfully import any supported trace data (CTF / systrace / JSONtrace) during and after the build. 

With what could I confirm the build is successful?


Best regards,

Yang


From: tracecompass-dev-bounces@xxxxxxxxxxx <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Sent: Tuesday, March 31, 2020 3:59 PM
To: tracecompass developer discussions
Subject: Re: [tracecompass-dev] Question about building TC with maven
 
Hello Yang,

I went through the history of the file, and have found this patch. 

"Bug 560477: state system: Serialize unknown state types as strings

If a state object is not one of the known object types (Null, Long, Int,
Double, String, or CustomStateValue) then an IllegalArgumentException
was thrown. For example, when using an XML analysis with a CTF trace
which has an event field of type CtfEnumPair and this CtfEnumPair is
used as state value of an attribute, then such an exception would be
created.

This patch will convert the state value to a string, if the value object
is not one of the known types."

Could you try working on git head? it may have solved the issue?

BR
Matthew

From: tracecompass-dev-bounces@xxxxxxxxxxx <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Sent: Tuesday, March 31, 2020 9:55 AM
To: tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Subject: Re: [tracecompass-dev] Question about building TC with maven
 
Hello Yang,

I am looking at the build log output, and there appear to be no illegalstateexceptions at the line your log has shown. What version of trace compass are you developping on? The build message did help a lot by the way, thanks!

BR,
Matthew Khouzam

From: tracecompass-dev-bounces@xxxxxxxxxxx <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Sent: Tuesday, March 31, 2020 9:29 AM
To: tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Subject: Re: [tracecompass-dev] Question about building TC with maven
 

​The entire output from build is attached with this email, thanks.


Yang Zhou
Kungliga Tekniska högskolan | KTH Royal Institute of Technology
Master i datalogi | Master of Computer Science
Email (preferred): zhy@xxxxxx
Tel: +46 073 846 48 96 

From: tracecompass-dev-bounces@xxxxxxxxxxx <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Sent: Tuesday, March 31, 2020 3:27 PM
To: tracecompass-dev@xxxxxxxxxxx
Subject: [tracecompass-dev] Question about building TC with maven
 

Hi​ all,


I'm a new comer trying to extend TC to support customized trace format, however I meet some errors while building TC from source.

I cloned the repo and switch to branch stable-5.2.0, then build the project with "mvn install" (I've also tried to configure args to skip testing modules) following the README text.


The building process is blocked by "failing to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.3.0:test", all the latter modules are skipped. 


    

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Trace Compass Parent ............................... SUCCESS [  1.657 s]
[INFO] Trace Compass Tracetype-agnostic Analyses Parent ... SUCCESS [  0.078 s]
[INFO] Trace Compass Common Utilities Parent .............. SUCCESS [  0.014 s]
[INFO] org.eclipse.tracecompass.common.core ............... SUCCESS [  1.508 s]
[INFO] Trace Compass State System Parent .................. SUCCESS [  0.027 s]
[INFO] org.eclipse.tracecompass.datastore.core ............ SUCCESS [  0.359 s]
[INFO] org.eclipse.tracecompass.segmentstore.core ......... SUCCESS [  0.274 s]
[INFO] org.eclipse.tracecompass.statesystem.core .......... SUCCESS [  0.347 s]
[INFO] Trace Compass TMF Parent ........................... SUCCESS [  0.146 s]
[INFO] Trace Compass Filter Parser ........................ SUCCESS [  0.181 s]
[INFO] org.eclipse.tracecompass.tmf.core .................. SUCCESS [  1.140 s]
[INFO] org.eclipse.tracecompass.analysis.counters.core .... SUCCESS [  0.875 s]
[INFO] Trace Compass CTF Support Parent ................... SUCCESS [  0.070 s]
[INFO] Trace Compass CTF Parser Plug-in ................... SUCCESS [  0.209 s]
[INFO] org.eclipse.tracecompass.ctf.core .................. SUCCESS [  0.445 s]
[INFO] Trace Compass CTF Core Tests Plug-in ............... SUCCESS [ 20.490 s]
[INFO] org.eclipse.tracecompass.statesystem.core.tests .... FAILURE [  6.628 s]
[INFO] org.eclipse.tracecompass.tmf.core.tests ............ SKIPPED
[INFO] org.eclipse.tracecompass.tmf.ctf.core .............. SKIPPED
[INFO] org.eclipse.tracecompass.tmf.ctf.core.tests ........ SKIPPED
[INFO] org.eclipse.tracecompass.analysis.counters.core.tests SKIPPED
....
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.3.0:test (default-test) on project org.eclipse.tracecompass.statesystem.core.tests: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/zy/projects/org.eclipse.tracecompass/statesystem/org.eclipse.tracecompass.statesystem.core.tests/target/surefire-reports for the individual test results.

The tools using are jdk1.8.0 and Maven version 3.3.9, and I have only jdk8 installed, so I wonder if I miss any dependencies before building the project.


Thank you in advance!


Yang Zhou
Kungliga Tekniska högskolan | KTH Royal Institute of Technology
Master i datalogi | Master of Computer Science
Email (preferred): zhy@xxxxxx
Tel: +46 073 846 48 96 

Back to the top