Skip to content

Commit

Permalink
Merge pull request cms-sw#77 from nclopezo/change-hlt-static-url
Browse files Browse the repository at this point in the history
changed the url for checking the hlt and static tests
  • Loading branch information
nclopezo committed Jun 5, 2014
2 parents 688f19c + 74604e5 commit f664465
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions report-summary-merged-prs
Original file line number Diff line number Diff line change
Expand Up @@ -440,24 +440,25 @@ 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')
out,err,ret_code = get_output_command(command_to_execute)
if '200 OK' in out or '302 ' in out:
return STATIC_CHECKS_URL.replace('RELEASE_NAME',release_name).replace('ARCHITECTURE','slc5_amd64_gcc481')
if '200 OK' in out:
return STATIC_CHECKS_URL.replace('RELEASE_NAME',release_name).replace('ARCHITECTURE','slc5_amd64_gcc481').replace('vocms12','cmssdt')
else:
#If I don't find it in slc5 I look for it in slc6
print 'looking for resuls in slc6'
command_to_execute = command_to_execute.replace('slc5_amd64_gcc481','slc6_amd64_gcc481')
out,err,ret_code = get_output_command(command_to_execute)
if '200 OK' in out or '302 ' in out:
if '200 OK' in out:
print 'results found for slc6'
return STATIC_CHECKS_URL.replace('RELEASE_NAME',release_name).replace('ARCHITECTURE','slc6_amd64_gcc481')
return STATIC_CHECKS_URL.replace('RELEASE_NAME',release_name).replace('ARCHITECTURE','slc6_amd64_gcc481').replace('vocms12','cmssdt')
else:
return ''

def find_one_hlt_test(release_name):
command = MAGIC_COMMAND_FIND_HLT_TESTS.replace('RELEASE_NAME',release_name)
out,err,ret_code = get_output_command(command)
if '200 OK' in out or '302 ' in out:
return HLT_TESTS_URL.replace('RELEASE_NAME',release_name)
if '200 OK' in out:
print 'found'
return HLT_TESTS_URL.replace('RELEASE_NAME',release_name).replace('vocms12','cmssdt').replace('vocms12','cmssdt')
else:
return ''

Expand Down Expand Up @@ -528,9 +529,9 @@ 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://vocms12.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/'
HLT_TESTS_URL = 'https://vocms12.cern.ch/SDT/jenkins-artifacts/HLT-Validation/RELEASE_NAME/'

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

Expand Down

0 comments on commit f664465

Please sign in to comment.