Merge lp:~javier.collado/checkbox-core/shadowd-docstrings into lp:checkbox-core

Proposed by Javier Collado
Status: Merged
Merged at revision: 20
Proposed branch: lp:~javier.collado/checkbox-core/shadowd-docstrings
Merge into: lp:checkbox-core
Diff against target: 77 lines (+29/-0)
5 files modified
checkbox/shadowd/__init__.py (+13/-0)
checkbox/shadowd/client.py (+4/-0)
checkbox/shadowd/operation.py (+4/-0)
checkbox/shadowd/queue.py (+4/-0)
checkbox/shadowd/sender.py (+4/-0)
To merge this branch: bzr merge lp:~javier.collado/checkbox-core/shadowd-docstrings
Reviewer Review Type Date Requested Status
Marc Tardif Approve
Review via email: mp+103694@code.launchpad.net

Description of the change

A few docstrings have been added for the shadowd package and its modules.

To post a comment you must log in.
Revision history for this message
Marc Tardif (cr3) wrote :

I like how you once said that the docstring for a Python package or module should explain why it is there. It looks like the docstring in the checkbox.shadowd package tries to explain what it is doing, which would probably be better served by documentation under the doc/ directory. How would you feel about only keeping the first paragraph in that docstring?

review: Needs Information
Revision history for this message
Marc Tardif (cr3) wrote :

To merge this branch, I moved the second paragraph of your docstring from the checkbox.shadowd package to the doc/shadow.txt file. Then I added the corresponding entry in the doc/index.txt file. The rest looks good, so merging!

review: Approve
Revision history for this message
Javier Collado (javier.collado) wrote :

Thanks Marc. Sorry for not answering the question in the previous comment on time.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'checkbox/shadowd/__init__.py'
2--- checkbox/shadowd/__init__.py 2012-04-24 22:43:09 +0000
3+++ checkbox/shadowd/__init__.py 2012-04-26 13:49:23 +0000
4@@ -0,0 +1,13 @@
5+"""
6+shadowd module implements the shadow daemon which is a process that runs on the
7+client side to handle all the requests from the submit process to execute test
8+cases.
9+
10+When a request is received, the shadow daemon connects to the portal process to
11+ask which is the most appropriate runner daemon process that should be used to
12+execute a given test case remotely. After that, the shadow daemon connects to
13+the runner daemon to request the test case execution. Then the shadow daemon
14+creates a new shadow process that connects to a new runner process created by
15+the runner daemon so that they can take care of the execution and monitoring of
16+the test case.
17+"""
18
19=== modified file 'checkbox/shadowd/client.py'
20--- checkbox/shadowd/client.py 2012-04-24 22:43:09 +0000
21+++ checkbox/shadowd/client.py 2012-04-26 13:49:23 +0000
22@@ -16,6 +16,10 @@
23 # You should have received a copy of the GNU Lesser General Public License
24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25 #
26+"""
27+The client module implements a Client class that can be used to communicate
28+with a shadow daemon process
29+"""
30 __metaclass__ = type
31
32 __all__ = [
33
34=== modified file 'checkbox/shadowd/operation.py'
35--- checkbox/shadowd/operation.py 2012-04-24 22:43:09 +0000
36+++ checkbox/shadowd/operation.py 2012-04-26 13:49:23 +0000
37@@ -16,6 +16,10 @@
38 # You should have received a copy of the GNU Lesser General Public License
39 # along with this program. If not, see <http://www.gnu.org/licenses/>.
40 #
41+"""
42+The operation module defines the current set of commands that can be sent to a
43+shadow daemon process
44+"""
45 __metaclass__ = type
46
47 __all__ = [
48
49=== modified file 'checkbox/shadowd/queue.py'
50--- checkbox/shadowd/queue.py 2012-04-24 22:43:09 +0000
51+++ checkbox/shadowd/queue.py 2012-04-26 13:49:23 +0000
52@@ -16,6 +16,10 @@
53 # You should have received a copy of the GNU Lesser General Public License
54 # along with this program. If not, see <http://www.gnu.org/licenses/>.
55 #
56+"""
57+The queue module implements a queue of requests that have not been sent yet to
58+a runner daemon process
59+"""
60 __metaclass__ = type
61
62 __all__ = [
63
64=== modified file 'checkbox/shadowd/sender.py'
65--- checkbox/shadowd/sender.py 2012-04-24 22:43:09 +0000
66+++ checkbox/shadowd/sender.py 2012-04-26 13:49:23 +0000
67@@ -16,6 +16,10 @@
68 # You should have received a copy of the GNU Lesser General Public License
69 # along with this program. If not, see <http://www.gnu.org/licenses/>.
70 #
71+"""
72+The sender module provides an API for clients to send messages to the shadow
73+daemon
74+"""
75 __metaclass__ = type
76
77 __all__ = [

Subscribers

People subscribed via source and target branches

to all changes: