Skip to content

Commit

Permalink
Merge pull request #3804 from cms-sw/datasetnameLorenzo
Browse files Browse the repository at this point in the history
additional dataset name check from Lorenzo
  • Loading branch information
efeyazgan authored Nov 20, 2024
2 parents 97c8982 + 543a565 commit 6691520
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bin/utils/request_fragment_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import subprocess
from datetime import datetime
from json import dumps
from check_dataset_names import *


parser = argparse.ArgumentParser(
formatter_class=argparse.RawDescriptionHelpFormatter,
Expand Down Expand Up @@ -840,6 +842,18 @@ def root_requests_from_ticket(ticket_prepid, include_docs=False):
if int(os.popen('grep -c grid_points '+pi_file).read()) != 0: grid_points_flag = 1
gp_size = len(gridpack_cvmfs_path_tmp)

# additional data set name check for 2024 campaigns
if "Run3" in pi and "24" in pi:
valid, message, feedback = validate_dataset_name(dn)
if not valid:
print("-----------------------------")
print(message)
print(feedback)
data_set_warns = "Invalid data set name:"
for item in feedback:
if "Invalid" in item or "missing" in item:
data_set_warns = data_set_warns+"\n --"+item+"\n"
warnings.append(data_set_warns)
pw_gp = False
pw_external_gp = False
madloop_in_gp = False
Expand Down

0 comments on commit 6691520

Please sign in to comment.