Project

General

Profile

action #2424

osc plugin: prototype of a mechanism to notify involved users (without repetition)

Added by ancorgs over 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Target version:
Start date:
2014-05-05
Due date:
% Done:

0%

Estimated time:
20.00 h

Description

The plugin should be able to notify involved users about failed builds and failed tests. The first approach will be writing a comment in the staging project mentioning all the submitters. The plugin will need to store some information about the already notified events, to prevent it to notify twice about the same test result of buildfail if it's invoked several timed (which will happen).


Related issues

Related to Staging project workflow - action #2428: Implement comments for projects in OBS APIClosed2014-05-05

Related to openQA Project - action #1301: Communicate to OBS the result of the preintegration testRejected2014-01-27

History

#1 Updated by ancorgs over 8 years ago

Of course, #2428 needs to be done before being able to finish this task.

#2 Updated by ancorgs over 8 years ago

  • Assignee set to aplanas

#3 Updated by ancorgs over 8 years ago

This page contains a good example of how the comments could look like (last comment at the time of writing this)

https://build.opensuse.org/project/show/openSUSE:Factory:Staging:A

#4 Updated by aplanas over 8 years ago

I see the comments, where is the basic API and rules for the plugin.

#5 Updated by ancorgs over 8 years ago

In OBS you have the following routes for creating, reading and deleting comments:

  • get 'comments/request/REQUEST_ID'
  • post 'comments/request/REQUEST_ID'
  • get 'comments/package/PROJECT_NAME/PACKAGE_NAME'
  • post 'comments/package/PROJECT_NAME/PACKAGE_NAME'
  • get 'comments/project/PROJECT_NAME'
  • post 'comments/project/PROJECT_NAME'
  • delete 'comment/COMMENT_ID'

#6 Updated by ancorgs over 8 years ago

About the rules, the initial proposal (that probably needs refining but is a valid starting point) is in section 4.1 of
http://etherpad.cloud.suse.de/p/obs_and_openqa

#7 Updated by coolo over 8 years ago

  • Priority changed from Normal to Urgent
  • Target version deleted (Staging sprint 5)

#8 Updated by aplanas over 8 years ago

  • Priority changed from Urgent to Immediate

#9 Updated by aplanas over 8 years ago

  • Target version set to Staging sprint 08

#10 Updated by aplanas about 8 years ago

[Only to not forget this thought.]

Makes sense to add this methods in https://build.opensuse.org/apidocs?

#11 Updated by aplanas about 8 years ago

  • Status changed from New to In Progress

#12 Updated by aplanas about 8 years ago

I tried to test the best way I can, but is not enough. For example, I didn't receive any notification from OBS for any comment with aplanas text.

Also I commented the remove of the comments in the acceptance command to avoid lost of data until there are more test in the code.

#13 Updated by aplanas about 8 years ago

  • Status changed from In Progress to Resolved

I will work fixing / adjusting comments when the need appears.

Also available in: Atom PDF