View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012634CDash(No Category)public2011-12-19 07:362011-12-22 09:50
Reporterdoob 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0012634: Hooks provide possibility to callback to the outside world
DescriptionI think it would be a very useful feature to add something similar like the svn-hooks feature to CDash to enable external processes to get information about build state or trigger any actions. Especially I'm thinking of notifying some external physical device like a build lamp.

I think 'hooks' provide the most generic way to do so.
My proposal would be very similar to the approach used by SVN. Just have a directory there one can drop executable scripts or binaries and have a CDash look after them and call them on different events with a predefined set of parameters.

E.g. most generic just call a script every time the build state changes and provide some parameters to the script notifying about the basic information like affected project, site, buildname, warnings etc. -- basically the same information as a single row in the dashboard would provide.

Using such hook one could easily trigger a build lamp on failure of a given set of projects or on the general build state.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0028007)
David Cole (manager)
2011-12-19 08:26

Perhaps you could hook into the existing rss feed already provided by CDash.

For example,

  feed://cdash.org/CDash/rss/SubmissionRSSCDash.xml
(0028017)
doob (reporter)
2011-12-20 03:28
edited on: 2011-12-20 03:30

Unfourtunately RSS feeds aren't provided for projects not on the public dashboard.
Also one point of having hooks would be to also get build state globally and not only on a per project base.

(0028032)
Julien Jomier (manager)
2011-12-22 07:44

I think this should be done through the webAPI when you can have a script query the state of the dashboard through that API.
(0028036)
doob (reporter)
2011-12-22 09:50

I thought about this too, but didn't find some appropriate API function in the documentation in the Wiki. However I think it would be more generic, less complicated to have hooks triggered by cdash than to query the API. But that depends on the point of view and the individual application of course.

The important point for me (for connection to a xtreme feedback device) would be to be able to get some sort of global state for the entire dashboard or a selection of project, not only on a per single project base.

 Issue History
Date Modified Username Field Change
2011-12-19 07:36 doob New Issue
2011-12-19 08:26 David Cole Note Added: 0028007
2011-12-20 03:28 doob Note Added: 0028017
2011-12-20 03:30 doob Note Edited: 0028017
2011-12-22 07:44 Julien Jomier Note Added: 0028032
2011-12-22 09:50 doob Note Added: 0028036


Copyright © 2000 - 2018 MantisBT Team