reqmgr2 2.3.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- PSetTweaks/PSetTweak.py +449 -0
- PSetTweaks/WMTweak.py +621 -0
- PSetTweaks/__init__.py +3 -0
- Utils/CPMetrics.py +270 -0
- Utils/CertTools.py +62 -0
- Utils/EmailAlert.py +50 -0
- Utils/ExtendedUnitTestCase.py +62 -0
- Utils/FileTools.py +182 -0
- Utils/IteratorTools.py +80 -0
- Utils/MathUtils.py +31 -0
- Utils/MemoryCache.py +119 -0
- Utils/Patterns.py +24 -0
- Utils/Pipeline.py +137 -0
- Utils/PortForward.py +97 -0
- Utils/ProcessStats.py +103 -0
- Utils/PythonVersion.py +17 -0
- Utils/Signals.py +36 -0
- Utils/TemporaryEnvironment.py +27 -0
- Utils/Throttled.py +227 -0
- Utils/Timers.py +130 -0
- Utils/Timestamps.py +86 -0
- Utils/TokenManager.py +143 -0
- Utils/Tracing.py +60 -0
- Utils/TwPrint.py +98 -0
- Utils/Utilities.py +308 -0
- Utils/__init__.py +11 -0
- WMCore/ACDC/Collection.py +57 -0
- WMCore/ACDC/CollectionTypes.py +12 -0
- WMCore/ACDC/CouchCollection.py +67 -0
- WMCore/ACDC/CouchFileset.py +238 -0
- WMCore/ACDC/CouchService.py +73 -0
- WMCore/ACDC/DataCollectionService.py +485 -0
- WMCore/ACDC/Fileset.py +94 -0
- WMCore/ACDC/__init__.py +11 -0
- WMCore/Algorithms/Alarm.py +39 -0
- WMCore/Algorithms/MathAlgos.py +274 -0
- WMCore/Algorithms/MiscAlgos.py +67 -0
- WMCore/Algorithms/ParseXMLFile.py +115 -0
- WMCore/Algorithms/Permissions.py +27 -0
- WMCore/Algorithms/Singleton.py +58 -0
- WMCore/Algorithms/SubprocessAlgos.py +129 -0
- WMCore/Algorithms/__init__.py +7 -0
- WMCore/Cache/GenericDataCache.py +98 -0
- WMCore/Cache/WMConfigCache.py +572 -0
- WMCore/Cache/__init__.py +0 -0
- WMCore/Configuration.py +651 -0
- WMCore/DAOFactory.py +47 -0
- WMCore/DataStructs/File.py +177 -0
- WMCore/DataStructs/Fileset.py +140 -0
- WMCore/DataStructs/Job.py +182 -0
- WMCore/DataStructs/JobGroup.py +142 -0
- WMCore/DataStructs/JobPackage.py +49 -0
- WMCore/DataStructs/LumiList.py +734 -0
- WMCore/DataStructs/Mask.py +219 -0
- WMCore/DataStructs/MathStructs/ContinuousSummaryHistogram.py +197 -0
- WMCore/DataStructs/MathStructs/DiscreteSummaryHistogram.py +92 -0
- WMCore/DataStructs/MathStructs/SummaryHistogram.py +117 -0
- WMCore/DataStructs/MathStructs/__init__.py +0 -0
- WMCore/DataStructs/Pickleable.py +24 -0
- WMCore/DataStructs/Run.py +256 -0
- WMCore/DataStructs/Subscription.py +175 -0
- WMCore/DataStructs/WMObject.py +47 -0
- WMCore/DataStructs/WorkUnit.py +112 -0
- WMCore/DataStructs/Workflow.py +60 -0
- WMCore/DataStructs/__init__.py +8 -0
- WMCore/Database/CMSCouch.py +1349 -0
- WMCore/Database/ConfigDBMap.py +29 -0
- WMCore/Database/CouchUtils.py +118 -0
- WMCore/Database/DBCore.py +198 -0
- WMCore/Database/DBCreator.py +113 -0
- WMCore/Database/DBExceptionHandler.py +57 -0
- WMCore/Database/DBFactory.py +110 -0
- WMCore/Database/DBFormatter.py +177 -0
- WMCore/Database/Dialects.py +13 -0
- WMCore/Database/ExecuteDAO.py +327 -0
- WMCore/Database/MongoDB.py +241 -0
- WMCore/Database/MySQL/Destroy.py +42 -0
- WMCore/Database/MySQL/ListUserContent.py +20 -0
- WMCore/Database/MySQL/__init__.py +9 -0
- WMCore/Database/MySQLCore.py +132 -0
- WMCore/Database/Oracle/Destroy.py +56 -0
- WMCore/Database/Oracle/ListUserContent.py +19 -0
- WMCore/Database/Oracle/__init__.py +9 -0
- WMCore/Database/ResultSet.py +44 -0
- WMCore/Database/Transaction.py +91 -0
- WMCore/Database/__init__.py +9 -0
- WMCore/Database/ipy_profile_couch.py +438 -0
- WMCore/FwkJobReport/FileInfo.py +131 -0
- WMCore/FwkJobReport/Report.py +1646 -0
- WMCore/FwkJobReport/ReportEmu.py +122 -0
- WMCore/FwkJobReport/XMLParser.py +606 -0
- WMCore/FwkJobReport/__init__.py +15 -0
- WMCore/GroupUser/CouchObject.py +127 -0
- WMCore/GroupUser/Decorators.py +51 -0
- WMCore/GroupUser/Group.py +33 -0
- WMCore/GroupUser/Interface.py +73 -0
- WMCore/GroupUser/User.py +96 -0
- WMCore/GroupUser/__init__.py +11 -0
- WMCore/Lexicon.py +836 -0
- WMCore/REST/Auth.py +202 -0
- WMCore/REST/CherryPyPeriodicTask.py +166 -0
- WMCore/REST/Error.py +333 -0
- WMCore/REST/Format.py +642 -0
- WMCore/REST/HeartbeatMonitorBase.py +90 -0
- WMCore/REST/Main.py +623 -0
- WMCore/REST/Server.py +2435 -0
- WMCore/REST/Services.py +24 -0
- WMCore/REST/Test.py +120 -0
- WMCore/REST/Tools.py +38 -0
- WMCore/REST/Validation.py +250 -0
- WMCore/REST/__init__.py +1 -0
- WMCore/ReqMgr/CherryPyThreads/AuxCacheUpdateTasks.py +31 -0
- WMCore/ReqMgr/CherryPyThreads/BuildParentLock.py +116 -0
- WMCore/ReqMgr/CherryPyThreads/CouchDBCleanup.py +110 -0
- WMCore/ReqMgr/CherryPyThreads/HeartbeatMonitor.py +154 -0
- WMCore/ReqMgr/CherryPyThreads/StatusChangeTasks.py +131 -0
- WMCore/ReqMgr/CherryPyThreads/StepChainParentageFixTask.py +104 -0
- WMCore/ReqMgr/CherryPyThreads/__init__.py +0 -0
- WMCore/ReqMgr/DataStructs/AuthzByStatus.py +113 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/CAMPAIGN_CONFIG.py +116 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/DAS_RESULT_FILTER.py +3 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/EDITABLE_SPLITTING_PARAM_CONFIG.py +42 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/UNIFIED_CONFIG.py +240 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/__init__.py +0 -0
- WMCore/ReqMgr/DataStructs/ReqMgrConfigDataCache.py +65 -0
- WMCore/ReqMgr/DataStructs/Request.py +293 -0
- WMCore/ReqMgr/DataStructs/RequestError.py +21 -0
- WMCore/ReqMgr/DataStructs/RequestStatus.py +209 -0
- WMCore/ReqMgr/DataStructs/RequestType.py +13 -0
- WMCore/ReqMgr/DataStructs/__init__.py +0 -0
- WMCore/ReqMgr/ReqMgrCouch.py +74 -0
- WMCore/ReqMgr/Service/Auxiliary.py +319 -0
- WMCore/ReqMgr/Service/RegExp.py +16 -0
- WMCore/ReqMgr/Service/Request.py +681 -0
- WMCore/ReqMgr/Service/RequestAdditionalInfo.py +317 -0
- WMCore/ReqMgr/Service/RestApiHub.py +68 -0
- WMCore/ReqMgr/Service/WMStatsInfo.py +46 -0
- WMCore/ReqMgr/Service/__init__.py +0 -0
- WMCore/ReqMgr/Tools/__init__.py +0 -0
- WMCore/ReqMgr/Tools/cms.py +243 -0
- WMCore/ReqMgr/Utils/AuxValidation.py +53 -0
- WMCore/ReqMgr/Utils/Validation.py +341 -0
- WMCore/ReqMgr/Utils/__init__.py +0 -0
- WMCore/ReqMgr/Web/ReqMgrService.py +780 -0
- WMCore/ReqMgr/Web/__init__.py +0 -0
- WMCore/ReqMgr/Web/tools.py +211 -0
- WMCore/ReqMgr/Web/utils.py +291 -0
- WMCore/ReqMgr/WebGui/FrontPage.py +38 -0
- WMCore/ReqMgr/WebGui/__init__.py +0 -0
- WMCore/ReqMgr/__init__.py +1 -0
- WMCore/Services/AlertManager/AlertManagerAPI.py +111 -0
- WMCore/Services/AlertManager/__init__.py +0 -0
- WMCore/Services/CRIC/CRIC.py +238 -0
- WMCore/Services/CRIC/__init__.py +0 -0
- WMCore/Services/DBS/DBS3Reader.py +1044 -0
- WMCore/Services/DBS/DBSConcurrency.py +44 -0
- WMCore/Services/DBS/DBSErrors.py +113 -0
- WMCore/Services/DBS/DBSReader.py +23 -0
- WMCore/Services/DBS/DBSUtils.py +139 -0
- WMCore/Services/DBS/DBSWriterObjects.py +381 -0
- WMCore/Services/DBS/ProdException.py +133 -0
- WMCore/Services/DBS/__init__.py +8 -0
- WMCore/Services/FWJRDB/FWJRDBAPI.py +118 -0
- WMCore/Services/FWJRDB/__init__.py +0 -0
- WMCore/Services/HTTPS/HTTPSAuthHandler.py +66 -0
- WMCore/Services/HTTPS/__init__.py +0 -0
- WMCore/Services/LogDB/LogDB.py +201 -0
- WMCore/Services/LogDB/LogDBBackend.py +191 -0
- WMCore/Services/LogDB/LogDBExceptions.py +11 -0
- WMCore/Services/LogDB/LogDBReport.py +85 -0
- WMCore/Services/LogDB/__init__.py +0 -0
- WMCore/Services/MSPileup/__init__.py +0 -0
- WMCore/Services/MSUtils/MSUtils.py +54 -0
- WMCore/Services/MSUtils/__init__.py +0 -0
- WMCore/Services/McM/McM.py +173 -0
- WMCore/Services/McM/__init__.py +8 -0
- WMCore/Services/MonIT/Grafana.py +133 -0
- WMCore/Services/MonIT/__init__.py +0 -0
- WMCore/Services/PyCondor/PyCondorAPI.py +154 -0
- WMCore/Services/PyCondor/PyCondorUtils.py +105 -0
- WMCore/Services/PyCondor/__init__.py +0 -0
- WMCore/Services/ReqMgr/ReqMgr.py +261 -0
- WMCore/Services/ReqMgr/__init__.py +0 -0
- WMCore/Services/ReqMgrAux/ReqMgrAux.py +419 -0
- WMCore/Services/ReqMgrAux/__init__.py +0 -0
- WMCore/Services/RequestDB/RequestDBReader.py +267 -0
- WMCore/Services/RequestDB/RequestDBWriter.py +39 -0
- WMCore/Services/RequestDB/__init__.py +0 -0
- WMCore/Services/Requests.py +624 -0
- WMCore/Services/Rucio/Rucio.py +1287 -0
- WMCore/Services/Rucio/RucioUtils.py +74 -0
- WMCore/Services/Rucio/__init__.py +0 -0
- WMCore/Services/RucioConMon/RucioConMon.py +128 -0
- WMCore/Services/RucioConMon/__init__.py +0 -0
- WMCore/Services/Service.py +400 -0
- WMCore/Services/StompAMQ/__init__.py +0 -0
- WMCore/Services/TagCollector/TagCollector.py +155 -0
- WMCore/Services/TagCollector/XMLUtils.py +98 -0
- WMCore/Services/TagCollector/__init__.py +0 -0
- WMCore/Services/UUIDLib.py +13 -0
- WMCore/Services/UserFileCache/UserFileCache.py +160 -0
- WMCore/Services/UserFileCache/__init__.py +8 -0
- WMCore/Services/WMAgent/WMAgent.py +63 -0
- WMCore/Services/WMAgent/__init__.py +0 -0
- WMCore/Services/WMArchive/CMSSWMetrics.py +526 -0
- WMCore/Services/WMArchive/DataMap.py +463 -0
- WMCore/Services/WMArchive/WMArchive.py +33 -0
- WMCore/Services/WMArchive/__init__.py +0 -0
- WMCore/Services/WMBS/WMBS.py +97 -0
- WMCore/Services/WMBS/__init__.py +0 -0
- WMCore/Services/WMStats/DataStruct/RequestInfoCollection.py +300 -0
- WMCore/Services/WMStats/DataStruct/__init__.py +0 -0
- WMCore/Services/WMStats/WMStatsPycurl.py +145 -0
- WMCore/Services/WMStats/WMStatsReader.py +445 -0
- WMCore/Services/WMStats/WMStatsWriter.py +273 -0
- WMCore/Services/WMStats/__init__.py +0 -0
- WMCore/Services/WMStatsServer/WMStatsServer.py +134 -0
- WMCore/Services/WMStatsServer/__init__.py +0 -0
- WMCore/Services/WorkQueue/WorkQueue.py +492 -0
- WMCore/Services/WorkQueue/__init__.py +0 -0
- WMCore/Services/__init__.py +8 -0
- WMCore/Services/pycurl_manager.py +574 -0
- WMCore/Storage/Backends/AWSS3Impl.py +110 -0
- WMCore/Storage/Backends/CPImpl.py +125 -0
- WMCore/Storage/Backends/FNALImpl.py +229 -0
- WMCore/Storage/Backends/GFAL2Impl.py +260 -0
- WMCore/Storage/Backends/LCGImpl.py +236 -0
- WMCore/Storage/Backends/SRMV2Impl.py +248 -0
- WMCore/Storage/Backends/TestFallbackToOldBackend.py +130 -0
- WMCore/Storage/Backends/UnittestImpl.py +188 -0
- WMCore/Storage/Backends/VandyImpl.py +110 -0
- WMCore/Storage/Backends/XRDCPImpl.py +314 -0
- WMCore/Storage/Backends/__init__.py +29 -0
- WMCore/Storage/DeleteMgr.py +255 -0
- WMCore/Storage/Execute.py +82 -0
- WMCore/Storage/FileManager.py +448 -0
- WMCore/Storage/Plugins/CPImpl.py +45 -0
- WMCore/Storage/Plugins/Examples/SRMV2Impl.py +188 -0
- WMCore/Storage/Plugins/Examples/XRDCPImpl.py +64 -0
- WMCore/Storage/Plugins/Examples/__init__.py +1 -0
- WMCore/Storage/Plugins/FNALImpl.py +329 -0
- WMCore/Storage/Plugins/GFAL2Impl.py +84 -0
- WMCore/Storage/Plugins/LCGImpl.py +91 -0
- WMCore/Storage/Plugins/TestFailImpl.py +33 -0
- WMCore/Storage/Plugins/TestLocalCopyImpl.py +48 -0
- WMCore/Storage/Plugins/TestWinImpl.py +28 -0
- WMCore/Storage/Plugins/VandyImpl.py +109 -0
- WMCore/Storage/Plugins/__init__.py +17 -0
- WMCore/Storage/Registry.py +105 -0
- WMCore/Storage/RucioFileCatalog.py +247 -0
- WMCore/Storage/SiteLocalConfig.py +353 -0
- WMCore/Storage/StageInMgr.py +257 -0
- WMCore/Storage/StageOutError.py +69 -0
- WMCore/Storage/StageOutImpl.py +303 -0
- WMCore/Storage/StageOutImplV2.py +97 -0
- WMCore/Storage/StageOutMgr.py +390 -0
- WMCore/Storage/StoreFail.py +73 -0
- WMCore/Storage/TestImpl.py +71 -0
- WMCore/Storage/TrivialFileCatalog.py +383 -0
- WMCore/Storage/__init__.py +0 -0
- WMCore/WMBase.py +50 -0
- WMCore/WMConnectionBase.py +164 -0
- WMCore/WMException.py +183 -0
- WMCore/WMExceptions.py +269 -0
- WMCore/WMFactory.py +76 -0
- WMCore/WMInit.py +228 -0
- WMCore/WMLogging.py +108 -0
- WMCore/WMRuntime/Bootstrap.py +459 -0
- WMCore/WMRuntime/Monitors/PerformanceMonitor.py +308 -0
- WMCore/WMRuntime/Monitors/TestMonitor.py +197 -0
- WMCore/WMRuntime/Monitors/WMRuntimeMonitor.py +115 -0
- WMCore/WMRuntime/Monitors/__init__.py +8 -0
- WMCore/WMRuntime/ProcessMonitor.py +157 -0
- WMCore/WMRuntime/Sandbox.py +56 -0
- WMCore/WMRuntime/SandboxCreator.py +199 -0
- WMCore/WMRuntime/ScriptFactory.py +53 -0
- WMCore/WMRuntime/ScriptInterface.py +30 -0
- WMCore/WMRuntime/ScriptInvoke.py +120 -0
- WMCore/WMRuntime/Scripts/SetupCMSSWPset.py +826 -0
- WMCore/WMRuntime/Scripts/__init__.py +7 -0
- WMCore/WMRuntime/Startup.py +57 -0
- WMCore/WMRuntime/StepSpace.py +75 -0
- WMCore/WMRuntime/TaskSpace.py +144 -0
- WMCore/WMRuntime/Tools/Plugins/__init__.py +7 -0
- WMCore/WMRuntime/Tools/Scram.py +465 -0
- WMCore/WMRuntime/Tools/__init__.py +8 -0
- WMCore/WMRuntime/Unpacker.py +175 -0
- WMCore/WMRuntime/Watchdog.py +329 -0
- WMCore/WMRuntime/__init__.py +8 -0
- WMCore/WMSpec/ConfigSectionTree.py +442 -0
- WMCore/WMSpec/Makers/Handlers/MakeJob.py +46 -0
- WMCore/WMSpec/Makers/Handlers/MakeJobSlave.py +66 -0
- WMCore/WMSpec/Makers/Handlers/__init__.py +9 -0
- WMCore/WMSpec/Makers/Interface/CreateWorkArea.py +466 -0
- WMCore/WMSpec/Makers/Interface/__init__.py +9 -0
- WMCore/WMSpec/Makers/JobMaker.py +33 -0
- WMCore/WMSpec/Makers/TaskMaker.py +229 -0
- WMCore/WMSpec/Makers/__init__.py +9 -0
- WMCore/WMSpec/Persistency.py +135 -0
- WMCore/WMSpec/StdSpecs/DQMHarvest.py +156 -0
- WMCore/WMSpec/StdSpecs/DataProcessing.py +75 -0
- WMCore/WMSpec/StdSpecs/Express.py +506 -0
- WMCore/WMSpec/StdSpecs/PromptReco.py +220 -0
- WMCore/WMSpec/StdSpecs/ReReco.py +280 -0
- WMCore/WMSpec/StdSpecs/Repack.py +219 -0
- WMCore/WMSpec/StdSpecs/Resubmission.py +213 -0
- WMCore/WMSpec/StdSpecs/StdBase.py +1412 -0
- WMCore/WMSpec/StdSpecs/StepChain.py +672 -0
- WMCore/WMSpec/StdSpecs/StoreResults.py +124 -0
- WMCore/WMSpec/StdSpecs/TaskChain.py +777 -0
- WMCore/WMSpec/StdSpecs/__init__.py +9 -0
- WMCore/WMSpec/Steps/BuildMaster.py +87 -0
- WMCore/WMSpec/Steps/BuildTools.py +201 -0
- WMCore/WMSpec/Steps/Builder.py +97 -0
- WMCore/WMSpec/Steps/Builders/AlcaHarvest.py +31 -0
- WMCore/WMSpec/Steps/Builders/CMSSW.py +34 -0
- WMCore/WMSpec/Steps/Builders/DQMUpload.py +34 -0
- WMCore/WMSpec/Steps/Builders/DeleteFiles.py +34 -0
- WMCore/WMSpec/Steps/Builders/LogArchive.py +34 -0
- WMCore/WMSpec/Steps/Builders/LogCollect.py +34 -0
- WMCore/WMSpec/Steps/Builders/StageOut.py +34 -0
- WMCore/WMSpec/Steps/Builders/__init__.py +8 -0
- WMCore/WMSpec/Steps/Diagnostic.py +89 -0
- WMCore/WMSpec/Steps/Diagnostics/AlcaHarvest.py +72 -0
- WMCore/WMSpec/Steps/Diagnostics/CMSSW.py +302 -0
- WMCore/WMSpec/Steps/Diagnostics/DQMUpload.py +70 -0
- WMCore/WMSpec/Steps/Diagnostics/DeleteFiles.py +67 -0
- WMCore/WMSpec/Steps/Diagnostics/Generic.py +18 -0
- WMCore/WMSpec/Steps/Diagnostics/LogArchive.py +76 -0
- WMCore/WMSpec/Steps/Diagnostics/LogCollect.py +80 -0
- WMCore/WMSpec/Steps/Diagnostics/StageOut.py +77 -0
- WMCore/WMSpec/Steps/Diagnostics/__init__.py +8 -0
- WMCore/WMSpec/Steps/Emulator.py +62 -0
- WMCore/WMSpec/Steps/Emulators/AlcaHarvest.py +50 -0
- WMCore/WMSpec/Steps/Emulators/CMSSW.py +52 -0
- WMCore/WMSpec/Steps/Emulators/DQMUpload.py +50 -0
- WMCore/WMSpec/Steps/Emulators/DeleteFiles.py +50 -0
- WMCore/WMSpec/Steps/Emulators/LogArchive.py +83 -0
- WMCore/WMSpec/Steps/Emulators/LogCollect.py +66 -0
- WMCore/WMSpec/Steps/Emulators/StageOut.py +50 -0
- WMCore/WMSpec/Steps/Emulators/__init__.py +10 -0
- WMCore/WMSpec/Steps/ExecuteMaster.py +208 -0
- WMCore/WMSpec/Steps/Executor.py +210 -0
- WMCore/WMSpec/Steps/Executors/AlcaHarvest.py +206 -0
- WMCore/WMSpec/Steps/Executors/CMSSW.py +473 -0
- WMCore/WMSpec/Steps/Executors/DQMUpload.py +295 -0
- WMCore/WMSpec/Steps/Executors/DeleteFiles.py +161 -0
- WMCore/WMSpec/Steps/Executors/LogArchive.py +309 -0
- WMCore/WMSpec/Steps/Executors/LogCollect.py +284 -0
- WMCore/WMSpec/Steps/Executors/StageOut.py +325 -0
- WMCore/WMSpec/Steps/Executors/__init__.py +8 -0
- WMCore/WMSpec/Steps/Fetchers/CMSSWFetcher.py +49 -0
- WMCore/WMSpec/Steps/Fetchers/FetcherInterface.py +45 -0
- WMCore/WMSpec/Steps/Fetchers/PileupFetcher.py +247 -0
- WMCore/WMSpec/Steps/Fetchers/URLFetcher.py +61 -0
- WMCore/WMSpec/Steps/Fetchers/__init__.py +9 -0
- WMCore/WMSpec/Steps/StepFactory.py +213 -0
- WMCore/WMSpec/Steps/TaskEmulator.py +75 -0
- WMCore/WMSpec/Steps/Template.py +204 -0
- WMCore/WMSpec/Steps/Templates/AlcaHarvest.py +76 -0
- WMCore/WMSpec/Steps/Templates/CMSSW.py +613 -0
- WMCore/WMSpec/Steps/Templates/DQMUpload.py +59 -0
- WMCore/WMSpec/Steps/Templates/DeleteFiles.py +70 -0
- WMCore/WMSpec/Steps/Templates/LogArchive.py +84 -0
- WMCore/WMSpec/Steps/Templates/LogCollect.py +105 -0
- WMCore/WMSpec/Steps/Templates/StageOut.py +105 -0
- WMCore/WMSpec/Steps/Templates/__init__.py +10 -0
- WMCore/WMSpec/Steps/WMExecutionFailure.py +21 -0
- WMCore/WMSpec/Steps/__init__.py +8 -0
- WMCore/WMSpec/Utilities.py +63 -0
- WMCore/WMSpec/WMSpecErrors.py +12 -0
- WMCore/WMSpec/WMStep.py +347 -0
- WMCore/WMSpec/WMTask.py +1980 -0
- WMCore/WMSpec/WMWorkload.py +2288 -0
- WMCore/WMSpec/WMWorkloadTools.py +370 -0
- WMCore/WMSpec/__init__.py +9 -0
- WMCore/WorkQueue/DataStructs/CouchWorkQueueElement.py +148 -0
- WMCore/WorkQueue/DataStructs/WorkQueueElement.py +274 -0
- WMCore/WorkQueue/DataStructs/__init__.py +0 -0
- WMCore/WorkQueue/__init__.py +13 -0
- WMCore/Wrappers/JsonWrapper/JSONThunker.py +342 -0
- WMCore/Wrappers/JsonWrapper/__init__.py +7 -0
- WMCore/Wrappers/__init__.py +6 -0
- WMCore/__init__.py +10 -0
- reqmgr2-2.3.10.data/data/bin/wmc-dist-patch +15 -0
- reqmgr2-2.3.10.data/data/bin/wmc-dist-unpatch +8 -0
- reqmgr2-2.3.10.data/data/bin/wmc-httpd +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/_id +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/couchapp.json +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/language +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/config_by_label/map.js +12 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/config_by_md5hash/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/config_by_owner/map.js +15 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/config_by_psethash/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/config_type/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/group_name/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/groups/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/groups/reduce.js +12 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/owner_name_group/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/runseq_by_owner/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/runsequence_type/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/seedseq_by_owner/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/types/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/_id +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/couchapp.json +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/language +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/updates/totalstats.js +39 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/updates/updaterequest.js +105 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/validate_doc_update.js +6 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bycampaign/map.js +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bydatapileup/map.js +21 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bydate/map.js +14 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byinputdataset/map.js +21 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bymcpileup/map.js +21 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byoriginalrequest/map.js +6 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byoutputdataset/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byparentageflag/map.js +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byprepid/map.js +22 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byrequest/map.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bystatus/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bystatusandrequestor/map.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bystatusandtime/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bystatusandtypeandrequestor/map.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byteamandstatus/map.js +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bytype/map.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/childresubmissionrequests/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/requestsbystatusandtype/map.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/requestsincludeparents/map.js +11 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/_id +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/couchapp.json +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/filters/filterDeletedDocs.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/language +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/validate_doc_update.js +6 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/views/byconfig/map.js +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/ColVis.css +76 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/font-awesome.min.css +4 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-check-16.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-cross-16.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-plus-16.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-square-check-16.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/cms_logo.gif +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/cms_logo.jpeg +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_highlight-hard_55_5c9ccc_1x100.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_inset-soft_100_fcfdfd_1x100.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_217bc0_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_2694e8_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_2e83ff_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_469bdd_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_6da8d5_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_cd0a0a_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_d8e7f3_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_f9bd01_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/warning-16.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/jquery-ui-1.12.0.css +1312 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/jquery.dataTables.css +241 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/logdb.css +60 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/main_layout.css +565 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/FontAwesome.otf +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.eot +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.svg +565 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.ttf +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.woff +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.woff2 +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/Sorting icons.psd +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/back_disabled.jpg +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/back_enabled.jpg +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/error.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/favicon.ico +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/forward_disabled.jpg +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/forward_enabled.jpg +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/loader-1.gif +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/module.caption.backg.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/module.caption.backg.rolledup.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/rollup.gif +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_asc.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_asc_disabled.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_both.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_desc.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_desc_disabled.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/stable.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/warning.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html +105 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html.min +106 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html.org +125 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.ActiveRequestController.js +61 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.GenericController.js +38 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.WorkloadSummaryController.js +12 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/import.js +6 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T0/WMStats.RequestSummary.js +71 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T0/WMStats.RunSummary.js +70 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.AgentRequestSummary.js +28 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.CMSSWSummary.js +28 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.CampaignSummary.js +28 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.ReqMgrRequest.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.RequestSummary.js +190 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Agents.js +98 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Alerts.js +21 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Campaigns.js +25 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.GenericRequests.js +728 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.History.js +78 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.JobDetails.js +19 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.JobSummary.js +32 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.LogDBData.js +93 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.LogMessage.js +38 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.SiteSummary.js +24 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Sites.js +25 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Tasks.js +107 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.WorkloadSummary.js +20 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats._StructBase.js +37 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/import.js +29 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.ActiveRequestModel.js +9 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestLogDetailModel.js +17 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestLogModel.js +14 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestModel.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestSearchModel.js +8 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.ActiveRequestModel.js +9 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.ReqMgrRequestModel.js +8 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestLogDetailModel.js +18 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestLogModel.js +14 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestSearchModel.js +8 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.AgentModel.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.AlertModel.js +6 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.HistoryModel.js +14 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.JobDetailModel.js +22 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.JobSummaryModel.js +18 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.WorkloadSummaryModel.js +8 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._AjaxModelBase.js +55 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._ModelBase.js +77 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._RequestModelBase.js +127 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/import.js +26 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/ViewModels/WMStats.ViewModel.js +511 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/ViewModels/import.js +2 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/T0/WMStats.Controls.js +117 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/T1/WMStats.Controls.js +158 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/WMStats.CommonControls.js +100 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/import.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Graphs/WMStats.SiteHistoryGraph.js +8 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Graphs/import.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.CategoryDetailList.js +38 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestAlertGUI.js +128 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestDataList.js +25 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestDetailList.js +68 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestSummaryList.js +31 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.CategoryDetailList.js +54 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestAlertGUI.js +81 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestDataList.js +26 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestDetailList.js +122 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestSummaryList.js +35 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.ResubmissionList.js +64 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.AgentDetailList.js +137 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.CategoryTitle.js +20 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.HTMLList.js +12 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.JobDetailList.js +178 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.RequestLogList.js +88 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.RequestTitle.js +33 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/import.js +25 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.ActiveRequestTable.js +142 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.RunSummaryTable.js +77 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.TaskSummaryTable.js +127 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/addCategoryMap.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.ActiveRequestTable.js +132 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.ActiveRequestTableWithJob.js +164 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.AgentRequestSummaryTable.js +78 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.CMSSWSummaryTable.js +76 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.CampaignSummaryTable.js +76 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.SiteSummaryTable.js +63 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.TaskSummaryTable.js +124 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/addCategoryMap.js +17 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.JobSummaryTable.js +71 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.Table.js +70 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.TableController.js +130 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.WorkloadSummaryTable.js +62 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/import.js +26 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/WMStats.CategoryMap.js +45 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/WMStats.View.IndexHTML.js +137 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/import.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Ajax.js +74 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Couch.js +83 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Globals.js +200 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Utils.js +283 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/import-all.min.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/loader.js +27 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/global.min.js +639 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/import-all-t0.min.js +4317 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/import-all-t1.min.js +4972 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/lib/jquery.dataTables.columnFilter.js +732 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/lib/namespace.js +23 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/filters/deleteFatDocFilter.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/filters/filterDeletedDocs.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/filters/repfilter.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/rewrites.json +110 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/shows/redirect.js +23 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/agentInfo.js +17 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/generalFields.js +11 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/insertRequest.js +13 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/jobLogArchiveLocation.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/jobStateTransition.js +17 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/jobSummaryState.js +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/totalStats.js +39 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/validate_doc_update.js +10 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/cms_logo.jpg +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/details_closed.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/details_open.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/feed-icon.png +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/gradientfromtop.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/loading-small.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/loading.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/shadow.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/index.html +67 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/ajax_utils.js +104 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/config.js +10 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/md5.js +184 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/prototype.js +7510 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/requestsview.js +189 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/task_splitting.js +190 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/utils.js +337 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/admin.tmpl +217 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/apis.tmpl +36 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/approve.tmpl +112 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/assign.tmpl +252 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/batch.tmpl +72 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/batches.tmpl +63 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/confirm.tmpl +34 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/create.tmpl +112 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/doc.tmpl +152 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/error.tmpl +6 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/filter_sort.tmpl +55 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/generic.tmpl +6 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/index.tmpl +24 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/main.tmpl +33 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/manualConversions.txt +57 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/menu.tmpl +16 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/requests.tmpl +51 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/search.tmpl +22 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/validate.tmpl +9 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/workflow.tmpl +34 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/style/kube.min.css +1 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/style/main.css +194 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/style/style.css +249 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/admin.tmpl +217 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/apis.tmpl +36 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/approve.tmpl +114 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/assign.tmpl +253 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/batch.tmpl +72 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/batches.tmpl +63 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/confirm.tmpl +35 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/create.tmpl +112 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/doc.tmpl +153 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/error.tmpl +6 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/filter_sort.tmpl +55 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/generic.tmpl +6 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/index.tmpl +24 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/DataProcessing.tmpl +34 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/MonteCarlo.tmpl +29 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/ReDigi.tmpl +41 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/ReReco.tmpl +38 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/Resubmission.tmpl +22 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/StoreResults.tmpl +24 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/main.tmpl +33 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/menu.tmpl +16 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/requests.tmpl +51 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/search.tmpl +22 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/validate.tmpl +9 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/workflow.tmpl +34 -0
- reqmgr2-2.3.10.dist-info/LICENSE +202 -0
- reqmgr2-2.3.10.dist-info/METADATA +24 -0
- reqmgr2-2.3.10.dist-info/NOTICE +16 -0
- reqmgr2-2.3.10.dist-info/RECORD +678 -0
- reqmgr2-2.3.10.dist-info/WHEEL +5 -0
- reqmgr2-2.3.10.dist-info/top_level.txt +3 -0
|
@@ -0,0 +1,826 @@
|
|
|
1
|
+
"""
|
|
2
|
+
_SetupCMSSWPset_
|
|
3
|
+
|
|
4
|
+
Create a CMSSW PSet suitable for running a WMAgent job.
|
|
5
|
+
|
|
6
|
+
"""
|
|
7
|
+
from builtins import next, object
|
|
8
|
+
|
|
9
|
+
import json
|
|
10
|
+
import logging
|
|
11
|
+
import os
|
|
12
|
+
import pickle
|
|
13
|
+
import socket
|
|
14
|
+
from pprint import pformat
|
|
15
|
+
from PSetTweaks.PSetTweak import PSetTweak
|
|
16
|
+
from PSetTweaks.WMTweak import makeJobTweak, makeOutputTweak, makeTaskTweak, resizeResources
|
|
17
|
+
from Utils.Utilities import decodeBytesToUnicode, encodeUnicodeToBytes
|
|
18
|
+
from WMCore.Storage.SiteLocalConfig import loadSiteLocalConfig
|
|
19
|
+
from WMCore.WMRuntime.ScriptInterface import ScriptInterface
|
|
20
|
+
from WMCore.WMRuntime.Tools.Scram import Scram
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def factory(module, name):
|
|
24
|
+
"""
|
|
25
|
+
_factory_
|
|
26
|
+
Function to return a dummy module name when a module
|
|
27
|
+
is not available
|
|
28
|
+
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
class DummyClass(object):
|
|
32
|
+
"""
|
|
33
|
+
_DummyClass_
|
|
34
|
+
Dummy class to return when a cms class cannot be imported
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
def __init__(self, module, name='', *args, **kwargs):
|
|
38
|
+
self.__module = module
|
|
39
|
+
self.__name = name
|
|
40
|
+
self.__d = dict()
|
|
41
|
+
|
|
42
|
+
def __setitem__(self, key, value):
|
|
43
|
+
self.__d[key] = value
|
|
44
|
+
|
|
45
|
+
def __getitem__(self, item):
|
|
46
|
+
return self.__d[item]
|
|
47
|
+
|
|
48
|
+
def __call__(self, *args, **kwargs):
|
|
49
|
+
pass
|
|
50
|
+
|
|
51
|
+
def __repr__(self):
|
|
52
|
+
return "{module}.{name}".format(module=self.__module, name=self.__name)
|
|
53
|
+
|
|
54
|
+
return DummyClass
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class Unpickler(pickle.Unpickler):
|
|
58
|
+
"""
|
|
59
|
+
_Unpickler_
|
|
60
|
+
Use this when loading a PSet pickle
|
|
61
|
+
and a specific module is not available (i.e.: FWCore modules)
|
|
62
|
+
|
|
63
|
+
"""
|
|
64
|
+
def find_class(self, module, name):
|
|
65
|
+
return factory(module, name)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class SetupCMSSWPset(ScriptInterface):
|
|
69
|
+
"""
|
|
70
|
+
_SetupCMSSWPset_
|
|
71
|
+
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
def __init__(self, crabPSet=False):
|
|
75
|
+
ScriptInterface.__init__(self)
|
|
76
|
+
self.crabPSet = crabPSet
|
|
77
|
+
self.process = None
|
|
78
|
+
self.jobBag = None
|
|
79
|
+
self.logger = logging.getLogger()
|
|
80
|
+
self.tweak = PSetTweak()
|
|
81
|
+
self.scram = None
|
|
82
|
+
self.configPickle = "Pset.pkl"
|
|
83
|
+
self.psetFile = None
|
|
84
|
+
|
|
85
|
+
def createScramEnv(self):
|
|
86
|
+
scramArchitecture = self.getScramVersion()
|
|
87
|
+
cmsswVersion = self.getCmsswVersion()
|
|
88
|
+
self.logger.info("Creating Scram environment with scram arch: %s and CMSSW version: %s",
|
|
89
|
+
scramArchitecture,
|
|
90
|
+
cmsswVersion)
|
|
91
|
+
|
|
92
|
+
scram = Scram(
|
|
93
|
+
version=cmsswVersion,
|
|
94
|
+
directory=self.stepSpace.location,
|
|
95
|
+
architecture=scramArchitecture,
|
|
96
|
+
initialise=self.step.data.application.setup.softwareEnvironment
|
|
97
|
+
)
|
|
98
|
+
scram.project() # creates project area
|
|
99
|
+
scram.runtime() # creates runtime environment
|
|
100
|
+
|
|
101
|
+
return scram
|
|
102
|
+
|
|
103
|
+
def scramRun(self, cmdArgs):
|
|
104
|
+
"""
|
|
105
|
+
_scramRun_
|
|
106
|
+
|
|
107
|
+
Run command inside scram environment
|
|
108
|
+
|
|
109
|
+
"""
|
|
110
|
+
self.logger.info("ScramRun command args: %s", cmdArgs)
|
|
111
|
+
if self.scram:
|
|
112
|
+
retval = self.scram(command=cmdArgs)
|
|
113
|
+
if retval > 0:
|
|
114
|
+
msg = "Error running scram process. Error code: %s" % (retval)
|
|
115
|
+
logging.error(msg)
|
|
116
|
+
raise RuntimeError(msg)
|
|
117
|
+
else:
|
|
118
|
+
raise RuntimeError("Scram is not defined")
|
|
119
|
+
|
|
120
|
+
def createProcess(self, scenario, funcName, funcArgs):
|
|
121
|
+
"""
|
|
122
|
+
_createProcess_
|
|
123
|
+
|
|
124
|
+
Create a Configuration.DataProcessing PSet.
|
|
125
|
+
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
procScript = "cmssw_wm_create_process.py"
|
|
129
|
+
funcArgsJson = os.path.join(self.stepSpace.location, "process_funcArgs.json")
|
|
130
|
+
|
|
131
|
+
if funcName not in ("merge", "repack"):
|
|
132
|
+
funcArgs['scenario'] = scenario
|
|
133
|
+
|
|
134
|
+
try:
|
|
135
|
+
with open(funcArgsJson, 'w') as f:
|
|
136
|
+
json.dump(funcArgs, f)
|
|
137
|
+
except Exception as ex:
|
|
138
|
+
msg = "Error writing out process funcArgs json."
|
|
139
|
+
msg += "Type: {} and content: {}".format(type(funcArgs), funcArgs)
|
|
140
|
+
self.logger.exception(msg)
|
|
141
|
+
raise ex
|
|
142
|
+
|
|
143
|
+
cmd = "%s --output_pkl %s --funcname %s --funcargs %s" % (
|
|
144
|
+
procScript,
|
|
145
|
+
os.path.join(self.stepSpace.location, self.configPickle),
|
|
146
|
+
funcName,
|
|
147
|
+
funcArgsJson)
|
|
148
|
+
|
|
149
|
+
if funcName == "merge":
|
|
150
|
+
if getattr(self.jobBag, "useErrorDataset", False):
|
|
151
|
+
cmd += " --useErrorDataset"
|
|
152
|
+
|
|
153
|
+
self.scramRun(cmd)
|
|
154
|
+
return
|
|
155
|
+
|
|
156
|
+
def loadPSet(self):
|
|
157
|
+
"""
|
|
158
|
+
_loadPSet_
|
|
159
|
+
|
|
160
|
+
Load a PSet that was shipped with the job sandbox.
|
|
161
|
+
Mock actual Pset values that depend on CMSSW, as these are
|
|
162
|
+
handled externally.
|
|
163
|
+
|
|
164
|
+
"""
|
|
165
|
+
self.logger.info("Working dir: %s", os.getcwd())
|
|
166
|
+
# Pickle original pset configuration
|
|
167
|
+
procScript = "edm_pset_pickler.py"
|
|
168
|
+
cmd = "%s --input %s --output_pkl %s" % (
|
|
169
|
+
procScript,
|
|
170
|
+
os.path.join(self.stepSpace.location, self.psetFile),
|
|
171
|
+
os.path.join(self.stepSpace.location, self.configPickle))
|
|
172
|
+
self.scramRun(cmd)
|
|
173
|
+
|
|
174
|
+
try:
|
|
175
|
+
with open(os.path.join(self.stepSpace.location, self.configPickle), 'rb') as f:
|
|
176
|
+
self.process = Unpickler(f).load()
|
|
177
|
+
except ImportError as ex:
|
|
178
|
+
msg = "Unable to import pset from %s:\n" % self.psetFile
|
|
179
|
+
msg += str(ex)
|
|
180
|
+
self.logger.error(msg)
|
|
181
|
+
raise ex
|
|
182
|
+
|
|
183
|
+
return
|
|
184
|
+
|
|
185
|
+
def fixupProcess(self):
|
|
186
|
+
"""
|
|
187
|
+
_fixupProcess_
|
|
188
|
+
Look over the process object and make sure that all of the attributes
|
|
189
|
+
that we expect to exist actually exist.
|
|
190
|
+
"""
|
|
191
|
+
# Make sure that for each output module the following parameters exist
|
|
192
|
+
# in the PSet returned from the framework:
|
|
193
|
+
# fileName
|
|
194
|
+
# logicalFileName
|
|
195
|
+
# dataset.dataTier
|
|
196
|
+
# dataset.filterName
|
|
197
|
+
if hasattr(self.process, "outputModules"):
|
|
198
|
+
outputModuleNames = list(self.process.outputModules)
|
|
199
|
+
elif hasattr(self.process, "outputModules_"):
|
|
200
|
+
outputModuleNames = self.process.outputModules_()
|
|
201
|
+
elif hasattr(self.process, "_Process__outputmodules"):
|
|
202
|
+
outputModuleNames = list(self.process._Process__outputmodules)
|
|
203
|
+
else:
|
|
204
|
+
msg = "Error loading output modules from process"
|
|
205
|
+
raise AttributeError(msg)
|
|
206
|
+
|
|
207
|
+
for outMod in outputModuleNames:
|
|
208
|
+
tweak = PSetTweak()
|
|
209
|
+
self.logger.info("DEBUG output module = %s", outMod)
|
|
210
|
+
tweak.addParameter("process.options", "customTypeCms.untracked.PSet()")
|
|
211
|
+
tweak.addParameter("process.%s.dataset" % outMod, "customTypeCms.untracked.PSet(dataTier=cms.untracked.string(''), filterName=cms.untracked.string(''))")
|
|
212
|
+
self.applyPsetTweak(tweak, skipIfSet=True, cleanupTweak=True)
|
|
213
|
+
#tweak.addParameter("process.%s.dataset.dataTier" % outMod, "customTypeCms.untracked.string('')")
|
|
214
|
+
#tweak.addParameter("process.%s.dataset.filterName" % outMod, "customTypeCms.untracked.string('')")
|
|
215
|
+
tweak.addParameter("process.%s.fileName" % outMod, "customTypeCms.untracked.string('')")
|
|
216
|
+
tweak.addParameter("process.%s.logicalFileName" % outMod, "customTypeCms.untracked.string('')")
|
|
217
|
+
self.applyPsetTweak(tweak, skipIfSet=True)
|
|
218
|
+
|
|
219
|
+
return
|
|
220
|
+
|
|
221
|
+
def applyPsetTweak(self, psetTweak, skipIfSet=False, allowFailedTweaks=False, name='', cleanupTweak=False):
|
|
222
|
+
"""
|
|
223
|
+
_applyPsetTweak_
|
|
224
|
+
Apply a tweak to a pset process.
|
|
225
|
+
Options:
|
|
226
|
+
skipIfSet: Do not apply a tweak to a parameter that has a value set already.
|
|
227
|
+
allowFailedTweaks: If the tweak of a parameter fails, do not abort and continue tweaking the rest.
|
|
228
|
+
name: Extra string to add to the name of the json file that will be createed.
|
|
229
|
+
cleanupTweak: Reset pset tweak object after applying all tweaks. Mostly used after using self.tweak
|
|
230
|
+
"""
|
|
231
|
+
procScript = "edm_pset_tweak.py"
|
|
232
|
+
psetTweakJson = os.path.join(self.stepSpace.location, "PSetTweak%s.json" % name)
|
|
233
|
+
psetTweak.persist(psetTweakJson, formatting='simplejson')
|
|
234
|
+
|
|
235
|
+
cmd = "%s --input_pkl %s --output_pkl %s --json %s" % (
|
|
236
|
+
procScript,
|
|
237
|
+
os.path.join(self.stepSpace.location, self.configPickle),
|
|
238
|
+
os.path.join(self.stepSpace.location, self.configPickle),
|
|
239
|
+
psetTweakJson)
|
|
240
|
+
if skipIfSet:
|
|
241
|
+
cmd += " --skip_if_set"
|
|
242
|
+
if allowFailedTweaks:
|
|
243
|
+
cmd += " --allow_failed_tweaks"
|
|
244
|
+
self.scramRun(cmd)
|
|
245
|
+
|
|
246
|
+
if cleanupTweak:
|
|
247
|
+
psetTweak.reset()
|
|
248
|
+
|
|
249
|
+
return
|
|
250
|
+
|
|
251
|
+
def handleSeeding(self):
|
|
252
|
+
"""
|
|
253
|
+
_handleSeeding_
|
|
254
|
+
|
|
255
|
+
Handle Random Seed settings for the job
|
|
256
|
+
"""
|
|
257
|
+
seeding = getattr(self.jobBag, "seeding", None)
|
|
258
|
+
seedJson = os.path.join(self.stepSpace.location, "reproducible_seed.json")
|
|
259
|
+
self.logger.info("Job seeding set to: %s", seeding)
|
|
260
|
+
procScript = "cmssw_handle_random_seeds.py"
|
|
261
|
+
|
|
262
|
+
cmd = "%s --input_pkl %s --output_pkl %s --seeding %s" % (
|
|
263
|
+
procScript,
|
|
264
|
+
os.path.join(self.stepSpace.location, self.configPickle),
|
|
265
|
+
os.path.join(self.stepSpace.location, self.configPickle),
|
|
266
|
+
seeding)
|
|
267
|
+
|
|
268
|
+
if seeding == "ReproducibleSeeding":
|
|
269
|
+
randService = self.jobBag.process.RandomNumberGeneratorService
|
|
270
|
+
seedParams = {}
|
|
271
|
+
for x in randService:
|
|
272
|
+
parameter = "process.RandomNumberGeneratorService.%s.initialSeed" % x._internal_name
|
|
273
|
+
seedParams[parameter] = x.initialSeed
|
|
274
|
+
try:
|
|
275
|
+
with open(seedJson, 'wb') as f:
|
|
276
|
+
json.dump(seedParams, f)
|
|
277
|
+
except Exception as ex:
|
|
278
|
+
self.logger.exception("Error writing out process funcArgs json:")
|
|
279
|
+
raise ex
|
|
280
|
+
cmd += " --reproducible_json %s" % (seedJson)
|
|
281
|
+
|
|
282
|
+
self.scramRun(cmd)
|
|
283
|
+
return
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
def handlePerformanceSettings(self):
|
|
287
|
+
"""
|
|
288
|
+
_handlePerformanceSettings_
|
|
289
|
+
|
|
290
|
+
Install the standard performance report services
|
|
291
|
+
"""
|
|
292
|
+
tweak = PSetTweak()
|
|
293
|
+
# include the default performance report services
|
|
294
|
+
if getattr(self.step.data.application.command, 'silentMemoryCheck', False):
|
|
295
|
+
tweak.addParameter("process.SimpleMemoryCheck", "customTypeCms.Service('SimpleMemoryCheck', jobReportOutputOnly=cms.untracked.bool(True))")
|
|
296
|
+
else:
|
|
297
|
+
tweak.addParameter("process.SimpleMemoryCheck", "customTypeCms.Service('SimpleMemoryCheck')")
|
|
298
|
+
|
|
299
|
+
tweak.addParameter("process.CPU", "customTypeCms.Service('CPU')")
|
|
300
|
+
tweak.addParameter("process.Timing", "customTypeCms.Service('Timing')")
|
|
301
|
+
self.applyPsetTweak(tweak)
|
|
302
|
+
self.tweak.addParameter("process.Timing.summaryOnly", "customTypeCms.untracked(cms.bool(True))")
|
|
303
|
+
|
|
304
|
+
return
|
|
305
|
+
|
|
306
|
+
def makeThreadsStreamsTweak(self):
|
|
307
|
+
"""
|
|
308
|
+
_makeThreadsStreamsTweak_
|
|
309
|
+
|
|
310
|
+
Tweak threads and streams paraameters
|
|
311
|
+
"""
|
|
312
|
+
origCores = int(getattr(self.step.data.application.multicore, 'numberOfCores', 1))
|
|
313
|
+
eventStreams = int(getattr(self.step.data.application.multicore, 'eventStreams', 0))
|
|
314
|
+
resources = {'cores': origCores}
|
|
315
|
+
resizeResources(resources)
|
|
316
|
+
numCores = resources['cores']
|
|
317
|
+
if numCores != origCores:
|
|
318
|
+
self.logger.info(
|
|
319
|
+
"Resizing a job with nStreams != nCores. Setting nStreams = nCores. This may end badly.")
|
|
320
|
+
eventStreams = 0
|
|
321
|
+
|
|
322
|
+
tweak = PSetTweak()
|
|
323
|
+
tweak.addParameter("process.options", "customTypeCms.untracked.PSet()")
|
|
324
|
+
self.applyPsetTweak(tweak, skipIfSet=True)
|
|
325
|
+
self.tweak.addParameter("process.options.numberOfThreads", "customTypeCms.untracked.uint32(%s)" % numCores)
|
|
326
|
+
self.tweak.addParameter("process.options.numberOfStreams", "customTypeCms.untracked.uint32(%s)" % eventStreams)
|
|
327
|
+
|
|
328
|
+
return
|
|
329
|
+
|
|
330
|
+
def handleChainedProcessingTweak(self):
|
|
331
|
+
"""
|
|
332
|
+
_handleChainedProcessing_
|
|
333
|
+
|
|
334
|
+
When a job has multiple cmsRun steps, we need to tweak the
|
|
335
|
+
subsequent PSet configuration such that it reads file in
|
|
336
|
+
from the local disk (job sandbox).
|
|
337
|
+
"""
|
|
338
|
+
self.logger.info("Handling chained processing job")
|
|
339
|
+
|
|
340
|
+
# check the jobs input files
|
|
341
|
+
inputFile = ("file:../%s/%s.root" % (self.step.data.input.inputStepName,
|
|
342
|
+
self.step.data.input.inputOutputModule))
|
|
343
|
+
|
|
344
|
+
self.tweak.addParameter('process.source.fileNames', "customTypeCms.untracked.vstring(%s)" % [inputFile])
|
|
345
|
+
self.tweak.addParameter("process.maxEvents", "customTypeCms.untracked.PSet(input=cms.untracked.int32(-1))")
|
|
346
|
+
self.logger.info("Chained PSet tweaked with maxEvents: -1, and fileNames: %s", inputFile)
|
|
347
|
+
return
|
|
348
|
+
|
|
349
|
+
def handlePileup(self):
|
|
350
|
+
"""
|
|
351
|
+
_handlePileup_
|
|
352
|
+
|
|
353
|
+
Handle pileup settings.
|
|
354
|
+
There has been stored pileup configuration stored in a JSON file
|
|
355
|
+
as a result of DBS querrying when running PileupFetcher,
|
|
356
|
+
this method loads this configuration from sandbox and returns it
|
|
357
|
+
as dictionary.
|
|
358
|
+
The PileupFetcher was called by WorkQueue which creates job's sandbox
|
|
359
|
+
and sandbox gets migrated to the worker node.
|
|
360
|
+
|
|
361
|
+
External script iterates over all modules and over all pileup configuration types.
|
|
362
|
+
The only considered types are "data" and "mc" (input to this method).
|
|
363
|
+
If other pileup types are specified by the user, the method doesn't
|
|
364
|
+
modify anything.
|
|
365
|
+
The method considers only files which are present on this local PNN.
|
|
366
|
+
The job will use only those, unless it was told to trust the PU site
|
|
367
|
+
location (trustPUSitelists=True), in this case ALL the blocks/files
|
|
368
|
+
will be added to the PSet and files will be read via AAA.
|
|
369
|
+
Dataset, divided into blocks, may not have all blocks present on a
|
|
370
|
+
particular PNN. However, all files belonging into a block will be
|
|
371
|
+
present when reported by DBS.
|
|
372
|
+
The structure of the pileupDict: PileupFetcher._queryDbsAndGetPileupConfig
|
|
373
|
+
|
|
374
|
+
"""
|
|
375
|
+
# find out local site SE name
|
|
376
|
+
siteConfig = loadSiteLocalConfig()
|
|
377
|
+
PhEDExNodeName = siteConfig.localStageOut["phedex-node"]
|
|
378
|
+
self.logger.info("Running on site '%s', local PNN: '%s'", siteConfig.siteName, PhEDExNodeName)
|
|
379
|
+
jsonPileupConfig = os.path.join(self.stepSpace.location, "pileupconf.json")
|
|
380
|
+
|
|
381
|
+
# Load pileup json
|
|
382
|
+
try:
|
|
383
|
+
with open(jsonPileupConfig) as jdata:
|
|
384
|
+
pileupDict = json.load(jdata)
|
|
385
|
+
except IOError:
|
|
386
|
+
m = "Could not read pileup JSON configuration file: '%s'" % jsonPileupConfig
|
|
387
|
+
raise RuntimeError(m)
|
|
388
|
+
|
|
389
|
+
# Create a json with a list of files and events available
|
|
390
|
+
# after dealing with PhEDEx/AAA logic
|
|
391
|
+
newPileupDict = {}
|
|
392
|
+
fileList = []
|
|
393
|
+
eventsAvailable = 0
|
|
394
|
+
for pileupType in self.step.data.pileup.listSections_():
|
|
395
|
+
pileupType = decodeBytesToUnicode(pileupType)
|
|
396
|
+
useAAA = True if getattr(self.jobBag, 'trustPUSitelists', False) else False
|
|
397
|
+
self.logger.info("Pileup set to read data remotely: %s", useAAA)
|
|
398
|
+
for blockName in sorted(pileupDict[pileupType].keys()):
|
|
399
|
+
blockDict = pileupDict[pileupType][blockName]
|
|
400
|
+
if PhEDExNodeName in blockDict["PhEDExNodeNames"] or useAAA:
|
|
401
|
+
eventsAvailable += int(blockDict.get('NumberOfEvents', 0))
|
|
402
|
+
for fileLFN in blockDict["FileList"]:
|
|
403
|
+
fileList.append(decodeBytesToUnicode(fileLFN))
|
|
404
|
+
newPileupDict[pileupType] = {"eventsAvailable": eventsAvailable, "FileList": fileList}
|
|
405
|
+
newJsonPileupConfig = os.path.join(self.stepSpace.location, "CMSSWPileupConfig.json")
|
|
406
|
+
self.logger.info("Generating json for CMSSW pileup script")
|
|
407
|
+
try:
|
|
408
|
+
# If it's a python2 unicode, cmssw_handle_pileup will cast it to str
|
|
409
|
+
with open(newJsonPileupConfig, 'w') as f:
|
|
410
|
+
json.dump(newPileupDict, f)
|
|
411
|
+
except Exception as ex:
|
|
412
|
+
self.logger.exception("Error writing out process filelist json:")
|
|
413
|
+
raise ex
|
|
414
|
+
|
|
415
|
+
procScript = "cmssw_handle_pileup.py"
|
|
416
|
+
cmd = "%s --input_pkl %s --output_pkl %s --pileup_dict %s" % (
|
|
417
|
+
procScript,
|
|
418
|
+
os.path.join(self.stepSpace.location, self.configPickle),
|
|
419
|
+
os.path.join(self.stepSpace.location, self.configPickle),
|
|
420
|
+
newJsonPileupConfig)
|
|
421
|
+
|
|
422
|
+
if getattr(self.jobBag, "skipPileupEvents", None):
|
|
423
|
+
randomSeed = self.job['task']
|
|
424
|
+
skipPileupEvents = self.jobBag.skipPileupEvents
|
|
425
|
+
cmd += " --skip_pileup_events %s --random_seed %s" % (
|
|
426
|
+
skipPileupEvents,
|
|
427
|
+
randomSeed)
|
|
428
|
+
self.scramRun(cmd)
|
|
429
|
+
|
|
430
|
+
return
|
|
431
|
+
|
|
432
|
+
def handleProducersNumberOfEvents(self):
|
|
433
|
+
"""
|
|
434
|
+
_handleProducersNumberOfEvents_
|
|
435
|
+
|
|
436
|
+
Some producer modules are initialized with a maximum number of events
|
|
437
|
+
to be generated, usually based on the process.maxEvents.input attribute
|
|
438
|
+
but after that is tweaked the producers number of events need to
|
|
439
|
+
be fixed as well. This method takes care of that.
|
|
440
|
+
"""
|
|
441
|
+
|
|
442
|
+
procScript = "cmssw_handle_nEvents.py"
|
|
443
|
+
cmd = "%s --input_pkl %s --output_pkl %s" % (
|
|
444
|
+
procScript,
|
|
445
|
+
os.path.join(self.stepSpace.location, self.configPickle),
|
|
446
|
+
os.path.join(self.stepSpace.location, self.configPickle))
|
|
447
|
+
self.scramRun(cmd)
|
|
448
|
+
|
|
449
|
+
return
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
def handleDQMFileSaver(self):
|
|
453
|
+
"""
|
|
454
|
+
_handleDQMFileSaver_
|
|
455
|
+
|
|
456
|
+
Harvesting jobs have the dqmFileSaver EDAnalyzer that must
|
|
457
|
+
be tweaked with the dataset name in order to store it
|
|
458
|
+
properly in the DQMGUI, others tweaks can be added as well
|
|
459
|
+
"""
|
|
460
|
+
|
|
461
|
+
runIsComplete = getattr(self.jobBag, "runIsComplete", False)
|
|
462
|
+
multiRun = getattr(self.jobBag, "multiRun", False)
|
|
463
|
+
runLimits = getattr(self.jobBag, "runLimits", "")
|
|
464
|
+
self.logger.info("DQMFileSaver set to multiRun: %s, runIsComplete: %s, runLimits: %s",
|
|
465
|
+
multiRun, runIsComplete, runLimits)
|
|
466
|
+
|
|
467
|
+
procScript = "cmssw_handle_dqm_filesaver.py"
|
|
468
|
+
|
|
469
|
+
cmd = "%s --input_pkl %s --output_pkl %s" % (
|
|
470
|
+
procScript,
|
|
471
|
+
os.path.join(self.stepSpace.location, self.configPickle),
|
|
472
|
+
os.path.join(self.stepSpace.location, self.configPickle))
|
|
473
|
+
|
|
474
|
+
if hasattr(self.step.data.application.configuration, "pickledarguments"):
|
|
475
|
+
pklArgs = encodeUnicodeToBytes(self.step.data.application.configuration.pickledarguments)
|
|
476
|
+
args = pickle.loads(pklArgs)
|
|
477
|
+
datasetName = args.get('datasetName', None)
|
|
478
|
+
if datasetName:
|
|
479
|
+
cmd += " --datasetName %s" % (datasetName)
|
|
480
|
+
if multiRun and runLimits:
|
|
481
|
+
cmd += " --multiRun --runLimits=%s" % (runLimits)
|
|
482
|
+
if runIsComplete:
|
|
483
|
+
cmd += " --runIsComplete"
|
|
484
|
+
self.scramRun(cmd)
|
|
485
|
+
|
|
486
|
+
return
|
|
487
|
+
|
|
488
|
+
def handleLHEInput(self):
|
|
489
|
+
"""
|
|
490
|
+
_handleLHEInput_
|
|
491
|
+
|
|
492
|
+
Enable lazy-download for jobs reading LHE articles from CERN, such
|
|
493
|
+
that these jobs can read data remotely
|
|
494
|
+
"""
|
|
495
|
+
|
|
496
|
+
if getattr(self.jobBag, "lheInputFiles", False):
|
|
497
|
+
self.logger.info("Enabling 'lazy-download' for lheInputFiles job")
|
|
498
|
+
self._enableLazyDownload()
|
|
499
|
+
|
|
500
|
+
return
|
|
501
|
+
|
|
502
|
+
def handleRepackSettings(self):
|
|
503
|
+
"""
|
|
504
|
+
_handleRepackSettings_
|
|
505
|
+
|
|
506
|
+
Repacking small events is super inefficient reading directly from EOS.
|
|
507
|
+
"""
|
|
508
|
+
self.logger.info("Hardcoding read/cache strategies for repack")
|
|
509
|
+
self._enableLazyDownload()
|
|
510
|
+
return
|
|
511
|
+
|
|
512
|
+
def _enableLazyDownload(self):
|
|
513
|
+
"""
|
|
514
|
+
_enableLazyDownload_
|
|
515
|
+
|
|
516
|
+
Set things to read data remotely
|
|
517
|
+
"""
|
|
518
|
+
procScript = "cmssw_enable_lazy_download.py"
|
|
519
|
+
cmd = "%s --input_pkl %s --output_pkl %s" % (
|
|
520
|
+
procScript,
|
|
521
|
+
os.path.join(self.stepSpace.location, self.configPickle),
|
|
522
|
+
os.path.join(self.stepSpace.location, self.configPickle))
|
|
523
|
+
self.scramRun(cmd)
|
|
524
|
+
|
|
525
|
+
return
|
|
526
|
+
|
|
527
|
+
def handleSingleCoreOverride(self):
|
|
528
|
+
"""
|
|
529
|
+
_handleSingleCoreOverride_
|
|
530
|
+
|
|
531
|
+
Make sure job only uses one core and one stream in CMSSW
|
|
532
|
+
"""
|
|
533
|
+
try:
|
|
534
|
+
if int(self.step.data.application.multicore.numberOfCores) > 1:
|
|
535
|
+
self.step.data.application.multicore.numberOfCores = 1
|
|
536
|
+
except AttributeError:
|
|
537
|
+
pass
|
|
538
|
+
|
|
539
|
+
try:
|
|
540
|
+
if int(self.step.data.application.multicore.eventStreams) > 0:
|
|
541
|
+
self.step.data.application.multicore.eventStreams = 0
|
|
542
|
+
except AttributeError:
|
|
543
|
+
pass
|
|
544
|
+
|
|
545
|
+
return
|
|
546
|
+
|
|
547
|
+
def handleSpecialCERNMergeSettings(self, funcName):
|
|
548
|
+
"""
|
|
549
|
+
_handleSpecialCERNMergeSettings_
|
|
550
|
+
|
|
551
|
+
CERN has a 30ms latency between Meyrin and Wigner, which kills merge performance
|
|
552
|
+
Enable lazy-download for fastCloning for all CMSSW_7_5 jobs (currently off)
|
|
553
|
+
Enable lazy-download for all merge jobs
|
|
554
|
+
"""
|
|
555
|
+
if self.getCmsswVersion().startswith("CMSSW_7_5") and False:
|
|
556
|
+
self.logger.info("Using fastCloning/lazydownload")
|
|
557
|
+
self._enableLazyDownload()
|
|
558
|
+
elif funcName == "merge":
|
|
559
|
+
self.logger.info("Using lazydownload")
|
|
560
|
+
self._enableLazyDownload()
|
|
561
|
+
|
|
562
|
+
return
|
|
563
|
+
|
|
564
|
+
def handleCondorStatusService(self):
|
|
565
|
+
"""
|
|
566
|
+
_handleCondorStatusService_
|
|
567
|
+
|
|
568
|
+
Enable CondorStatusService for CMSSW releases that support it.
|
|
569
|
+
"""
|
|
570
|
+
procScript = "cmssw_handle_condor_status_service.py"
|
|
571
|
+
cmd = "%s --input_pkl %s --output_pkl %s --name %s" % (
|
|
572
|
+
procScript,
|
|
573
|
+
os.path.join(self.stepSpace.location, self.configPickle),
|
|
574
|
+
os.path.join(self.stepSpace.location, self.configPickle),
|
|
575
|
+
self.step.data._internal_name)
|
|
576
|
+
self.scramRun(cmd)
|
|
577
|
+
|
|
578
|
+
return
|
|
579
|
+
|
|
580
|
+
def handleEnforceGUIDInFileName(self, secondaryInput=None):
|
|
581
|
+
"""
|
|
582
|
+
_handleEnforceGUIDInFileName_
|
|
583
|
+
|
|
584
|
+
Enable enforceGUIDInFileName for CMSSW releases that support it.
|
|
585
|
+
"""
|
|
586
|
+
# skip it for CRAB jobs
|
|
587
|
+
if self.crabPSet:
|
|
588
|
+
return
|
|
589
|
+
|
|
590
|
+
if secondaryInput:
|
|
591
|
+
inputSource = secondaryInput
|
|
592
|
+
self.logger.info("Evaluating enforceGUIDInFileName parameter for secondary input data.")
|
|
593
|
+
else:
|
|
594
|
+
inputSource = self.process.source
|
|
595
|
+
|
|
596
|
+
if hasattr(inputSource, "type_"):
|
|
597
|
+
inputSourceType = inputSource.type_()
|
|
598
|
+
elif hasattr(inputSource, "_TypedParameterizable__type"):
|
|
599
|
+
inputSourceType = inputSource._TypedParameterizable__type
|
|
600
|
+
else:
|
|
601
|
+
msg = "Source type could not be determined."
|
|
602
|
+
self.logger.error(msg)
|
|
603
|
+
raise AttributeError(msg)
|
|
604
|
+
|
|
605
|
+
# only enable if source is PoolSource or EmbeddedRootSource
|
|
606
|
+
if inputSourceType not in ["PoolSource", "EmbeddedRootSource"]:
|
|
607
|
+
self.logger.info("Not evaluating enforceGUIDInFileName parameter for process source %s",
|
|
608
|
+
inputSourceType)
|
|
609
|
+
return
|
|
610
|
+
|
|
611
|
+
procScript = "cmssw_enforce_guid_in_filename.py"
|
|
612
|
+
cmd = "%s --input_pkl %s --output_pkl %s --input_source %s" % (
|
|
613
|
+
procScript,
|
|
614
|
+
os.path.join(self.stepSpace.location, self.configPickle),
|
|
615
|
+
os.path.join(self.stepSpace.location, self.configPickle),
|
|
616
|
+
inputSourceType)
|
|
617
|
+
self.scramRun(cmd)
|
|
618
|
+
|
|
619
|
+
return
|
|
620
|
+
|
|
621
|
+
def getCmsswVersion(self):
|
|
622
|
+
"""
|
|
623
|
+
_getCmsswVersion_
|
|
624
|
+
|
|
625
|
+
Return a string representing the CMSSW version to be used.
|
|
626
|
+
"""
|
|
627
|
+
if not self.crabPSet:
|
|
628
|
+
return self.step.data.application.setup.cmsswVersion
|
|
629
|
+
|
|
630
|
+
# CRAB3 needs to use an environment var to get the version
|
|
631
|
+
return os.environ.get("CMSSW_VERSION", "")
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
def getScramVersion(self, allSteps=False):
|
|
635
|
+
"""
|
|
636
|
+
_getScramVersion_
|
|
637
|
+
|
|
638
|
+
Return a string representing the first Scram version to be used (or all)
|
|
639
|
+
"""
|
|
640
|
+
if not self.crabPSet:
|
|
641
|
+
scramArch = self.step.data.application.setup.scramArch
|
|
642
|
+
if allSteps:
|
|
643
|
+
return scramArch
|
|
644
|
+
else:
|
|
645
|
+
if isinstance(scramArch, list):
|
|
646
|
+
return next(iter(scramArch or []), None)
|
|
647
|
+
|
|
648
|
+
# CRAB3 needs to use an environment var to get the version
|
|
649
|
+
return os.environ.get("SCRAM_ARCH", "")
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
def __call__(self):
|
|
653
|
+
"""
|
|
654
|
+
_call_
|
|
655
|
+
|
|
656
|
+
Examine the step configuration and construct a PSet from that.
|
|
657
|
+
|
|
658
|
+
"""
|
|
659
|
+
self.logger.info("Executing SetupCMSSWPSet...")
|
|
660
|
+
self.jobBag = self.job.getBaggage()
|
|
661
|
+
self.configPickle = getattr(self.step.data.application.command, "configurationPickle", "PSet.pkl")
|
|
662
|
+
self.psetFile = getattr(self.step.data.application.command, "configuration", "PSet.py")
|
|
663
|
+
self.scram = self.createScramEnv()
|
|
664
|
+
|
|
665
|
+
scenario = getattr(self.step.data.application.configuration, "scenario", None)
|
|
666
|
+
funcName = getattr(self.step.data.application.configuration, "function", None)
|
|
667
|
+
if scenario is not None and scenario != "":
|
|
668
|
+
self.logger.info("Setting up job scenario/process")
|
|
669
|
+
if getattr(self.step.data.application.configuration, "pickledarguments", None) is not None:
|
|
670
|
+
pklArgs = encodeUnicodeToBytes(self.step.data.application.configuration.pickledarguments)
|
|
671
|
+
funcArgs = pickle.loads(pklArgs)
|
|
672
|
+
else:
|
|
673
|
+
funcArgs = {}
|
|
674
|
+
|
|
675
|
+
# Create process
|
|
676
|
+
try:
|
|
677
|
+
self.createProcess(scenario, funcName, funcArgs)
|
|
678
|
+
except Exception as ex:
|
|
679
|
+
self.logger.exception("Error creating process for Config/DataProcessing:")
|
|
680
|
+
raise ex
|
|
681
|
+
# Now, load the new picked process
|
|
682
|
+
try:
|
|
683
|
+
with open(os.path.join(self.stepSpace.location, self.configPickle), 'rb') as f:
|
|
684
|
+
self.process = Unpickler(f).load()
|
|
685
|
+
except ImportError as ex:
|
|
686
|
+
msg = "Unable to import pset from %s:\n" % self.psetFile
|
|
687
|
+
msg += str(ex)
|
|
688
|
+
self.logger.error(msg)
|
|
689
|
+
raise ex
|
|
690
|
+
|
|
691
|
+
if funcName == "repack":
|
|
692
|
+
self.handleRepackSettings()
|
|
693
|
+
|
|
694
|
+
if funcName in ["merge", "alcaHarvesting"]:
|
|
695
|
+
self.handleSingleCoreOverride()
|
|
696
|
+
|
|
697
|
+
if socket.getfqdn().endswith("cern.ch"):
|
|
698
|
+
self.handleSpecialCERNMergeSettings(funcName)
|
|
699
|
+
else:
|
|
700
|
+
self.logger.info("DEBUG: Now in the none scenario to load PSET")
|
|
701
|
+
try:
|
|
702
|
+
self.loadPSet()
|
|
703
|
+
except Exception as ex:
|
|
704
|
+
self.logger.exception("Error loading PSet:")
|
|
705
|
+
raise ex
|
|
706
|
+
|
|
707
|
+
# Check process.source exists
|
|
708
|
+
if getattr(self.process, "source", None) is None and getattr(self.process, "_Process__source", None) is None:
|
|
709
|
+
msg = "Error in CMSSW PSet: process object is either missing or has "
|
|
710
|
+
msg += "None value for attributes 'source' and '_Process__source'. "
|
|
711
|
+
msg += f"Details of process object are: {pformat(dir(self.process))}"
|
|
712
|
+
self.logger.error(msg)
|
|
713
|
+
raise RuntimeError(msg)
|
|
714
|
+
|
|
715
|
+
self.handleCondorStatusService()
|
|
716
|
+
self.fixupProcess()
|
|
717
|
+
|
|
718
|
+
# In case of CRAB3, the number of threads in the PSet should not be overridden
|
|
719
|
+
if not self.crabPSet:
|
|
720
|
+
try:
|
|
721
|
+
self.makeThreadsStreamsTweak()
|
|
722
|
+
except AttributeError as ex:
|
|
723
|
+
self.logger.error("Failed to override numberOfThreads: %s", str(ex))
|
|
724
|
+
|
|
725
|
+
# Apply task level tweaks
|
|
726
|
+
makeTaskTweak(self.step.data, self.tweak)
|
|
727
|
+
self.applyPsetTweak(self.tweak, cleanupTweak=True)
|
|
728
|
+
|
|
729
|
+
# Check if chained processing is enabled
|
|
730
|
+
# If not - apply the per job tweaks
|
|
731
|
+
# If so - create an override TFC (like done in PA) and then modify thePSet accordingly
|
|
732
|
+
if hasattr(self.step.data.input, "chainedProcessing") and self.step.data.input.chainedProcessing:
|
|
733
|
+
self.logger.info("Handling Chain processing tweaks")
|
|
734
|
+
self.handleChainedProcessingTweak()
|
|
735
|
+
else:
|
|
736
|
+
self.logger.info("Creating job level tweaks")
|
|
737
|
+
makeJobTweak(self.job, self.tweak)
|
|
738
|
+
self.applyPsetTweak(self.tweak, cleanupTweak=True)
|
|
739
|
+
|
|
740
|
+
# check for pileup settings presence, pileup support implementation
|
|
741
|
+
# and if enabled, process pileup configuration / settings
|
|
742
|
+
if hasattr(self.step.data, "pileup"):
|
|
743
|
+
self.handlePileup()
|
|
744
|
+
|
|
745
|
+
# Apply per output module PSet Tweaks
|
|
746
|
+
self.logger.info("Output module section")
|
|
747
|
+
cmsswStep = self.step.getTypeHelper()
|
|
748
|
+
for om in cmsswStep.listOutputModules():
|
|
749
|
+
mod = cmsswStep.getOutputModule(om)
|
|
750
|
+
modName = mod.getInternalName()
|
|
751
|
+
|
|
752
|
+
if funcName == 'merge':
|
|
753
|
+
# Do not use both Merged output label unless useErrorDataset is False
|
|
754
|
+
# Do not use both MergedError output label unless useErrorDataset is True
|
|
755
|
+
useErrorDataset = getattr(self.jobBag, "useErrorDataset", False)
|
|
756
|
+
|
|
757
|
+
if useErrorDataset and modName != 'MergedError':
|
|
758
|
+
continue
|
|
759
|
+
if not useErrorDataset and modName == 'MergedError':
|
|
760
|
+
continue
|
|
761
|
+
|
|
762
|
+
makeOutputTweak(mod, self.job, self.tweak)
|
|
763
|
+
# allow failed tweaks in this case, to replicate the previous implementation, where it would ignore
|
|
764
|
+
# and continue if it found an output module that doesn't exist and don't want in the pset like: process.Sqlite
|
|
765
|
+
self.applyPsetTweak(self.tweak, allowFailedTweaks=True, cleanupTweak=True)
|
|
766
|
+
|
|
767
|
+
# revlimiter for testing
|
|
768
|
+
if getattr(self.step.data.application.command, "oneEventMode", False):
|
|
769
|
+
self.tweak.addParameter('process.maxEvents.input', "customTypeCms.untracked.int32(1)")
|
|
770
|
+
|
|
771
|
+
# check for random seeds and the method of seeding which is in the job baggage
|
|
772
|
+
self.handleSeeding()
|
|
773
|
+
|
|
774
|
+
# make sure default parametersets for perf reports are installed
|
|
775
|
+
self.handlePerformanceSettings()
|
|
776
|
+
|
|
777
|
+
# fixup the dqmFileSaver
|
|
778
|
+
self.handleDQMFileSaver()
|
|
779
|
+
|
|
780
|
+
# tweak for jobs reading LHE articles from CERN
|
|
781
|
+
self.handleLHEInput()
|
|
782
|
+
|
|
783
|
+
# tweak jobs for enforceGUIDInFileName
|
|
784
|
+
self.handleEnforceGUIDInFileName()
|
|
785
|
+
|
|
786
|
+
# Check if we accept skipping bad files
|
|
787
|
+
if hasattr(self.step.data.application.configuration, "skipBadFiles"):
|
|
788
|
+
self.tweak.addParameter("process.source.skipBadFiles",
|
|
789
|
+
"customTypeCms.untracked.bool(%s)" % self.step.data.application.configuration.skipBadFiles)
|
|
790
|
+
|
|
791
|
+
# Apply events per lumi section if available
|
|
792
|
+
if hasattr(self.step.data.application.configuration, "eventsPerLumi"):
|
|
793
|
+
self.tweak.addParameter("process.source.numberEventsInLuminosityBlock",
|
|
794
|
+
"customTypeCms.untracked.uint32(%s)" % self.step.data.application.configuration.eventsPerLumi)
|
|
795
|
+
|
|
796
|
+
# limit run time if desired
|
|
797
|
+
if hasattr(self.step.data.application.configuration, "maxSecondsUntilRampdown"):
|
|
798
|
+
self.tweak.addParameter("process.maxSecondsUntilRampdown.input",
|
|
799
|
+
"customTypeCms.untracked.PSet(input=cms.untracked.int32(%s))" % self.step.data.application.configuration.maxSecondsUntilRampdown)
|
|
800
|
+
|
|
801
|
+
# accept an overridden TFC from the step
|
|
802
|
+
if hasattr(self.step.data.application, 'overrideCatalog'):
|
|
803
|
+
self.logger.info("Found a TFC override: %s", self.step.data.application.overrideCatalog)
|
|
804
|
+
self.tweak.addParameter("process.source.overrideCatalog",
|
|
805
|
+
"customTypeCms.untracked.string('%s')" % self.step.data.application.overrideCatalog)
|
|
806
|
+
|
|
807
|
+
configFile = self.step.data.application.command.configuration
|
|
808
|
+
workingDir = self.stepSpace.location
|
|
809
|
+
try:
|
|
810
|
+
self.applyPsetTweak(self.tweak)
|
|
811
|
+
|
|
812
|
+
with open("%s/%s" % (workingDir, configFile), 'w') as handle:
|
|
813
|
+
handle.write("import FWCore.ParameterSet.Config as cms\n")
|
|
814
|
+
handle.write("import pickle\n")
|
|
815
|
+
handle.write("with open('%s', 'rb') as handle:\n" % self.configPickle)
|
|
816
|
+
handle.write(" process = pickle.load(handle)\n")
|
|
817
|
+
except Exception as ex:
|
|
818
|
+
self.logger.exception("Error writing out PSet:")
|
|
819
|
+
raise ex
|
|
820
|
+
|
|
821
|
+
# check for event numbers in the producers
|
|
822
|
+
self.handleProducersNumberOfEvents()
|
|
823
|
+
|
|
824
|
+
self.logger.info("CMSSW PSet setup completed!")
|
|
825
|
+
|
|
826
|
+
return 0
|