Skip to content
Snippets Groups Projects
Commit dbf67eb6 authored by Mohsen Rezaei Estabragh's avatar Mohsen Rezaei Estabragh
Browse files

elementary modifications, baselines

parent c1ebd5c5
No related branches found
No related tags found
7 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!34392WIP: Memory monitor validation,!34386Memory monitor validation
......@@ -381,6 +381,13 @@ class transformExecutor(object):
def memStats(self):
return self._memStats
@property
def memEval(self):
if self._memStats:
return calcMemExcess(self._memStats)
else:
return None
@property
def postExeCpuTime(self):
if self._exeStop and self._valStart:
......
......@@ -656,6 +656,7 @@ def exeResourceReport(exe, report):
if exe.memStats:
exeResource['memory'] = exe.memStats
exeResource['MaxVMEM'] = exe.memEval
if exe.eventCount:
exeResource['nevents'] = exe.eventCount
if exe.athenaMP:
......
......@@ -1296,3 +1296,7 @@ def bind_port(host, port):
ret=1
s.close()
return ret
def calcMemExcess(memStat):
maxVmem = memStat['Max']['maxVMEM']
return Vmem
......@@ -44,6 +44,9 @@ class trfFileReportUnitTests(unittest.TestCase):
self.myMultiFile = trfArgClasses.argFile(['file1', 'file2', 'file3'], name = 'inputTEST_MULTIFile', io = 'input', guid = {'file1': '05ACBDD0-5F5F-4E2E-974A-BBF4F4FE6F0B', 'file2': '1368D295-27C6-4A92-8187-704C2A6A5864', 'file3': 'F5BA4602-6CA7-4111-B3C7-CB06486B30D9'})
self.myMultiFileReport = trfFileReport(self.myMultiFile)
self.mytrfReport = trfReport() # trfArgClasses.argFile(['file1'], name = 'inputTEST_SINGLEFile', io = 'input', guid = {'file1': '05ACBDD0-5F5F-4E2E-974A-BBF4F4FE6F0B'}) ##??? should be contain of all keys???
self.myJobReport = trfJobReport(self.mytrfReport)
def tearDown(self):
for f in 'file1', 'file2', 'file3':
try:
......@@ -66,6 +69,8 @@ class trfFileReportUnitTests(unittest.TestCase):
self.assertEqual(self.myMultiFileReport.python(type = 'full'), {'argName': 'inputTEST_MULTIFile', 'subFiles': [{'file_guid': '05ACBDD0-5F5F-4E2E-974A-BBF4F4FE6F0B', 'name': 'file1', 'file_size': 20}, {'file_guid': '1368D295-27C6-4A92-8187-704C2A6A5864', 'name': 'file2', 'file_size': 13}, {'file_guid': 'F5BA4602-6CA7-4111-B3C7-CB06486B30D9', 'name': 'file3', 'file_size': 174}], 'type': None, 'dataset': None})
self.assertEqual(self.myMultiFileReport.python(type = 'name'), {'subFiles': [{'file_guid': '05ACBDD0-5F5F-4E2E-974A-BBF4F4FE6F0B', 'name': 'file1'}, {'file_guid': '1368D295-27C6-4A92-8187-704C2A6A5864', 'name': 'file2'}, {'file_guid': 'F5BA4602-6CA7-4111-B3C7-CB06486B30D9', 'name': 'file3'}], 'nentries': 'UNDEFINED', 'dataset': None})
def test_JobReportPython(self):
self.assertEqual(self.myJobReport.python(),{} )
class machineReportUnitTests(unittest.TestCase):
# Following tests don't test content, just that the generation of the objects happens correctly
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment