Skip to content

Commit

Permalink
Merge pull request cms-sw#50 from nclopezo/added-hlt-tests
Browse files Browse the repository at this point in the history
added the hlt tests url
  • Loading branch information
ktf committed Apr 9, 2014
2 parents 97893bc + e56cbc4 commit 2a89b18
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
24 changes: 22 additions & 2 deletions report-summary-merged-prs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ def print_results(results):
for comp in rq['comparisons']:
print comp['compared_tags']

print '\t' + 'Static Checks:' + comp['static_checks']
print '\t' + 'HLT Tests: ' + comp['hlt_tests']

print '\t' + 'Static Checks: ' + comp['static_checks']

builds_results = [res['arch']+':'+str(res['passed']) for res in comp['builds'] ]
print '\t' + 'Builds:'+ str(builds_results)
Expand Down Expand Up @@ -316,6 +318,11 @@ def find_static_results(comparisons):
rel_name = comp['compared_tags'].split('-->')[1]
comp['static_checks'] = find_one_static_check(rel_name)

def find_hlt_tests_results(comparisons):
for comp in comparisons:
rel_name = comp['compared_tags'].split('-->')[1]
comp['hlt_tests'] = find_one_hlt_test(rel_name)

def find_one_static_check(release_name):
command_to_execute = MAGIC_COMMAND_FIND_STATIC_CHECKS.replace('RELEASE_NAME',release_name)
command_to_execute = command_to_execute.replace('ARCHITECTURE','slc5_amd64_gcc481')
Expand All @@ -333,6 +340,14 @@ def find_one_static_check(release_name):
else:
return ''

def find_one_hlt_test(release_name):
command = MAGIC_COMMAND_FIND_HLT_TESTS.replace('RELEASE_NAME',release_name).replace('ARCHITECTURE','slc6_amd64_gcc481')
out = get_output_command(command)
if '200 OK' in out:
return HLT_TESTS_URL.replace('RELEASE_NAME',release_name).replace('ARCHITECTURE','slc6_amd64_gcc481')
else:
return ''

#-----------------------------------------------------------------------------------
#---- Start of execution
#-----------------------------------------------------------------------------------
Expand All @@ -352,10 +367,14 @@ MAGIC_COMMAND_FIND_RESULTS_ADDON = 'find /afs/cern.ch/cms/sw/ReleaseCandidates/

MAGIC_COMMAND_FIND_RESULTS_BUILD = 'find /afs/cern.ch/cms/sw/ReleaseCandidates/ARCHITECTURE/www -name logAnalysis.pkl'

STATIC_CHECKS_URL = 'https://cmssdt.cern.ch/SDT/jenkins-artifacts/ib-static-analysis/RELEASE_NAME/ARCHITECTURE/llvm-analysis/index.html'
STATIC_CHECKS_URL = 'https://cmssdt.cern.ch/SDT/jenkins-artifacts/ib-static-analysis/RELEASE_NAME/ARCHITECTURE/llvm-analysis/index.html'

HLT_TESTS_URL = 'https://cmssdt.cern.ch/SDT/jenkins-artifacts/HLT-Validation/RELEASE_NAME/ARCHITECTURE/'

MAGIC_COMMAND_FIND_STATIC_CHECKS = 'curl -s -k --head %s | head -n 1' % STATIC_CHECKS_URL

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']

class BuildResultsKeys:
Expand Down Expand Up @@ -406,6 +425,7 @@ for comp in requested_comparisons:
release_queue_results['comparisons'] = compare_tags(tags)

find_static_results(release_queue_results['comparisons'])
find_hlt_tests_results(release_queue_results['comparisons'])

results.append(release_queue_results)

Expand Down
14 changes: 13 additions & 1 deletion templates/merged_prs.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,21 @@
if (url != ''){
var sa_link = $("<a></a>").attr("href", url)
sa_link.append($('<span class="glyphicon glyphicon-eye-open"></span>'))
sa_link.append($('<span></span>').text('Static Analyzer'))
sa_link.append($('<span></span>').text(' Static Analyzer'))
title_cell.append(sa_link)
}
}

add_hlt_tests_link = function (title_cell,url){
if (url != ''){
var sa_link = $("<a></a>").attr("href", url)
sa_link.append($('<span class="glyphicon glyphicon-list-alt"></span>'))
sa_link.append($('<span></span>').text(' HLT Validation'))
title_cell.append(sa_link)
}
}


write_comp_title = function(comparison , tab_pane){

var current_tag = comparison.compared_tags.split("-->")[1]
Expand All @@ -199,6 +209,8 @@
//here I check the result of the relvals

add_static_analyzer_link(title_cell,comparison.static_checks)
title_cell.append($('<br>'))
add_hlt_tests_link(title_cell,comparison.hlt_tests)

var title_row = $('<tr></tr>')
var relvals_results = comparison.relvals
Expand Down

0 comments on commit 2a89b18

Please sign in to comment.