Skip to content

Commit

Permalink
Merge pull request #3678 from cms-sw/extension_exceptions
Browse files Browse the repository at this point in the history
adding extension exception list and check
  • Loading branch information
efeyazgan committed Apr 2, 2024
2 parents 7e0e4c3 + 42f90e7 commit 23d6dcf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/utils/exceptions.txt
@@ -1,2 +1,3 @@
TOP-RunIISummer20UL17wmLHEGEN-00008
TOP-RunIISummer20UL18wmLHEGEN-00021
HIG-RunIISummer20UL16wmLHEGENAPV-13892
1 change: 1 addition & 0 deletions bin/utils/extension_exceptions.txt
@@ -0,0 +1 @@
HIG-RunIISummer20UL16wmLHEGENAPV-13892
7 changes: 6 additions & 1 deletion bin/utils/request_fragment_check.py
Expand Up @@ -685,9 +685,14 @@ def root_requests_from_ticket(ticket_prepid, include_docs=False):
data_f2_strip=exception_for_ul_check(data_f2_strip,cross_section_fragment)
data_f2_clone_strip=re.sub(r'\s+', ' ', data_f2_clone).strip()
data_f2_clone_strip=exception_for_ul_check(data_f2_clone_strip,cross_section_fragment)
ext_excep = 0
os.system('wget -q https://raw.githubusercontent.com/cms-sw/genproductions/master/bin/utils/extension_exceptions.txt -O extension_exceptions.txt')
with open('extension_exceptions.txt') as file_ext_ex:
for line in file_ext_ex:
if pi in line: ext_excep = 1
if (data_f2_strip == data_f2_clone_strip) == True:
print("[OK] The base request and the cloned request used for the extension have the same fragment.")
else:
elif ext_excep == 0:
errors.append("The base request "+pi+" and the cloned request "+pi_clone_entries+" used for the extension don't have the same fragment! Here is the diff of the base and and the cloned request: \n"+(os.popen('diff '+pi+' '+pi_clone_entries).read()))
f1.close()
f2.write(data_f2)
Expand Down

0 comments on commit 23d6dcf

Please sign in to comment.