Merge lp:~harlowja/cloud-init/cloud-init-really-skip-baddies into lp:~cloud-init-dev/cloud-init/trunk

Proposed by Joshua Harlow
Status: Rejected
Rejected by: Scott Moser
Proposed branch: lp:~harlowja/cloud-init/cloud-init-really-skip-baddies
Merge into: lp:~cloud-init-dev/cloud-init/trunk
Diff against target: 45 lines (+11/-5)
1 file modified
cloudinit/stages.py (+11/-5)
To merge this branch: bzr merge lp:~harlowja/cloud-init/cloud-init-really-skip-baddies
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Needs Fixing
cloud-init Commiters Pending
Review via email: mp+300802@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Server Team CI bot (server-team-bot) wrote :

FAILED: Continuous integration, rev:1259
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~harlowja/cloud-init/cloud-init-really-skip-baddies/+merge/300802/+edit-commit-message

https://server-team-jenkins.canonical.com/job/cloud-init-ci/37/
Executed test runs:
    None: https://server-team-jenkins.canonical.com/job/lp-vote-on-merge/11/console

Click here to trigger a rebuild:
https://server-team-jenkins.canonical.com/job/cloud-init-ci/37/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Scott Moser (smoser) wrote :

Hello,
Thank you for taking the time to contribute to cloud-init. Cloud-init has moved its revision control system to git. As a result, we are marking all bzr merge proposals as 'rejected'. If you would like to re-submit this proposal for review, please do so by following the current HACKING documentation at http://cloudinit.readthedocs.io/en/latest/topics/hacking.html .

Unmerged revisions

1259. By Joshua Harlow

Actually remove skipped modules

Instead of just logging about distro modules not known
to work on the host distro and then going ahead and still
running them this changes it so they are actually fixed.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cloudinit/stages.py'
2--- cloudinit/stages.py 2016-06-10 21:22:17 +0000
3+++ cloudinit/stages.py 2016-07-21 18:17:26 +0000
4@@ -808,7 +808,7 @@
5 def run_section(self, section_name):
6 raw_mods = self._read_modules(section_name)
7 mostly_mods = self._fixup_modules(raw_mods)
8- d_name = self.init.distro.name
9+ distro_name = self.init.distro.name
10
11 skipped = []
12 forced = []
13@@ -819,7 +819,7 @@
14 distros.Distro.expand_osfamily(mod.osfamilies))
15
16 # module does not declare 'distros' or lists this distro
17- if not worked_distros or d_name in worked_distros:
18+ if not worked_distros or distro_name in worked_distros:
19 continue
20
21 if name in overridden:
22@@ -827,14 +827,20 @@
23 else:
24 skipped.append(name)
25
26+ cleaned_mostly_mods = []
27+ for (mod, name, freq, args) in mostly_mods:
28+ if name in skipped:
29+ continue
30+ cleaned_mostly_mods.append((mod, name, freq, args))
31+
32 if skipped:
33 LOG.info("Skipping modules %s because they are not verified "
34 "on distro '%s'. To run anyway, add them to "
35- "'unverified_modules' in config.", skipped, d_name)
36+ "'unverified_modules' in config.", skipped, distro_name)
37 if forced:
38- LOG.info("running unverified_modules: %s", forced)
39+ LOG.info("Running unverified modules: %s", forced)
40
41- return self._run_modules(mostly_mods)
42+ return self._run_modules(cleaned_mostly_mods)
43
44
45 def fetch_base_config():