[Cdash] Attaching images to Test results

Zach Mullen zach.mullen at kitware.com
Tue Mar 1 16:21:39 UTC 2011


On Tue, Mar 1, 2011 at 10:32 AM, David Cole <david.cole at kitware.com> wrote:

> Here's a failing VTK test from today's dashboard that is showing images.
>
> http://www.cdash.org/CDash/testDetails.php?test=85717330&build=884368
>
> I have not traced anything at all to see what's happening between client
> and CDash on www.cdash.org/CDash, but just thought I would pass along an
> example of images that are being (apparently) pushed through all the way to
> CDash from a currently failing test...
>
> I figured out how the image stuff is still working.  Our XML parser doesn't
decode the base64 value, it stores the image in the database in its base64
encoding.  The decoding is done when the image is viewed, in
testDetails.php.  We should look at the Test.xml being uploaded for that VTK
dashboard and see the XML they're using to upload the images.

-Zach

>
>
> On Tue, Mar 1, 2011 at 10:02 AM, Johan Björk <phb at spotify.com> wrote:
>
>> Actually, seems to be even more things that are broken in that area,
>>
>> CTest propery ATTACHED_FILES gets uploaded to cdash with the following xml
>> <NamedMeasurement name="Attached File" encoding="base64"
>> compression="tar/gzip" filename="foo.c" type="file">, then the Value is a
>> Base64 encoded string.
>> In CDash it just gets shown as a undecoded Base64 string.
>>
>> /Johan
>>
>>
>>
>> On Tue, Mar 1, 2011 at 3:04 PM, Zach Mullen <zach.mullen at kitware.com>wrote:
>>
>>> On Tue, Mar 1, 2011 at 8:24 AM, Johan Björk <phb at spotify.com> wrote:
>>>
>>>> Hey guys,
>>>>
>>>> I noticed that there used to be support in CDash for attaching images,
>>>> but it was removed (at least in part) in svn commit r2616.
>>>> Anyone (Zack?) know if it was functional? We are hand-assembling our
>>>> Test.xml currently, so that there is no ctest support would not be a
>>>> problem.
>>>>
>>>> Cheers
>>>> /Johan
>>>>
>>>> I've looked through the code and it looks like you're right -- CDash
>>> "appears" to still support adding images as named measurements, but it looks
>>> like the image is never getting decoded out of base64.  The function
>>> commented out in r2616 was never being called anyway, even though it should
>>> be.  I looked all the way back in the svn log until the file was created
>>> there, and the function was there, so I'm at a loss as to who wrote it or
>>> whether it was ever called at all.  JJ, do you know?
>>>
>>> Doesn't the VTK or ITK dashboard have tests that upload images?  Does
>>> anyone know if they are still working, or whether this support was
>>> intentionally removed at some point?
>>>
>>> Thanks,
>>>
>>> --
>>> Zach Mullen
>>> R & D Engineer
>>> Kitware Inc.
>>> (919) 969-6990 x314
>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Cdash mailing list
>>>> Cdash at public.kitware.com
>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/cdash
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>
>> _______________________________________________
>> Cdash mailing list
>> Cdash at public.kitware.com
>> http://public.kitware.com/cgi-bin/mailman/listinfo/cdash
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cdash/attachments/20110301/3184ee63/attachment-0003.htm>


More information about the CDash mailing list