Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(27)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 7223066: Adds queue handling tests for jobs

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 11 months ago by j.c.sackett
Modified:
12 years, 11 months ago
Reviewers:
rharding , hazmat, mp+145870
Visibility:
Public.
Adds queue handling tests for jobs This adds a number of tests to handle queue management for the jobs' pipeline. Where possible, it also adds tests for expected outputs and processes within the jobs. This is not comprehensive--the jobs need more tests, esp where mongo and other data sources are being worked with (e.g. indexing). There is also some drive by cleanup and linting, particularly removing unused code. https://code.launchpad.net/~jcsackett/charmworld/better-job-tests/+merge/145870 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 10

Patch Set 2 : Adds queue handling tests for jobs #

Total comments: 1
Created: 12 years, 11 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+354 lines, -78 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M charmworld/jobs/bzr.py View 3 chunks +11 lines, -10 lines 0 comments Download
M charmworld/jobs/changelog.py View 1 chunk +2 lines, -3 lines 0 comments Download
M charmworld/jobs/config.py View 1 chunk +3 lines, -0 lines 0 comments Download
M charmworld/jobs/lp.py View 3 chunks +10 lines, -9 lines 0 comments Download
M charmworld/jobs/scan.py View 1 5 chunks +12 lines, -10 lines 1 comment Download
M charmworld/jobs/store.py View 1 chunk +3 lines, -2 lines 0 comments Download
A charmworld/jobs/tests/test_bzr.py View 1 1 chunk +32 lines, -0 lines 0 comments Download
A charmworld/jobs/tests/test_changelog.py View 1 1 chunk +44 lines, -0 lines 0 comments Download
A charmworld/jobs/tests/test_lp.py View 1 1 chunk +70 lines, -0 lines 0 comments Download
M charmworld/jobs/tests/test_proof.py View 1 1 chunk +48 lines, -42 lines 0 comments Download
A charmworld/jobs/tests/test_scan.py View 1 1 chunk +35 lines, -0 lines 0 comments Download
A charmworld/jobs/tests/test_store.py View 1 1 chunk +31 lines, -0 lines 0 comments Download
M charmworld/jobs/utils.py View 3 chunks +2 lines, -2 lines 0 comments Download
M charmworld/testing/__init__.py View 1 4 chunks +49 lines, -0 lines 0 comments Download
Total messages: 5
|
j.c.sackett
Please take a look.
12 years, 11 months ago (2013年01月31日 14:36:11 UTC) #1
Please take a look.
Sign in to reply to this message.
hazmat
drive by whilst on holiday (ie. +0) just some comments. https://codereview.appspot.com/7223066/diff/1/charmworld/jobs/scan.py File charmworld/jobs/scan.py (right): https://codereview.appspot.com/7223066/diff/1/charmworld/jobs/scan.py#newcode136 ...
12 years, 11 months ago (2013年01月31日 14:54:09 UTC) #2
drive by whilst on holiday (ie. +0) just some comments.
https://codereview.appspot.com/7223066/diff/1/charmworld/jobs/scan.py
File charmworld/jobs/scan.py (right):
https://codereview.appspot.com/7223066/diff/1/charmworld/jobs/scan.py#newcode136
charmworld/jobs/scan.py:136: # probably a candidate for deletion.
its used for reindexing what's on disk by substituting in the main func
https://codereview.appspot.com/7223066/diff/1/charmworld/jobs/tests/test_bzr.py
File charmworld/jobs/tests/test_bzr.py (right):
https://codereview.appspot.com/7223066/diff/1/charmworld/jobs/tests/test_bzr....
charmworld/jobs/tests/test_bzr.py:17: def getServer(self, in_queue):
naming isn't per the convention of the rest of the code base.
https://codereview.appspot.com/7223066/diff/1/charmworld/jobs/tests/test_bzr....
charmworld/jobs/tests/test_bzr.py:18: server = redis.Redis()
bad indentation from cut-n-paste
https://codereview.appspot.com/7223066/diff/1/charmworld/jobs/tests/test_bzr....
charmworld/jobs/tests/test_bzr.py:25: logger = logging.getLogger("charm.bzr")
capturing a log stream should be a test helper method in a
charmworld.testing.BaseClass
https://codereview.appspot.com/7223066/diff/1/charmworld/jobs/tests/test_chan...
File charmworld/jobs/tests/test_changelog.py (right):
https://codereview.appspot.com/7223066/diff/1/charmworld/jobs/tests/test_chan...
charmworld/jobs/tests/test_changelog.py:27: def getServer(self, in_queue):
please make a job testing base class with both of these methods (named per
convention)
Sign in to reply to this message.
rharding
I'm with kapil on the need to create a job test base class with helpers ...
12 years, 11 months ago (2013年01月31日 15:43:19 UTC) #3
I'm with kapil on the need to create a job test base class with helpers for the
log capturing and redis queue setup.
https://codereview.appspot.com/7223066/diff/1/charmworld/jobs/tests/test_bzr.py
File charmworld/jobs/tests/test_bzr.py (right):
https://codereview.appspot.com/7223066/diff/1/charmworld/jobs/tests/test_bzr....
charmworld/jobs/tests/test_bzr.py:7: import redis
Garden imports, alphabetical together.
https://codereview.appspot.com/7223066/diff/1/charmworld/jobs/tests/test_chan...
File charmworld/jobs/tests/test_changelog.py (right):
https://codereview.appspot.com/7223066/diff/1/charmworld/jobs/tests/test_chan...
charmworld/jobs/tests/test_changelog.py:8: import redis
import garden
https://codereview.appspot.com/7223066/diff/1/charmworld/jobs/tests/test_lp.py
File charmworld/jobs/tests/test_lp.py (right):
https://codereview.appspot.com/7223066/diff/1/charmworld/jobs/tests/test_lp.p...
charmworld/jobs/tests/test_lp.py:6: import redis
Garden imports
https://codereview.appspot.com/7223066/diff/1/charmworld/testing/__init__.py
File charmworld/testing/__init__.py (right):
https://codereview.appspot.com/7223066/diff/1/charmworld/testing/__init__.py#...
charmworld/testing/__init__.py:102: def test_redis_queues():
can these be patch_redis_queues and be more descriptive and not require the
@nottest?
https://codereview.appspot.com/7223066/diff/1/charmworld/testing/__init__.py#...
charmworld/testing/__init__.py:133: def get_bad_mock(exception_type=Exception,
*args):
can we add a docstring on what this is for? get_bad_mock seems a bit generic
when viewed from this file.
Sign in to reply to this message.
j.c.sackett
Please take a look.
12 years, 11 months ago (2013年01月31日 18:27:38 UTC) #4
Please take a look.
Sign in to reply to this message.
rharding
lgtm thanks for the changes. Just a note to add a bug for the new ...
12 years, 11 months ago (2013年01月31日 18:42:45 UTC) #5
lgtm thanks for the changes. Just a note to add a bug for the new XXX so it's
tracked.
https://codereview.appspot.com/7223066/diff/10001/charmworld/jobs/scan.py
File charmworld/jobs/scan.py (right):
https://codereview.appspot.com/7223066/diff/10001/charmworld/jobs/scan.py#new...
charmworld/jobs/scan.py:164: # XXX j.c.sackett scan_repo is swappedx for scan
charm to reindex
Please add a bug for this and maybe it could be a drive by in the queue worker
card.
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /