Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-6783

XML API unable to retrieve children data from matrix build after hudson 1.362

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: matrix-project-plugin
    • Labels:
      None
    • Environment:
      Hudson master on S10u8 x86. Slaves on S10 x86 and sparc, Snext x86, Linux
      JVM 1.6.0_18 all platforms

      Description

      Have been using the XML api to retrieve data about children of a matrix project for post processing. Was retrieving this with URL such as http://master/job/JobName/<build#>/api/xml?depth=1 successfully for a while. Recently updated hudson to 1.362, and the <action/> block retrieved from that URL that previously contained the <childReport/> elements now is empty, even though the build succeeded.

      This is a pretty significant regression since we use this API to retrieve artifacts for each position in the matrix for testing. Will likely try reverting to 1.361 or 1.360 later today to see if that resolves the problem. Let me know what project-specific or environment information you need.

        Activity

        Hide
        mindless Alan Harder added a comment -

        can you post sample output you got previously? or describe what data you're looking for.. maybe it's available elsewhere.

        Show
        mindless Alan Harder added a comment - can you post sample output you got previously? or describe what data you're looking for.. maybe it's available elsewhere.
        Hide
        mindless Alan Harder added a comment -

        please respond, thanks.

        Show
        mindless Alan Harder added a comment - please respond, thanks.
        Hide
        mindless Alan Harder added a comment -

        Reopen issue and provide more detail if you still see an issue, thanks.

        Show
        mindless Alan Harder added a comment - Reopen issue and provide more detail if you still see an issue, thanks.
        Hide
        ccutrer Cody Cutrer added a comment -

        For job test, build 1, XML output for http://build.mozycorp.com/job/test/1/api/xml is:

        <matrixBuild><action><parameter><name>BRANCH</name><value>release/1.1</value></parameter></action><action><cause><shortDescription>Started by user codyc</shortDescription><userName>codyc</userName></cause></action><action></action><action></action><building>false</building><duration>1638</duration><fullDisplayName>test #1</fullDisplayName><id>2011-03-29_09-46-42</id><keepLog>false</keepLog><number>1</number><result>SUCCESS</result><timestamp>1301413602129</timestamp><url>http://build.mozycorp.com/job/test/1/</url><builtOn>sebldprod-debian-maverick-i386</builtOn><changeSet></changeSet></matrixBuild>

        But http://build.mozycorp.com/job/test/1/arch=amd64,dist=Debian-5.0/ is definitely a valid URL.

        Show
        ccutrer Cody Cutrer added a comment - For job test, build 1, XML output for http://build.mozycorp.com/job/test/1/api/xml is: <matrixBuild><action><parameter><name>BRANCH</name><value>release/1.1</value></parameter></action><action><cause><shortDescription>Started by user codyc</shortDescription><userName>codyc</userName></cause></action><action></action><action></action><building>false</building><duration>1638</duration><fullDisplayName>test #1</fullDisplayName><id>2011-03-29_09-46-42</id><keepLog>false</keepLog><number>1</number><result>SUCCESS</result><timestamp>1301413602129</timestamp><url> http://build.mozycorp.com/job/test/1/ </url><builtOn>sebldprod-debian-maverick-i386</builtOn><changeSet></changeSet></matrixBuild> But http://build.mozycorp.com/job/test/1/arch=amd64,dist=Debian-5.0/ is definitely a valid URL.
        Hide
        ccutrer Cody Cutrer added a comment -

        This is Jenkins 1.404.

        Show
        ccutrer Cody Cutrer added a comment - This is Jenkins 1.404.
        Hide
        mindless Alan Harder added a comment -

        Sorry, still don't know what this issue is about.
        I find no reference to "<childReport>" even before 1.362 in matrix projects.. the only place I see this is in aggregated test reports.
        Cody, you pasted output from api/xml, but didn't say what is missing. I don't understand the "is definitely a valid URL" comment.. job/JOBNAME/1/api/xml and job/JOBNAME/1/FOO=bar/api/xml both work for me.
        If someone has specifics on what data is missing and how to see such data in an older release, please share..

        Show
        mindless Alan Harder added a comment - Sorry, still don't know what this issue is about. I find no reference to "<childReport>" even before 1.362 in matrix projects.. the only place I see this is in aggregated test reports. Cody, you pasted output from api/xml, but didn't say what is missing. I don't understand the "is definitely a valid URL" comment.. job/JOBNAME/1/api/xml and job/JOBNAME/1/FOO=bar/api/xml both work for me. If someone has specifics on what data is missing and how to see such data in an older release, please share..
        Hide
        kevincai kevincai added a comment -

        the parent url "job/JOBNAME/api/xml" shows that it is a matrixBuild, but there is no information to indicate this matrixBuild's configuration info, what kind of axises defined, for a certain build "job/JOBNAME/BUILD_NUMBER/api/xml", it can't tell what combination of configuration get built.

        Show
        kevincai kevincai added a comment - the parent url "job/JOBNAME/api/xml" shows that it is a matrixBuild, but there is no information to indicate this matrixBuild's configuration info, what kind of axises defined, for a certain build "job/JOBNAME/BUILD_NUMBER/api/xml", it can't tell what combination of configuration get built.
        Hide
        mindless Alan Harder added a comment -

        kevincai, please feel free to file a new feature request about that.. this is a bug filed about a regression, but I'm not able to determine what worked before and then broke.

        Show
        mindless Alan Harder added a comment - kevincai, please feel free to file a new feature request about that.. this is a bug filed about a regression, but I'm not able to determine what worked before and then broke.

          People

          • Assignee:
            Unassigned
            Reporter:
            tallpgr tallpgr
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: