Meego Wiki
Views

Release Infrastructure/BOSS/OBS Event List

From MeeGo wiki
< Release Infrastructure | BOSS
Revision as of 15:56, 30 April 2011 by Lbt (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

(This section should move to the OBS wiki eventually)

This OBS Event information is used by the BOSS standard workflow and the associated participants


The obs-boss-plugin sends the event data in a workitem field called obsEvent:

  • label : is the event code below
  • namespace : is a per-OBS-instance namespace identifier
  • time: seconds since eopch
  • parameters are from the Notify() message

The OBS emits the following events (identified from a simple grep of src)

REPO_PUBLISHED  project, repo
REPO_PUBLISH_STATE project, repo, 'state' => 'publishing'
REPO_PUBLISH_STATE project, repo, 'state' => 'published'
BUILD_UNCHANGED, $info
BUILD_SUCCESS, $info
BUILD_FAIL, $info
SRCSRV_UPLOAD project, package, filename, user
SRCSRV_UPDATE_PROJECT_CONFIG project, sender => $user
SRCSRV_COMMIT project, package, files, rev, user, comment
SRCSRV_VERSION_CHANGE project, package, files, rev
SRCSRV_UPDATE_PROJECT
SRCSRV_CREATE_PROJECT project, sender => $user || "unknown"
SRCSRV_DELETE_PROJECT project, sender => $user || "unknown"
SRCSRV_UPDATE_PACKAGE
SRCSRV_CREATE_PACKAGE project, package, sender
SRCSRV_DELETE_PACKAGE project, package, sender
SRCSRV_UPDATE_PROJECT_CONFIG project, sender
SRCSRV_UPDATE_PROJECT_CONFIG project, sender
SRCSRV_BRANCH_COMMAND project, package, targetproject, targetpackage
SRCSRV_START $conf

SRCSRV_REQUEST_CHANGE req, user
SRCSRV_REQUEST_CREATE req, user
SRCSRV_REQUEST_DELETE oreq, user

SRCSRV_REQUEST_STATECHANGE req, user

SRCSRV_REQUEST

Issued when an osc 'request' occurs.

The OBS data is available in the "ev" field.

Currently this looks like:

   "actions": [
       {
           "deletepackage": null, 
           "deleteproject": null, 
           "sourcepackage": "boss-participant-prechecks", 
           "sourceproject": "home:iamer", 
           "sourcerevision": "5", 
           "targetpackage": "boss-participant-prechecks", 
           "targetproject": "home:lbt", 
           "type": "submit"
       }
   ], 
   "author": "lbt", 
   "comment": null, 
   "description": "please accept", 
   "id": "115", 
   "label": "SRCSRV_REQUEST_CREATE", 
   "namespace": "COBS", 
   "sender": "lbt", 
   "state": "new", 
   "time": 1303819605, 
   "type": "COBS_SRCSRV_REQUEST_CREATE", 
   "when": "2011-04-26T12:06:45", 
   "who": "lbt"
Personal tools