Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scram arch check for sherpa converted warning #3637

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions bin/utils/request_fragment_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,10 +770,12 @@ def root_requests_from_ticket(ticket_prepid, include_docs=False):
if len(scram_sherpa):
scram_sherpa = scram_sherpa[0]
print ("scram_arch for Sherpa = ",scram_sherpa)
if scram_sherpa == scram_arch:
print ("[OK] scram_arch for Sherpa and CMSSW are the same")
else:
errors.append("scram_arch for Sherpa and CMSSW are NOT the same. But note that this check is done based on folder names except the one for CMSSW")
print(len(scram_sherpa[0]))
if len(scram_sherpa[0]) != 0:
if scram_sherpa == scram_arch:
print ("[OK] scram_arch for Sherpa and CMSSW are the same")
else:
errors.append("scram_arch for Sherpa and CMSSW are NOT the same. But note that this check is done based on folder names except the one for CMSSW")
else:
warnings.append("scram_arch for Sherpa unidentifiable")
sv_tmp = re.findall("sherpa/.*/",gridpack_cvmfs_path_tmp)[0].split("/")[1].split(".")
Expand All @@ -786,7 +788,8 @@ def root_requests_from_ticket(ticket_prepid, include_docs=False):
openloops_flag = True
OL_list = os.popen('grep openloops '+pi_file).read().split("/")
scram_OL = [s for s in OL_list if "gcc" in s]
if len(scram_OL):
print(scram_OL)
if len(scram_OL) and len(scram_sherpa):
scram_OL = scram_OL[0]
print ("scram_arch for OpenLoops = ",scram_OL)
if scram_OL == scram_sherpa:
Expand Down