Skip to content

Commit b16444a

Browse files
committed
Allow duplicates only on demand
1 parent da2632d commit b16444a

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

Configuration/PyReleaseValidation/python/MatrixRunner.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,15 @@ def runTests(self, opt):
5050
wfs_to_run = self.workFlows
5151
withDups = False
5252
if testList:
53-
withDups = len(check_dups(testList))>0
53+
if opt.allowDuplicates:
54+
withDups = len(check_dups(testList))>0
55+
else:
56+
testList = set(testList)
5457
wfs_to_run = [wf for wf in self.workFlows if float(wf.numId) in testList for i in range(Counter(testList)[wf.numId])]
5558

5659
for n,wf in enumerate(wfs_to_run):
5760

58-
if withDups and opt.nProcs > 1: # to avoid overwriting the work areas
61+
if opt.allowDuplicates and withDups and opt.nProcs > 1: # to avoid overwriting the work areas
5962
njob = n
6063

6164
item = wf.nameId

Configuration/PyReleaseValidation/python/relval_data_highstats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
wf_number = wf_number + offset_pd * p_n
6060
wf_number = wf_number + offset_events * evs
6161
wf_number = round(wf_number,6)
62-
step_name = "Run" + pd + era.split("Run")[1] + e_key
62+
step_name = "Run" + pd + era.split("Run")[1] + "_" + e_key
6363
y = str(int(base_wf))
6464
suff = "ZB_" if "ZeroBias" in step_name else ""
6565
workflows[wf_number] = ['',[step_name,'HLTDR3_' + y,'RECONANORUN3_' + suff + 'reHLT_'+y,'HARVESTRUN3_' + suff + y]]

Configuration/PyReleaseValidation/python/relval_steps.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4597,9 +4597,7 @@ def gen2024HiMix(fragment,howMuch):
45974597
for gen in upgradeFragments:
45984598
for ds in defaultDataSets:
45994599
key=gen[:-4]+'_'+ds
4600-
version = "1"
4601-
if defaultDataSets[ds] == '' or ds =='Run4D98':
4602-
version = undefInput
4600+
version = undefInput if defaultDataSets[ds] == '' else '1'
46034601
if key in versionOverrides:
46044602
version = versionOverrides[key]
46054603
baseDataSetReleaseBetter[key]=defaultDataSets[ds]+version

Configuration/PyReleaseValidation/scripts/runTheMatrix.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def runSelected(opt):
3030
testSet = set(opt.testList)
3131
undefSet = testSet - definedSet
3232
if len(undefSet)>0: raise ValueError('Undefined workflows: '+', '.join(map(str,list(undefSet))))
33-
33+
if not opt.allowDuplicates:
34+
testList = testSet
3435
ret = 0
3536
if opt.show:
3637
mrd.show(opt.testList, opt.extended, opt.cafVeto)
@@ -186,7 +187,13 @@ def runSelected(opt):
186187
dest='recycle',
187188
type=str,
188189
default=None)
189-
190+
191+
parser.add_argument('--allowDuplicates',
192+
help='Allow to have duplicate workflow numbers in the list',
193+
dest='allowDuplicates',
194+
default=False,
195+
action='store_true')
196+
190197
parser.add_argument('--addMemPerCore',
191198
help='increase of memory per each n > 1 core: memory(n_core) = memoryOffset + (n_core-1) * memPerCore',
192199
dest='memPerCore',

0 commit comments

Comments
 (0)