Merge lp:~robru/britney/optional-heidi into lp:~ubuntu-release/britney/britney2-ubuntu

Proposed by Robert Bruce Park
Status: Merged
Merged at revision: 562
Proposed branch: lp:~robru/britney/optional-heidi
Merge into: lp:~ubuntu-release/britney/britney2-ubuntu
Diff against target: 35 lines (+9/-8)
1 file modified
britney.py (+9/-8)
To merge this branch: bzr merge lp:~robru/britney/optional-heidi
Reviewer Review Type Date Requested Status
Martin Pitt (community) Approve
Ubuntu Release Team Pending
Review via email: mp+283246@code.launchpad.net

Description of the change

Wasn't sure how to write tests for this but you can see in staging that heidi is not in the logs:

https://requests.ci-train.staging.ubuntu.com/static/britney/last-run.txt

And the heidi files are not among the output data:

https://requests.ci-train.staging.ubuntu.com/static/britney/report.txt

(just grep for heidi in both of those files and you should see none)

To post a comment you must log in.
lp:~robru/britney/optional-heidi updated
563. By Robert Bruce Park

Oops.

Revision history for this message
Robert Bruce Park (robru) wrote :

One question, this just disables the writing to disk. Is it possible to disable the calculation of this information as well out of that needed for other things?

Revision history for this message
Martin Pitt (pitti) wrote :

LGTM, thank you!

> Is it possible to disable the calculation of this information as well out of that needed for other things?

AFAICS this just passes on self.sources and self.binaries to write_heidi(), and these lists are absolutely required for britney's functionality. So I don't think there's anything extra to disable here.

review: Approve
Revision history for this message
Martin Pitt (pitti) wrote :

Can you please send this to the Debian BTS as well?

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'britney.py'
2--- britney.py 2016-01-19 20:05:32 +0000
3+++ britney.py 2016-01-20 02:17:12 +0000
4@@ -453,7 +453,7 @@
5 not getattr(self.options, k.lower()):
6 setattr(self.options, k.lower(), v)
7
8- if not hasattr(self.options, "heidi_delta_output"):
9+ if self.options.heidi_output and not hasattr(self.options, "heidi_delta_output"):
10 self.options.heidi_delta_output = self.options.heidi_output + "Delta"
11
12 self.options.nobreakall_arches = self.options.nobreakall_arches.split()
13@@ -3023,14 +3023,15 @@
14 except AttributeError:
15 self.write_dates(self.options.testing, self.dates)
16
17- # write HeidiResult
18- self.__log("Writing Heidi results to %s" % self.options.heidi_output)
19- write_heidi(self.options.heidi_output, self.sources["testing"],
20- self.binaries["testing"])
21+ if self.options.heidi_output:
22+ # write HeidiResult
23+ self.__log("Writing Heidi results to %s" % self.options.heidi_output)
24+ write_heidi(self.options.heidi_output, self.sources["testing"],
25+ self.binaries["testing"])
26
27- self.__log("Writing delta to %s" % self.options.heidi_delta_output)
28- write_heidi_delta(self.options.heidi_delta_output,
29- self.all_selected)
30+ self.__log("Writing delta to %s" % self.options.heidi_delta_output)
31+ write_heidi_delta(self.options.heidi_delta_output,
32+ self.all_selected)
33
34
35 self.printuninstchange()

Subscribers

People subscribed via source and target branches