~andrewjbeach/juju-ci-tools/make-local-patcher

« back to all changes in this revision

Viewing changes to check_blockers.py

  • Committer: Curtis Hovey
  • Date: 2016-04-10 15:23:18 UTC
  • Revision ID: curtis@canonical.com-20160410152318-ntfymsv9eiw63vt2
Addedd daily streams to get_amy.py get_ami.py tests/test_get_ami.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
        raise ValueError('tags must be a list of bug tags')
83
83
    bug_tags = tags
84
84
    bugs = {}
85
 
    if branch.startswith('1.'):
86
 
        # Historic Juju 1.x
87
 
        project = lp.projects['juju-core']
88
 
    else:
89
 
        # Juju 2.x.
90
 
        project = lp.projects['juju']
 
85
    project = lp.projects['juju-core']
91
86
    if branch == 'master':
92
87
        # Lp implicitly assigns bugs to trunk, which is not a series query.
93
88
        target = project
133
128
    """Update the critical blocker+ci bugs for the branch to Fix Released."""
134
129
    changes = []
135
130
    for bug_id, bug_task in bugs.items():
136
 
        if 'intermittent-failure' in bug_task.bug.tags:
137
 
            changes.append('Skipping intermittent-failure %s' % bug_task.title)
138
 
            continue
139
131
        changes.append('Updated %s' % bug_task.title)
140
132
        bug_task.status = 'Fix Released'
141
133
        if not dry_run: