IBM Support

PH26069: IBM DEVELOPER FOR Z SYSTEMS (IDZ) HEADLESS CODE COVERAGE WHEN RAN WITH ZUNIT RUNNER DOES NOT GENERATE SONARQUBE REPORT.

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • IBM Developer for z Systems - IDz - v14.2.2
    When running headless code coverage with zUnit Runner,
    with option -exportertype=ccsonarqube, code coverage result in
    SonarQube format with the .xml extension is not generated.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: 01.Customers using COBOL 6.3 JSON PARSE and  *
    *                    GENERATE syntax                           *
    *                 02.Users who run headless code coverage to   *
    *                    use sonarqube exporter to export results  *
    *                 03.Users who run headless code coverage      *
    *                    with the SonarQube exporter.              *
    ****************************************************************
    * PROBLEM DESCRIPTION: 01.COBOL 6.3 PTF PH26780 JSON PARSE     *
    *                         and GENERATE boolean name/value      *
    *                         pairs CONVERTING option support in   *
    *                         code analysis                        *
    *                      02.Running headless code coverage with  *
    *                         zUnit Runner does not generate       *
    *                         Sonar Qube xml result.               *
    *                      03.When using headless code coverage    *
    *                         with the SonarQube exporter,         *
    *                         sonar-project.properties results     *
    *                         are overwritten upon mulitple code   *
    *                         coverage runs.                       *
    ****************************************************************
    01.Customers have requested the ability to parse and generate
       JSON boolean name/value pairs using the JSON PARSE and
       GENERATE statements.
       a. The JSON GENERATE statement will be enhanced to produce
          JSON boolean name/value pairs.
       b. The JSON PARSE statement will be enhanced to consume JSON
          boolean name/value pairs.
    
       COBOL 6.3 PTF that added the new syntax:
       https://www.ibm.com/support/pages/apar/PH26789
       Documentation for the JSON GENERATE statement with the new
       CONVERTING option:
       https://www.ibm.com/support/knowledgecenter/SS6SG3_6.3.0/lr/r
       ef/rlpsjsog.html
       and the JSON PARSE statement with the new CONVERTING option:
       https://www.ibm.com/support/knowledgecenter/SS6SG3_6.3.0/lr/r
       ef/rlpsjsop.html
    02.When running headless code coverage with option
       exportertype=CCSONARQUBE, and application is ran with zUnit
       Runner or application includes at least a dissemble language
       with no debug information, Sonar Qube xml result is not
       generated.
    03.Headless code coverage failed to put SonarQube results in
       individual subdirectories.
    

Problem conclusion

  • 01.New COBOL 6.3 parameters support was added to be in keeping
       with expectations and documentation.
    02.The CC Sonar Qube exporter is modified to ensure Sonar Qube
       xml result is generated even when the whole program is ran
       with zUnit Runner, or has at least one compile unit with no
       debug information.
    03.Headless code coverage was updated to place SonarQube
       results in unique subdirectories so prevent overwriting the
       properties file.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH26069

  • Reported component name

    DEV FOR Z/OS

  • Reported component ID

    5724T0700

  • Reported release

    E20

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-06-03

  • Closed date

    2020-12-04

  • Last modified date

    2021-01-04

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    PH32396 PH32397 UI72946

Modules/Macros

  • AKGCCX   AKGFT002 AKGXCR03 AKGXCR06 AKGXCR07
    

Fix information

  • Fixed component name

    SOURCE CODE ANA

  • Fixed component ID

    5724T0733

Applicable component levels

  • RE20 PSY UI72946

       UP20/12/08 P F012

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU029","label":"Software"},"Product":{"code":"SSQ2R2","label":"Rational Developer for System z"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"E20"}]

Document Information

Modified date:
05 January 2021