Missing Log Lines

Hi Support Team,

I recently updated from ContinuaCI 1.7.1 to 1.8.0.176. After that our builds start to suffer from log output lines.

Let me explain what I do in my build:
- the ContinuaBuild executes a FinalBuilder 7 project, where for about 30 times the ‘Build Delphi’ Action is invoked for different Delphi projects
- under ‘Runtime’ / ‘Logging Properties’ I specify to ‘Log to Variable’ “CompilerOutput”
- after that I have a ‘Text Find / Replace’ Action to ‘Search in variable contents’ “CompilerOutput” with the search string "(\d+) lines, (.) seconds, (\d+) bytes code, (\d+) bytes data" (without quotes). The ‘OnMatchGroup’ Script Event has the following JavaScript:

                switch (GroupIndex)
                {
                  case 1: CompiledLines = Text; break;
                  case 2: /
boring duration / break;
                  case 3: CompiledCode = Text; break;
                  case 4: CompiledData = Text; break;
                }

Before updating ContinuaCI every compile had log lines like the following:

                Running Delphi compiler…
                                                        Using Command Line :  /B “C:\ContinuaCI\Agent\Ws\10109…\MyProject.dpr” /Q
                                                        Borland Delphi for Win32 compiler version 18.0
                                                        Copyright © 1983,2005 Borland Software Corporation
                                                        35369 lines, 0.52 seconds, 653768 bytes code, 25112 bytes data.

                                            Extract LinesOfCode from [ CompilerOutput ]
                                                Expression to Match is : (\d+) lines, (.
) seconds, (\d+) bytes code, (\d+) bytes data
                                                Match took :0
                                                Found 1 match.
                                                Found 1 matches
                                                
With the info stored in the three variables via ‘OnMatchGroup’ I could add the following line to an ‘overview’ file:

    MyProject.exe (Delphi 2010 — 35,369 LOC > 653,768 code bytes + 25,112 data bytes )

After updating to 1.8.0 it repeatedly happens that accidentally one or two of the compiles have log output like the following:

Running Delphi compiler…
                                                        Using Command Line :  /B “C:\ContinuaCI\Agent\Ws\10109…\MyProject.dpr” /Q
                                            Extract LinesOfCode from [ CompilerOutput ]
                                                Expression to Match is : (\d+) lines, (.*) seconds, (\d+) bytes code, (\d+) bytes data
                                                Match took :0
                                                No matches were found.
                                                Found 0 matches
                                                
Here some lines starting “Borland Delphi for Win32 compiler version 18.0” are missing even if the compile was started and executed successfully. Therefore my overview file contains one or two lines like the following:

    MyProject.exe (Delphi 2010 — 0 LOC > 0 code bytes + 0 data bytes )

Any time I start the build some Delphi compiler outputs are missing and any time other projects are affected: In one build I miss the lines for project 4 and 23, the next build I miss project 15 and another one I miss 12 and 25 (for example).

Best regards
Michael
      

Do you see the same thing if the FinalBuilder project is run from FinalBuilder without Continua CI. I cannot see a reason for this to happen. My suggestion would be to add an Export Log to html action to the finalbuilder project - add it as a report in Continua CI so you can view it easily, that will give us an indication if the problem is in FinalBuilder or Continua CI. You didn’t say which build of FinalBuilder 7 you are using, but you should use the latest build if possible.

Just looking at your output, I see Delphi compiler version 18 (Delphi 2007) and later I see D2010 - are you perhaps using the wrong version of Delphi?

This blog post explains how to add reports to Continua CI :

https://www.finalbuilder.com/resources/blogs/postid/701/adding-custom-reports-to-continua-ci-build-results

Hi Vincent,

I use the most recent version of FinalBuilder 7 (3486). Also I already use to add a HTML report to the ContinuaCI Reports Tab Card.

The FinalBuilder Project compiles 63 Delphi projects with 4 (5) different Delphi versions (Delphi 6, 2006, 2010 and XE 7 32 Bit and XE 7 64 Bit) and one C# Solution - the log file is huge;-)
       
I have attached the two most recent logs grabbed from the ContinuaCI-Server-Workspace folder. In log 10112 search for ‘Backup’. 27 lines later is the log line from Delphi Compile (“Build Delphi”). You see there is no compiler output. The other compile is for ‘AIMOS_PD_Converter’.

The other log (10113) has these outputs but misses output for ‘LicenseHelper’.

There was neither a change to ContinuaCI configuration nor to the FinalBuilder project file.
       
Best regards
Michael
__37545__0__Logs.zip (346.46 KB)

Hi Michael,

Thank you for providing the logs. Another thing that would help us greatly would be your project file. Please feel free to remove anything that is sensitive, and send it to support@finalbuilder.com. From this we should be able to get a better understanding of how to reproduce this.

Also if you could provide us with the versions of windows your using for both your Continua CI server, and agent, and whether you have FinalBuilder 8 installed as well?

Thank you.

Hello Jason,

I have sent the FB 7 project via eMail to you.

The build runs on a ESXI Image with Win 2012 R2 Standard x64, 8 GB RAM, 200 GB drive. Delphi 6 and 2006 binaries has been just copied because the setup ran into trouble (OS too new / Delphi too old?). Delphi 2010 and XE 7 are regulary installed. The PATH is as follows:
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Program Files (x86)\Delphi\XE7\bin
C:\Users\Public\Documents\Embarcadero\Studio\15.0\Bpl
C:\Program Files (x86)\Delphi\XE7\bin64
C:\Users\Public\Documents\Embarcadero\Studio\15.0\Bpl\Win64
C:\Program Files (x86)\Delphi\D2K10\bin
C:\Users\Public\Documents\RAD Studio\7.0\Bpl
C:\Program Files (x86)\DevExpress.VCL\Library\Delphi14
C:\Program Files (x86)\Tools
C:\ProgramData\Oracle\Java\javapath
C:\Windows\system32\config\systemprofile.dnx\bin
C:\Program Files\Microsoft DNX\Dnvm\
C:\Program Files\Microsoft SQL Server\120\Tools\Binn\
C:\Program Files (x86)\InstallAware X3
C:\Program Files\Git\cmd

On the PC (Image) both FinalBuilder 7.0.0.3486 and FinalBuilder 8.0.0.1817 are installed.

Best regards
Michael

Hello Jason,

was the Project file I sent to you helpful? Any other questions? How can I help to get Forward in this issue?

Best regards
Michael

Hi Micheal,

We haven’t received any emails from you through our support email address. Would you be able to send them again? Thank you.

Edit: To be a little clearer we have received something on the 30th of June, and responded to your support case. 

Thu, 30 Jun 2016
Thu, 30 Jun 2016