コード例 #1
0
                all_labels[cat + "-" + lab] = LABEL_TYPES[lab]
        for lab in COMPARISON_LABELS:
            all_labels[lab] = COMPARISON_LABELS[lab]

    if opts.externals:
        for repo_name in EXTERNAL_REPOS:
            setRepoLabels(gh,
                          repo_name,
                          all_labels,
                          opts.dryRun,
                          ignore=CMSSW_REPOS)

    if opts.cmssw:
        for lab in CMSSW_BUILD_LABELS:
            all_labels[lab] = CMSSW_BUILD_LABELS[lab]
        specs = get_config_map_properties()
        for s in specs:
            if 'DISABLED' in s: continue
            if 'IB_ONLY' in s: continue
            arch = s['SCRAM_ARCH']
            for ltype in ['build', 'installation', 'tool-conf', 'upload']:
                all_labels['%s-%s-error' %
                           (arch, ltype)] = LABEL_COLORS["rejected"]
                all_labels['%s-%s-ok' %
                           (arch, ltype)] = LABEL_COLORS["approved"]
            for inproc in [
                    'building', 'tool-conf-building', 'uploading',
                    'build-queued', 'tool-conf-waiting'
            ]:
                all_labels[arch + '-' + inproc] = LABEL_COLORS["hold"]
            all_labels[arch + '-finished'] = LABEL_COLORS["approved"]
コード例 #2
0
  if opts.cmssw or opts.externals:
    all_labels = COMMON_LABELS
    for cat in COMMON_CATEGORIES+EXTERNAL_CATEGORIES+list(CMSSW_CATEGORIES.keys()):
      for lab in LABEL_TYPES:
        all_labels[cat+"-"+lab]=LABEL_TYPES[lab]
    for lab in COMPARISON_LABELS:
      all_labels[lab] = COMPARISON_LABELS[lab]

  if opts.externals:
    for repo_name in EXTERNAL_REPOS:
      setRepoLabels (gh, repo_name, all_labels, opts.dryRun, ignore=CMSSW_REPOS)

  if opts.cmssw:
    for lab in CMSSW_BUILD_LABELS:
      all_labels[lab] = CMSSW_BUILD_LABELS[lab]
    specs = get_config_map_properties()
    for s in specs:
      if 'DISABLED' in s: continue
      if 'IB_ONLY' in s: continue
      arch = s['SCRAM_ARCH']
      for ltype in ['build', 'installation', 'tool-conf', 'upload']:
        all_labels['%s-%s-error' % (arch, ltype)] = LABEL_COLORS["rejected"]
        all_labels['%s-%s-ok' % (arch, ltype)] =    LABEL_COLORS["approved"]
      for inproc in [ 'building', 'tool-conf-building', 'uploading', 'build-queued', 'tool-conf-waiting']:
        all_labels[arch+'-'+inproc] = LABEL_COLORS["hold"]
      all_labels[arch+'-finished'] = LABEL_COLORS["approved"]
    for repo_name in CMSSW_REPOS:
      setRepoLabels (gh, repo_name, all_labels, opts.dryRun)

  if opts.users:
    from glob import glob