MantisBT - CDash
View Issue Details
0007667CDashpublic2008-09-12 11:552008-09-15 07:45
Dan Thill 
Julien Jomier 
normalminoralways
closedfixed 
1.2 
1.2 
0007667: Submitting using a custom track/group name partially fails when contains a dash
My usage of CDash is a little non-standard, as I use it to track regression test results. So, I use custom groups/tracks to represent platforms, and I use the build name to store an application version number.

Steps to reproduce:

1. Submit a test result which has a custom track name, via the --track argument to ctest. Make sure this track name contains a dash, such as "Win32-vs2005"
2. Submission will submit successfully.
3. Submission will not appear in the index page, nor in the "Edit Project Groups" admin page.
4. In the database, the build will exist in the "build" table. However, there will not be an entry in "build2group".

For this example, the custom group "Win32-vs2005" already existed (was created via the CDash admin). I have had no problem manually moving builds into this group, if they were submitted WITHOUT a custom --track.

If you repeat the above steps with a different track name which does not contain a dash, there are no problems.

I suspect the problem is in parse_build() in ctestparser.php.
I am using cdash trunk, r1158.
No tags attached.
Issue History
2008-09-12 11:55Dan ThillNew Issue
2008-09-12 11:59Dan ThillNote Added: 0013454
2008-09-12 12:43Julien JomierNote Added: 0013455
2008-09-12 12:43Julien JomierStatusnew => assigned
2008-09-12 12:43Julien JomierAssigned To => Julien Jomier
2008-09-12 13:35Dan ThillNote Added: 0013457
2008-09-12 13:42Dan ThillNote Edited: 0013457
2008-09-12 14:30Julien JomierStatusassigned => resolved
2008-09-12 14:30Julien JomierFixed in Version => 1.2
2008-09-12 14:30Julien JomierResolutionopen => fixed
2008-09-12 14:30Julien JomierNote Added: 0013458
2008-09-15 07:45Julien JomierStatusresolved => closed

Notes
(0013454)
Dan Thill   
2008-09-12 11:59   
I'm sorry. There will be an entry in build2group table, but it will be mapping to group with id 0, which of course, doesn't exist.
(0013455)
Julien Jomier   
2008-09-12 12:43   
The group should exist prior to submission. Is it working for other tracks that don't have a dash?

1) Create a group "Win32-vs2005" in CDash
2) Repeat the step describe above

Let us know if that works.
(0013457)
Dan Thill   
2008-09-12 13:35   
(edited on: 2008-09-12 13:42)
Sorry--my description wasn't clear enough. The group already existed and had previous builds in it (which I had moved there manually via the Edit Groups page).

This is the Site tag in the Build.xml:

Site BuildName="ABASProto4-0.16-vs" BuildStamp="20080912-1739-Win32-vs2005" Name="PC-DTHILL2" 
Generator="ctest2.4-patch 3"


(0013458)
Julien Jomier   
2008-09-12 14:30   
This is fixed in SVN and will be in 1.2. Let me know if that works or not. Thanks for the report!