CDash does not show GIT column with commits

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

CDash does not show GIT column with commits

Denis Davydov
Dear all,

we are running a server with CDash v2.4.0-prebuilt (webpage shows 2.5.0 though) and
can not figure out how to make CDash to show git commit for each build in the dashboard.

The ctest script ends with:

FILE(STRINGS ${CTEST_BINARY_DIRECTORY}/Testing/TAG _tag LIMIT_COUNT 1)
SET(_path "${CTEST_BINARY_DIRECTORY}/Testing/${_tag}")

FILE(WRITE ${_path}/Update.xml
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<Update mode=\"Client\" Generator=\"ctest-${CTEST_VERSION}\">
<Site>${CTEST_SITE}</Site>
<BuildName>${CTEST_BUILD_NAME}</BuildName>
<BuildStamp>${_tag}-${TRACK}</BuildStamp>
<UpdateType>GIT</UpdateType>
<Revision>${_git_rev}</Revision>
<Path>${_git_branch}</Path>
</Update>"
  )

CTEST_SUBMIT(RETURN_VALUE _res)


From visual inspection I see that everything[1] is being picked up correctly in this file and it’s being created where it should.
As for the CDash project settings, the “Repository” tab has “Repository Viewer Type” set to “GitHub”, otherwise other fields are empty.
The code is hosted at a private GitHub repository, so we can’t really point CDash to it, as far as I understand.
Perhaps that’s the reason why we don’t see a “Git” column for each build with hashes, but I kind of hoped that
it’s possible to display it even if the repository itself is private and so CDash won’t be able to create meaningful
hyperlinks to each commit.

[1] The only minor issue is that I expected CTEST_VERSION to be defined, but it is not. So probably one would need to get it
manually.


Thank you in advance,
Regards,
Denis.
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: CDash does not show GIT column with commits

Denis Davydov
Dear all,

I think we figured out what is the problem.
Looks like the Update.xml we were manually writing was missing time info, i.e.

<StartDateTime>Nov 10 16:36 CET</StartDateTime>
<StartTime>1510328188</StartTime>
<EndDateTime>Nov 10 16:36 CET</EndDateTime>
<EndTime>1510328189</EndTime>
<ElapsedMinutes>0</ElapsedMinutes>

and XML parsing was failing.

If we use CTEST_UPDATE() then on CDash there is another column “Update” with “Files” which point to revision info.
The “GIT column” I was originally referring to probably is a custom configuration of this project https://cdash.kyomu.43-1.org/index.php?project=deal.II 


Regards,
Denis.


On 10 Nov 2017, at 10:54, Denis Davydov <[hidden email]> wrote:

Dear all,

we are running a server with CDash v2.4.0-prebuilt (webpage shows 2.5.0 though) and
can not figure out how to make CDash to show git commit for each build in the dashboard.

The ctest script ends with:

FILE(STRINGS ${CTEST_BINARY_DIRECTORY}/Testing/TAG _tag LIMIT_COUNT 1)
SET(_path "${CTEST_BINARY_DIRECTORY}/Testing/${_tag}")

FILE(WRITE ${_path}/Update.xml
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<Update mode=\"Client\" Generator=\"ctest-${CTEST_VERSION}\">
<Site>${CTEST_SITE}</Site>
<BuildName>${CTEST_BUILD_NAME}</BuildName>
<BuildStamp>${_tag}-${TRACK}</BuildStamp>
<UpdateType>GIT</UpdateType>
<Revision>${_git_rev}</Revision>
<Path>${_git_branch}</Path>
</Update>"
 )

CTEST_SUBMIT(RETURN_VALUE _res)


From visual inspection I see that everything[1] is being picked up correctly in this file and it’s being created where it should.
As for the CDash project settings, the “Repository” tab has “Repository Viewer Type” set to “GitHub”, otherwise other fields are empty.
The code is hosted at a private GitHub repository, so we can’t really point CDash to it, as far as I understand.
Perhaps that’s the reason why we don’t see a “Git” column for each build with hashes, but I kind of hoped that
it’s possible to display it even if the repository itself is private and so CDash won’t be able to create meaningful
hyperlinks to each commit.

[1] The only minor issue is that I expected CTEST_VERSION to be defined, but it is not. So probably one would need to get it
manually.


Thank you in advance,
Regards,
Denis.


--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake