It's all about the answers!

Ask a question

Unable to run Code Health Report


Thaddee Bourque (61264) | asked Apr 15 '10, 10:08 a.m.
Hi,

When attempting to run the Code Health report, the Team Area, Build Definition & Component parameters are blank (non to select from). I have no issues running a Build Health report where values are displayed in the Team Area and once I select a team, a choice is presented for the Build Definition parameter. Could someone tell me how I can get the team areas to show up when running a Code Health report.

Thanks in advanced,
Thaddee

14 answers



permanent link
James Moody (3.3k24) | answered Apr 19 '10, 8:55 a.m.
JAZZ DEVELOPER
On 4/15/2010 10:23 AM, tbourque wrote:
Hi,

When attempting to run the Code Health report, the Team Area, Build
Definition& Component parameters are blank (non to select from).
I have no issues running a Build Health report where values are
displayed in the Team Area and once I select a team, a choice is
presented for the Build Definition parameter. Could someone tell me
how I can get the team areas to show up when running a Code Health
report.

Thanks in advanced,
Thaddee


Thaddee,

The Code Health reports presents SCM data stored in our data warehouse.
Because this data can be expensive to collect, we don't collect it by
default. To turn on data collection for one or more of your streams:
1. Go to the Reports Web UI, as a user with JazzAdmin or JazzDWAdmin
permissions.
2. Click on the "Administer SCM Snapshot" link in the lower left.
3. Check the checkbox beside any stream for which you'd like data collected.
4. Either wait overnight for the snapshot to run automatically, or
manually run the snapshots using the "Administer Data Warehouse" link.
5. Run the report again; it should have data now.

james
RTC Reports Team Lead

permanent link
Thaddee Bourque (61264) | answered May 06 '10, 8:39 a.m.

Thaddee,

The Code Health reports presents SCM data stored in our data warehouse.
Because this data can be expensive to collect, we don't collect it by
default. To turn on data collection for one or more of your streams:
1. Go to the Reports Web UI, as a user with JazzAdmin or JazzDWAdmin
permissions.
2. Click on the "Administer SCM Snapshot" link in the lower left.
3. Check the checkbox beside any stream for which you'd like data collected.
4. Either wait overnight for the snapshot to run automatically, or
manually run the snapshots using the "Administer Data Warehouse" link.
5. Run the report again; it should have data now.

james
RTC Reports Team Lead


Thanks James,

We followed the steps provided above two days ago and we are still not able to select a Team Area, Build Definition & Component parameters (still blank) when running the Code Health report. We are unable to run the report without selecting these parameters. Please let me know if there is anything else we can check to see why this is happening.

Thanks,
Thaddee

permanent link
James Moody (3.3k24) | answered May 11 '10, 12:40 p.m.
JAZZ DEVELOPER

Thaddee,

The Code Health reports presents SCM data stored in our data warehouse.
Because this data can be expensive to collect, we don't collect it by
default. To turn on data collection for one or more of your streams:
1. Go to the Reports Web UI, as a user with JazzAdmin or JazzDWAdmin
permissions.
2. Click on the "Administer SCM Snapshot" link in the lower left.
3. Check the checkbox beside any stream for which you'd like data collected.
4. Either wait overnight for the snapshot to run automatically, or
manually run the snapshots using the "Administer Data Warehouse" link.
5. Run the report again; it should have data now.

james
RTC Reports Team Lead


Thanks James,

We followed the steps provided above two days ago and we are still not able to select a Team Area, Build Definition & Component parameters (still blank) when running the Code Health report. We are unable to run the report without selecting these parameters. Please let me know if there is anything else we can check to see why this is happening.

Thanks,
Thaddee

Okay, so this may instead be related to the way your builds are set up. Code Health actually has two charts in it. One presents information gathered during JUnit execution of a build. Do you have JUnit tests configured? Are they contibuted to a build result in the normal way? The other displays code warnings from Java compilation. Does your build compile Java code? Is it configured in the typical way or do you have a custom build setup?

james

permanent link
Thaddee Bourque (61264) | answered May 12 '10, 6:56 a.m.
Hi James,

Please see answers to your questions below.

Thanks,
Thaddee

Do you have JUnit tests configured?

Yes

Are they contibuted to a build result in the normal way?

Yes

Does your build compile Java code?

Yes (code compilation results are embedded in the RTC build log)

Is it configured in the typical way or do you have a custom build setup?

Typical way

permanent link
James Moody (3.3k24) | answered May 13 '10, 9:30 a.m.
JAZZ DEVELOPER
On 5/12/2010 7:08 AM, tbourque wrote:
Hi James,

Please see answers to your questions below.

Thanks,
Thaddee

jmoodywrote:
Do you have JUnit tests configured?
Yes

jmoodywrote:
Are they contibuted to a build result in the normal way?
Yes

jmoodywrote:
Does your build compile Java code?
Yes (code compilation results are embedded in the RTC build log)

jmoodywrote:
Is it configured in the typical way or do you have a custom build
setup?
Typical way


Okay, so just to verify, when you open a build result in the build
result editor, you see a "Compilation" and a "JUnit" tab in the editor,
which contain these results? If this is true, then the report should
work correctly. There may be something else going on. Could you open a
work item in the Reports component so we can help you track this down?

james
RTC Reports Team Lead

permanent link
gokul sk (72610) | answered May 14 '10, 5:15 a.m.
On 5/12/2010 7:08 AM, tbourque wrote:
Hi James,

Please see answers to your questions below.

Thanks,
Thaddee

jmoodywrote:
Do you have JUnit tests configured?
Yes

jmoodywrote:
Are they contibuted to a build result in the normal way?
Yes

jmoodywrote:
Does your build compile Java code?
Yes (code compilation results are embedded in the RTC build log)

jmoodywrote:
Is it configured in the typical way or do you have a custom build
setup?
Typical way


Okay, so just to verify, when you open a build result in the build
result editor, you see a "Compilation" and a "JUnit" tab in the editor,
which contain these results? If this is true, then the report should
work correctly. There may be something else going on. Could you open a
work item in the Reports component so we can help you track this down?

james
RTC Reports Team Lead


Hi James,

Thanks for your valuable information.

I have one more query about this discussion.

IF Compilation tab is not there then how to obtain compilation tab in build results.

I am waiting for you reply.


Thanks
Gokul

permanent link
Sean G Wilbur (87212421) | answered May 15 '10, 5:20 p.m.
JAZZ DEVELOPER

IF Compilation tab is not there then how to obtain compilation tab in build results.


You need to implement the build contributions, the documentation is pretty good here, I would start here:

http://publib.boulder.ibm.com/infocenter/rtc/v2r0m0/topic/com.ibm.team.build.doc/topics/t_build_overview.html

This section is specifically for contributing your results back to Jazz:
http://publib.boulder.ibm.com/infocenter/rtc/v2r0m0/topic/com.ibm.team.build.doc/topics/r_publishbuildresult.html

Also you can check the wiki for some example scripts to start with.
https://jazz.net/wiki/bin/view/Main/BuildExamples

-Sean

permanent link
Perala Chakrapani (2122) | answered May 24 '10, 2:05 a.m.
Hi -

Thanks for the links. I checked build example file in toolkit. for a property build.compiler - it points to JDT compiler class which I dont have in the build machine.

Only RTC build engine is running in build machine and not eclipse based RTC client.

Can you help me out on how to point to JDT compiler ?

Currently Iam using JDK 1.6 compiler that is good for project sources to compile.

permanent link
Nick Edgar (6.5k711) | answered May 25 '10, 3:34 p.m.
JAZZ DEVELOPER
To publish compilation results, you need to:
- download the standalone Java compiler from Eclipse. See 'JDT Core Batch Compiler' (the binary, not source version) at http://download.eclipse.org/eclipse/downloads/drops/R-3.5.2-201002111343/index.php
- add this to your Ant library path with a -lib argument in the build definition's Ant page
- tell Ant to use this instead of the regular javac by adding to the script:

<property name="build.compiler"
value="org.eclipse.jdt.core.JDTCompilerAdapter" />

- use the regular javac task, but with a -log option, using a filename with a .xml suffix to get structured output, e.g.:

<property name="compileLog" value="${basedir}/compile.xml" />
...
<javac srcdir="${basedir}/src"
destdir="${destdir}"
source="1.5"
target="1.5"
debug="on"
nowarn="on"
failonerror="false">
...
<compilerarg line="-1.5 -log ${compileLog}" />
</javac>

- then use the jdtCompileLogPublisher Ant task, or the 'ECJ Publishing' post-build option in the build definition, to publish this file to the build result.

The 'compile-and-test' example included in the Build System Toolkit shows how to do this. It's under jazz/buildsystem/buildtoolkit/examples/compile-and-test.
The build.xml file provides more details in its comments.

permanent link
Perala Chakrapani (2122) | answered May 26 '10, 12:09 a.m.
Thanks for guidance/steps.

I now got compilation tab. its working as per your steps.

I tried to open Code Health Report, still the same issue, Iam not able to view teamarea / build definition list to pick and run report. all list boxes are empty as before getting compilation tab.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.