You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafodion.apache.org by Song Hao-Lin <ha...@esgyn.cn> on 2019/03/06 08:39:08 UTC

Add a scripts to make trafodion build easily and visualized

Hi all
 
There are several unpleasant places when compiling the trafodion(not make package): * We need to redirect the make information manually,
otherwise the information will flood the screen * The build information mixed together so that we couldn't locate the build error quickly * We need to make all again when we fix a building error of one component.
So I write a script which could write the compiling information into build_log file based on different components。 Also you can continue to compile the remaining components which havn't been compiled by commented components which have finished compiled.

1、Stop compiling after failure


2、Write logs based on components


3、 build success


You just need to execute cmd
source env.sh
./build_easily.sh

There is No duplicate compilation because I have clear up the module dependencies.

Comments and thoughts are welcome!Here is the Pr url:
​​​​​​​https://github.com/apache/trafodion/pull/1810

Best,
Haolin

Re: Add a scripts to make trafodion build easily and visualized

Posted by He Zhenxing <zh...@esgyn.cn>.
Wow, fantastic!

But I am wondering why not just put this in the top Makefile, so that we 
can still use make to build all or individual components.

Can't wait to use this feature.

Thanks for the work!

在 2019/3/6 下午4:39, Song Hao-Lin 写道:
>
> Hi all
>
> There are several unpleasant places when compiling the trafodion(not 
> make package):
>
>  1. We need to redirect the make information manually,
>     otherwise the information will flood the screen
>  2. The build information mixed together so that we couldn't locate
>     the build error quickly
>  3. We need to make all again when we fix a building error of one
>     component.
>
> So I write a script which could write the compiling information into 
> build_log file based on different components。 Also you can continue to 
> compile the remaining components which havn't been compiled by 
> commented components which have finished compiled.
>
> 1、Stop compiling after failure
>
>
> 2、Write logs based on components
>
>
> 3、 build success
>
>
> You just need to execute cmd
> source env.sh
> ./build_easily.sh
>
> There is No duplicate compilation because I have clear up the module 
> dependencies.
>
> Comments and thoughts are welcome!Here is the Pr url:
> ​​​​​​​https://github.com/apache/trafodion/pull/1810
>
> Best,
> Haolin 

RE: Add a scripts to make trafodion build easily and visualized

Posted by Roberta Marton <ro...@esgyn.com>.
+1  this looks good.

    Roberta

-----Original Message-----
From: Wang Xiao-Zhong [mailto:xiaozhong.wang@esgyn.cn] 
Sent: Wednesday, March 6, 2019 4:43 AM
To: dev@trafodion.apache.org
Subject: Re: Add a scripts to make trafodion build easily and visualized


Very perfect!
I have additional idea, you can add a check script and called by your script, and is some env not ready, you can call the install/traf_checkset_env.sh to prepare the env.

On 星期三, 三月 06, 2019 16:39 CST, "Song Hao-Lin" <ha...@esgyn.cn> 撰寫:
  
Hi all
 
There are several unpleasant places when compiling the trafodion(not make package): * We need to redirect the make information manually,
otherwise the information will flood the screen * The build information mixed together so that we couldn't locate the build error quickly * We need to make all again when we fix a building error of one component.
So I write a script which could write the compiling information into build_log file based on different components。 Also you can continue to compile the remaining components which havn't been compiled by commented components which have finished compiled.

1、Stop compiling after failure


2、Write logs based on components


3、 build success


You just need to execute cmd
source env.sh
./build_easily.sh

There is No duplicate compilation because I have clear up the module dependencies.

Comments and thoughts are welcome!Here is the Pr url:
https://github.com/apache/trafodion/pull/1810

Best,
Haolin


 

Re: Add a scripts to make trafodion build easily and visualized

Posted by Wang Xiao-Zhong <xi...@esgyn.cn>.
Very perfect!
I have additional idea, you can add a check script and called by your script, and is some env not ready, you can call the install/traf_checkset_env.sh to prepare the env.

On 星期三, 三月 06, 2019 16:39 CST, "Song Hao-Lin" <ha...@esgyn.cn> 撰寫:
  
Hi all
 
There are several unpleasant places when compiling the trafodion(not make package): * We need to redirect the make information manually,
otherwise the information will flood the screen * The build information mixed together so that we couldn't locate the build error quickly * We need to make all again when we fix a building error of one component.
So I write a script which could write the compiling information into build_log file based on different components。 Also you can continue to compile the remaining components which havn't been compiled by commented components which have finished compiled.

1、Stop compiling after failure


2、Write logs based on components


3、 build success


You just need to execute cmd
source env.sh
./build_easily.sh

There is No duplicate compilation because I have clear up the module dependencies.

Comments and thoughts are welcome!Here is the Pr url:
https://github.com/apache/trafodion/pull/1810

Best,
Haolin