~veebers/ci-director/ignore-multibranch-jobs

« back to all changes in this revision

Viewing changes to cidirector/start_builds.py

  • Committer: Aaron Bentley
  • Date: 2016-08-29 16:56:58 UTC
  • mfrom: (182.1.1 reduce-verbosity)
  • Revision ID: aaron.bentley@canonical.com-20160829165658-0oa9urj2fukvjen4
Reduce the verbosity of start-builds and update-outcome.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
    unsatisfied_prerequisites = {}
54
54
    for job in pending:
55
55
        if job.test_id in active_jobs:
56
 
            logging.info('{} already active.'.format(job.test_id))
 
56
            logging.debug('{} already active.'.format(job.test_id))
57
57
            continue
58
58
        if job.test_id not in enabled_jobs:
59
 
            logging.info('{} not enabled.'.format(job.test_id))
 
59
            logging.debug('{} not enabled.'.format(job.test_id))
60
60
            continue
61
61
        blockers = [p for p in job.prerequisite_jobs
62
62
                    if jobs[p].status != SUCCEEDED]
68
68
        active_buildable = active_jobs.union(buildable)
69
69
        active_conflicts = active_buildable.intersection(job.conflicts)
70
70
        if len(active_conflicts) > 0:
71
 
            logging.info('{} conflicts: ({})'.format(job.test_id, ', '.join(
 
71
            logging.debug('{} conflicts: ({})'.format(job.test_id, ', '.join(
72
72
                active_conflicts)))
73
73
            continue
74
74
        buildable.add(job.test_id)
75
75
    for blocker, blocked in sorted(unsatisfied_prerequisites.items()):
76
 
        logging.info('Prereq "{}" prevents: {}'.format(
 
76
        logging.debug('Prereq "{}" prevents: {}'.format(
77
77
            blocker, ', '.join(sorted(blocked))))
78
78
    return buildable, {p.test_id for p in pending}
79
79