Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3275)

Issue 7223066: Adds queue handling tests for jobs

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by j.c.sackett
Modified:
11 years, 2 months ago
Reviewers:
rharding, hazmat, mp+145870
Visibility:
Public.

Description

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
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

Messages

Total messages: 5
j.c.sackett
Please take a look.
11 years, 2 months ago (2013-01-31 14:36:11 UTC) #1
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 ...
11 years, 2 months ago (2013-01-31 14:54:09 UTC) #2
rharding
I'm with kapil on the need to create a job test base class with helpers ...
11 years, 2 months ago (2013-01-31 15:43:19 UTC) #3
j.c.sackett
Please take a look.
11 years, 2 months ago (2013-01-31 18:27:38 UTC) #4
rharding
11 years, 2 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