Skip to content

Commit

Permalink
Merge pull request cms-sw#100 from nclopezo/get-archs-configmap
Browse files Browse the repository at this point in the history
New IB Pages: reads the architectures from config.map
  • Loading branch information
nclopezo committed Aug 5, 2014
2 parents 7e9900c + f35daed commit 5dfd65d
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions report-summary-merged-prs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ requested_comparisons = requested_comparisons_param.split(",")
#---- Fuctions
#-----------------------------------------------------------------------------------

# gets the list of architectures by reading config.map
def get_architectures_from_config_map():
f = open('config.map', "r")
for line in f.readlines():
arch = line.split(';')[0].split('=')[1]
if arch not in ARCHITECTURES:
ARCHITECTURES.append( arch )

print 'ARCHITECTURES'
print ARCHITECTURES
f.close()

# Tells if the pr comes from a merge commit it reads the first part of the line that
# was obtained from git log --graph
def is_pr_from_merge_commit(graph_part):
Expand Down Expand Up @@ -537,9 +549,10 @@ MAGIC_COMMAND_FIND_STATIC_CHECKS = 'curl -s -k --head %s | head -n 1' % STATIC_C

MAGIC_COMMAND_FIND_HLT_TESTS = 'curl -s -k --head %s | head -n 1' % HLT_TESTS_URL

ARCHITECTURES = [ 'slc5_amd64_gcc462' , 'slc6_amd64_gcc472' , 'slc5_amd64_gcc472' ,
'slc5_amd64_gcc481' , 'slc6_amd64_gcc481' , 'slc6_amd64_gcc490' ,
'slc6_mic_gcc481' , 'osx108_amd64_gcc481' , 'slc6_amd64_gcc491' ]
MAGIC_COMMAND_GET_CONGIG_MAP = 'wget --no-check-certificate https://raw.githubusercontent.com/cms-sw/cmsdist/IB/CMSSW_7_0_X/stable/config.map'

# this will be filled using config.map by get_architectures_from_config_map()
ARCHITECTURES = []

SPECIAL_RELEASES = ['SLHC','BOOSTIO','ROOT6','THREADED','GEANT10','DEVEL','CLANG','DEBUG']

Expand Down Expand Up @@ -569,6 +582,10 @@ class PossibleUnitTestResults:

results = []

get_output_command( MAGIC_COMMAND_GET_CONGIG_MAP )

get_architectures_from_config_map()

for comp in requested_comparisons:
start_tag = comp.split("..")[0]
end_tag = comp.split("..")[1]
Expand Down

0 comments on commit 5dfd65d

Please sign in to comment.