You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Pavel Janík <Pa...@Janik.cz> on 2012/07/10 21:47:33 UTC

Re: svn commit: r1357306 - /incubator/ooo/trunk/main/solenv/bin/build.pl

Andre,

this particular change is incompatible with my build system. I do [meta-shell code]:

cd instsetoo_util; build --all --html

The trunk now does this:

build --all works as expected:

dmake:  Error code 2, while making 'all'

1 module(s):
        framework
need(s) to be rebuilt

Reason(s):
ERROR: error 65280 occurred while making /Users/pavel/BUILD/BuildDir/ooo_trunk_src/framework/prj
When you have fixed the errors in that module you can resume the build by running:

        build --all:framework

BUT:

build --all --html ignores build errors and packs instsets:

ERROR: File not found: smen-US.res
ERROR: File not found: svxen-US.res
ERROR: File not found: textconversiondlgsen-US.res
ERROR: File not found: services.rdb
... cleaning the output tree ...
... removing directory /var/folders/Lm/LmD3R9N-G681RwIIfVAMbE+++TI/-Tmp-/ooopackaging/i_422831341949313 ...
Tue Jul 10 21:41:55 2012 (00:02 min.)
dmake:  Error code 255, while making 'openoffice_en-US.archive'
Pavel-Janiks-MacBook-Pro:util pavel$

Reverting this change made it work again as expected.

On Jul 4, 2012, at 5:26 PM, af@apache.org wrote:

> Author: af
> Date: Wed Jul  4 15:26:40 2012
> New Revision: 1357306
> 
> URL: http://svn.apache.org/viewvc?rev=1357306&view=rev
> Log:
> Show output synchronously for build --html
> 
> Modified:
>    incubator/ooo/trunk/main/solenv/bin/build.pl
> 
> Modified: incubator/ooo/trunk/main/solenv/bin/build.pl
> URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/solenv/bin/build.pl?rev=1357306&r1=1357305&r2=1357306&view=diff
> ==============================================================================
> --- incubator/ooo/trunk/main/solenv/bin/build.pl (original)
> +++ incubator/ooo/trunk/main/solenv/bin/build.pl Wed Jul  4 15:26:40 2012
> @@ -2017,10 +2017,7 @@ sub run_job {
>         if (!-d $log_dir) {
>              system("$perl $mkout");
>         };
> -        $error_code = system ("$job_to_do > $log_file 2>&1");
> -        if (!$grab_output && -f $log_file) {
> -            system("cat $log_file");
> -        };
> +        $error_code = system ("$job_to_do 2>&1 | tee $log_file");
>     } else {
>         $error_code = system ("$job_to_do");
>     };
> 
> 

-- 
Pavel Janík




Re: svn commit: r1357306 - /incubator/ooo/trunk/main/solenv/bin/build.pl

Posted by Ariel Constenla-Haile <ar...@apache.org>.
On Sat, Aug 25, 2012 at 12:55:35PM -0300, Ariel Constenla-Haile wrote:
> > >> this particular change is incompatible with my build system. I do
> > >> [meta-shell code]:
> > > 
> > > I should have explained this change better (or at all).  It is only
> > > intended as a temporary hack to find out the reason for the build
> > > breaker of the 64bit Linux buildbot build.
> > 
> > is the problem already solved?  -- Pavel Janík
> 
> It is not solved. The main bug with it, is that now it hides where the
> build is breaking; I faced it yesterday on my own build, and now it can
> be seen in the Win build bot: the build continues regardless any error
> on any module, and breaks in instsetoo_native due to missing compiled
> stuff:
> 
> http://ci.apache.org/projects/openoffice/buildlogs/win/main/instsetoo_native/wntmsci12.pro/misc/logs/util.txt
> 
> Even worst, the build bot only reports an error when trying to copy the
> install sets generated in instsetoo_native
> http://ci.apache.org/builders/aoo-win7/builds/281/steps/MasterShellCommand_1/logs/stdio


The problem is that they system call now pipes the build command:

$error_code = system ("$job_to_do 2>&1 | tee $log_file");

and tee returns always 0, hiding the $job_to_do error code.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Re: svn commit: r1357306 - /incubator/ooo/trunk/main/solenv/bin/build.pl

Posted by Andre Fischer <aw...@gmail.com>.
On 25.08.2012 17:55, Ariel Constenla-Haile wrote:
> On Wed, Aug 15, 2012 at 08:52:17AM +0200, Pavel Janík wrote:
>> Hi Andre,
>>
>> On Jul 11, 2012, at 9:21 AM, Andre Fischer wrote:
>>
>>> On 10.07.2012 21:47, Pavel Janík wrote:
>>>> Andre,
>>>>
>>>> this particular change is incompatible with my build system. I do
>>>> [meta-shell code]:
>>>
>>> I should have explained this change better (or at all).  It is only
>>> intended as a temporary hack to find out the reason for the build
>>> breaker of the 64bit Linux buildbot build.
>>
>> is the problem already solved?  -- Pavel Janík
>
> It is not solved. The main bug with it, is that now it hides where the
> build is breaking; I faced it yesterday on my own build, and now it can
> be seen in the Win build bot: the build continues regardless any error
> on any module, and breaks in instsetoo_native due to missing compiled
> stuff:
>
> http://ci.apache.org/projects/openoffice/buildlogs/win/main/instsetoo_native/wntmsci12.pro/misc/logs/util.txt
>
> Even worst, the build bot only reports an error when trying to copy the
> install sets generated in instsetoo_native
> http://ci.apache.org/builders/aoo-win7/builds/281/steps/MasterShellCommand_1/logs/stdio
>
> IMHO we should revert this change, otherwise we have no idea where the
> build breaks.

It is still possible to see where the build breaks.  But it takes more 
than a quick look into the build overview.  This change makes it 
possible to see some build breakers at all (those that cause the build 
to hang: in such a case the buildbot terminates the build without 
writing any output for the module in which the hang occurs)

But I think I understand what you mean.  It is very inconvenient.

I have reverted my last change in build.pl.

-Andre


Re: svn commit: r1357306 - /incubator/ooo/trunk/main/solenv/bin/build.pl

Posted by Ariel Constenla-Haile <ar...@apache.org>.
On Wed, Aug 15, 2012 at 08:52:17AM +0200, Pavel Janík wrote:
> Hi Andre,
> 
> On Jul 11, 2012, at 9:21 AM, Andre Fischer wrote:
> 
> > On 10.07.2012 21:47, Pavel Janík wrote:
> >> Andre,
> >> 
> >> this particular change is incompatible with my build system. I do
> >> [meta-shell code]:
> > 
> > I should have explained this change better (or at all).  It is only
> > intended as a temporary hack to find out the reason for the build
> > breaker of the 64bit Linux buildbot build.
> 
> is the problem already solved?  -- Pavel Janík

It is not solved. The main bug with it, is that now it hides where the
build is breaking; I faced it yesterday on my own build, and now it can
be seen in the Win build bot: the build continues regardless any error
on any module, and breaks in instsetoo_native due to missing compiled
stuff:

http://ci.apache.org/projects/openoffice/buildlogs/win/main/instsetoo_native/wntmsci12.pro/misc/logs/util.txt

Even worst, the build bot only reports an error when trying to copy the
install sets generated in instsetoo_native
http://ci.apache.org/builders/aoo-win7/builds/281/steps/MasterShellCommand_1/logs/stdio

IMHO we should revert this change, otherwise we have no idea where the
build breaks.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Re: svn commit: r1357306 - /incubator/ooo/trunk/main/solenv/bin/build.pl

Posted by Pavel Janík <Pa...@Janik.cz>.
Hi Andre,

On Jul 11, 2012, at 9:21 AM, Andre Fischer wrote:

> On 10.07.2012 21:47, Pavel Janík wrote:
>> Andre,
>> 
>> this particular change is incompatible with my build system. I do [meta-shell code]:
> 
> I should have explained this change better (or at all).  It is only intended as a temporary hack to find out the reason for the build breaker of the 64bit Linux buildbot build.

is the problem already solved?
-- 
Pavel Janík




Re: svn commit: r1357306 - /incubator/ooo/trunk/main/solenv/bin/build.pl

Posted by Andre Fischer <af...@a-w-f.de>.
Hi Pavel,

On 10.07.2012 21:47, Pavel Janík wrote:
> Andre,
>
> this particular change is incompatible with my build system. I do [meta-shell code]:

I should have explained this change better (or at all).  It is only 
intended as a temporary hack to find out the reason for the build 
breaker of the 64bit Linux buildbot build.  That hangs when compiling 
Java code.  The buildbot eventually terminates the build (after 12000s) 
and without my change all output is lost.  With the change the output is 
available and I was able to locate the problem in the jurt module.  But 
I still have no clue why compiling a single Java file (after having 
compiled many already) could lead to a hang.

Having said that I have no problem with you reverting the change.  But 
it may be necessary to turn it back on for short times in the future to 
hunt down other buildbot problems.

>
> cd instsetoo_util; build --all --html
>
> The trunk now does this:
>
> build --all works as expected:
>
> dmake:  Error code 2, while making 'all'
>
> 1 module(s):
>          framework
> need(s) to be rebuilt
>
> Reason(s):
> ERROR: error 65280 occurred while making /Users/pavel/BUILD/BuildDir/ooo_trunk_src/framework/prj
> When you have fixed the errors in that module you can resume the build by running:
>
>          build --all:framework
>
> BUT:
>
> build --all --html ignores build errors and packs instsets:
>
> ERROR: File not found: smen-US.res
> ERROR: File not found: svxen-US.res
> ERROR: File not found: textconversiondlgsen-US.res
> ERROR: File not found: services.rdb
> ... cleaning the output tree ...
> ... removing directory /var/folders/Lm/LmD3R9N-G681RwIIfVAMbE+++TI/-Tmp-/ooopackaging/i_422831341949313 ...
> Tue Jul 10 21:41:55 2012 (00:02 min.)
> dmake:  Error code 255, while making 'openoffice_en-US.archive'
> Pavel-Janiks-MacBook-Pro:util pavel$
>

I am not quite sure that I understand the problem.  Without the --html 
switch you have one error (in framework), with the --html switch you 
have another (later in instsetoo_native).

> Reverting this change made it work again as expected.

Does that mean that it breaks in framework or that it builds without error?

It is strange in any case that the change should have that effect.  But 
then again, in build.pl the processing of all the switches (I counted 
33) is interwoven and hard to separate.

-Andre

>
> On Jul 4, 2012, at 5:26 PM, af@apache.org wrote:
>
>> Author: af
>> Date: Wed Jul  4 15:26:40 2012
>> New Revision: 1357306
>>
>> URL: http://svn.apache.org/viewvc?rev=1357306&view=rev
>> Log:
>> Show output synchronously for build --html
>>
>> Modified:
>>     incubator/ooo/trunk/main/solenv/bin/build.pl
>>
>> Modified: incubator/ooo/trunk/main/solenv/bin/build.pl
>> URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/solenv/bin/build.pl?rev=1357306&r1=1357305&r2=1357306&view=diff
>> ==============================================================================
>> --- incubator/ooo/trunk/main/solenv/bin/build.pl (original)
>> +++ incubator/ooo/trunk/main/solenv/bin/build.pl Wed Jul  4 15:26:40 2012
>> @@ -2017,10 +2017,7 @@ sub run_job {
>>          if (!-d $log_dir) {
>>               system("$perl $mkout");
>>          };
>> -        $error_code = system ("$job_to_do > $log_file 2>&1");
>> -        if (!$grab_output && -f $log_file) {
>> -            system("cat $log_file");
>> -        };
>> +        $error_code = system ("$job_to_do 2>&1 | tee $log_file");
>>      } else {
>>          $error_code = system ("$job_to_do");
>>      };
>>
>>
>