Merge lp:~fginther/ubuntu-ci-services-itself/test-only-ticket-binaries into lp:ubuntu-ci-services-itself

Proposed by Francis Ginther
Status: Merged
Approved by: Francis Ginther
Approved revision: 392
Merged at revision: 394
Proposed branch: lp:~fginther/ubuntu-ci-services-itself/test-only-ticket-binaries
Merge into: lp:ubuntu-ci-services-itself
Diff against target: 23 lines (+8/-1)
1 file modified
lander/bin/lander_service_wrapper.py (+8/-1)
To merge this branch: bzr merge lp:~fginther/ubuntu-ci-services-itself/test-only-ticket-binaries
Reviewer Review Type Date Requested Status
Chris Johnston (community) Approve
Review via email: mp+211122@code.launchpad.net

Commit message

Only pass the per-ticket binaries to the test-runner to avoid longer and longer test times.

Description of the change

Only pass the per-ticket binaries to the test-runner to avoid longer and longer test times.

This is a change to the original plan. Usability testing showed that the test-runner phase becomes very long after processing a few successful tickets. This change allows us to speed that up until we support something like running tests in parallel.

The old behavior can be re-created by just specifying multiple binaries when creating the ticket.

To post a comment you must log in.
Revision history for this message
Francis Ginther (fginther) wrote :

Tested here:

http://15.125.109.157/ticket.html?ticket_id=2

The first test added lintian4python, the second added "python-bs4,python3-bs4". The test runner logs show that only python-bs4 and python3-bs4 were tested.

Revision history for this message
Chris Johnston (cjohnston) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lander/bin/lander_service_wrapper.py'
2--- lander/bin/lander_service_wrapper.py 2014-03-14 17:12:57 +0000
3+++ lander/bin/lander_service_wrapper.py 2014-03-14 18:59:12 +0000
4@@ -325,11 +325,18 @@
5 # The queue should be unique
6 queue = '%s-testrunner' % config['master']['progress_trigger']
7 request_parameters = ticket.get_full_ticket()
8+ packages = []
9+ try:
10+ packages = request_parameters.get('added_binaries', None).split(',')
11+ except AttributeError:
12+ # Expected when added_binaries is None.
13+ pass
14+
15 params = {
16 'ticket_id': config['master']['request_id'],
17 'cancel_url': os.environ['BUILD_URL'] + 'api/json',
18 'image_id': config['image_builder']['image_id'],
19- 'package_list': _get_binary_packages(ticket, request_parameters),
20+ 'package_list': packages,
21 'progress_trigger': queue,
22 }
23 ticket.set_testing_waiting()

Subscribers

People subscribed via source and target branches