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,465 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
"""
|
|
3
|
+
_Scram_
|
|
4
|
+
|
|
5
|
+
Command line scram environment wrapper that can be used to run small commands
|
|
6
|
+
requiring the scram environment setup
|
|
7
|
+
|
|
8
|
+
sample usage:
|
|
9
|
+
|
|
10
|
+
scram = Scram(
|
|
11
|
+
version = "CMSSW_X_Y_Z", # CMSSW Version
|
|
12
|
+
directory = "path to working area" # defaults to cwd
|
|
13
|
+
initialise = " . /uscmst1/prod/sw/cms/setup/shrc prod" # boot strap env command
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
scram.project() # creates project area
|
|
19
|
+
scram.runtime() # creates runtime environment
|
|
20
|
+
|
|
21
|
+
# run something requireing scram env
|
|
22
|
+
retval = scram("edmFileUtil")
|
|
23
|
+
print retval, scram.stdout, scram.stderr
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
from builtins import range, object
|
|
29
|
+
|
|
30
|
+
import logging
|
|
31
|
+
import os
|
|
32
|
+
import os.path
|
|
33
|
+
import subprocess
|
|
34
|
+
import sys
|
|
35
|
+
import platform
|
|
36
|
+
|
|
37
|
+
from PSetTweaks.WMTweak import readAdValues
|
|
38
|
+
from Utils.Utilities import encodeUnicodeToBytes, decodeBytesToUnicode
|
|
39
|
+
|
|
40
|
+
SCRAM_TO_ARCH = {'amd64': 'X86_64', 'aarch64': 'aarch64', 'ppc64le': 'ppc64le'}
|
|
41
|
+
# Scram arch to platform machine values above are unique, so we can reverse the mapping
|
|
42
|
+
ARCH_TO_SCRAM = {arch:scram for scram, arch in list(SCRAM_TO_ARCH.items())}
|
|
43
|
+
ARCH_TO_OS = {'slc5': ['rhel6'],
|
|
44
|
+
'slc6': ['rhel6'],
|
|
45
|
+
'slc7': ['rhel7'],
|
|
46
|
+
'el8': ['rhel8'], 'cc8': ['rhel8'], 'cs8': ['rhel8'], 'alma8': ['rhel8'],
|
|
47
|
+
'el9': ['rhel9'], 'cs9': ['rhel9'],
|
|
48
|
+
}
|
|
49
|
+
OS_TO_ARCH = {}
|
|
50
|
+
for arch, oses in ARCH_TO_OS.items():
|
|
51
|
+
for osName in oses:
|
|
52
|
+
if osName not in OS_TO_ARCH:
|
|
53
|
+
OS_TO_ARCH[osName] = []
|
|
54
|
+
OS_TO_ARCH[osName].append(arch)
|
|
55
|
+
|
|
56
|
+
def getPlatformMachine():
|
|
57
|
+
"""
|
|
58
|
+
Get the platform machine. Keep it compatible with HTCondor
|
|
59
|
+
:return: str, platform machine.
|
|
60
|
+
"""
|
|
61
|
+
machine = platform.machine()
|
|
62
|
+
# Condor throws X86_64 but machine uses x86_64. Using condor convention
|
|
63
|
+
if machine == 'x86_64':
|
|
64
|
+
machine = machine.upper()
|
|
65
|
+
|
|
66
|
+
return machine
|
|
67
|
+
|
|
68
|
+
def getSingleScramArch(scramArch):
|
|
69
|
+
"""
|
|
70
|
+
Figure out which scram arch is compatible with both the request and the release
|
|
71
|
+
|
|
72
|
+
Args:
|
|
73
|
+
scramArch: string or list of strings representing valid scram arches for the workflow
|
|
74
|
+
|
|
75
|
+
Returns:
|
|
76
|
+
a single scram arch
|
|
77
|
+
"""
|
|
78
|
+
if isinstance(scramArch, list):
|
|
79
|
+
try:
|
|
80
|
+
ad = readAdValues(['glidein_required_os'], 'machine')
|
|
81
|
+
runningOS = ad['glidein_required_os'].strip('"')
|
|
82
|
+
validArches = sorted(OS_TO_ARCH[runningOS], reverse=True)
|
|
83
|
+
for requestedArch in sorted(scramArch, reverse=True):
|
|
84
|
+
for validArch in validArches:
|
|
85
|
+
if requestedArch.startswith(validArch):
|
|
86
|
+
# Check target machine matches with a valid scram arch
|
|
87
|
+
if ARCH_TO_SCRAM.get(getPlatformMachine()):
|
|
88
|
+
return requestedArch
|
|
89
|
+
except KeyError:
|
|
90
|
+
return sorted(scramArch)[-1] # Give the most recent release if lookup fails
|
|
91
|
+
return None
|
|
92
|
+
else:
|
|
93
|
+
return scramArch
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def isCMSSWSupported(thisCMSSW, supportedCMSSW):
|
|
97
|
+
"""
|
|
98
|
+
_isCMSSWSupported_
|
|
99
|
+
|
|
100
|
+
Function used to validate whether the CMSSW release to be used supports
|
|
101
|
+
a feature that is not available in all releases.
|
|
102
|
+
:param thisCMSSW: release to be used in this job
|
|
103
|
+
:param allowedCMSSW: first (lowest) release that started supporting the
|
|
104
|
+
feature you'd like to use.
|
|
105
|
+
|
|
106
|
+
NOTE: only the 3 digits version are evaluated, pre and patch releases
|
|
107
|
+
are not taken into consideration
|
|
108
|
+
"""
|
|
109
|
+
if not thisCMSSW or not supportedCMSSW:
|
|
110
|
+
logging.info("You must provide the CMSSW version being used by this job and a supported version")
|
|
111
|
+
return False
|
|
112
|
+
|
|
113
|
+
if thisCMSSW == supportedCMSSW:
|
|
114
|
+
return True
|
|
115
|
+
|
|
116
|
+
thisCMSSW = [int(i) for i in thisCMSSW.split('_', 4)[1:4]]
|
|
117
|
+
supportedCMSSW = [int(i) for i in supportedCMSSW.split('_', 4)[1:4]]
|
|
118
|
+
for idx in range(3):
|
|
119
|
+
if thisCMSSW[idx] > supportedCMSSW[idx]:
|
|
120
|
+
return True
|
|
121
|
+
elif thisCMSSW[idx] == supportedCMSSW[idx] and idx < 2:
|
|
122
|
+
if thisCMSSW[idx + 1] > supportedCMSSW[idx + 1]:
|
|
123
|
+
return True
|
|
124
|
+
else:
|
|
125
|
+
return False
|
|
126
|
+
|
|
127
|
+
return False
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def isEnforceGUIDInFileNameSupported(thisCMSSW):
|
|
131
|
+
"""
|
|
132
|
+
_isEnforceGUIDInFileNameSupported_
|
|
133
|
+
|
|
134
|
+
Function used to validate whether the CMSSW release to be used supports
|
|
135
|
+
the enforceGUIDInFileName feature.
|
|
136
|
+
:param thisCMSSW: release to be used in this job
|
|
137
|
+
|
|
138
|
+
"""
|
|
139
|
+
# a set of CMSSW releases that support the enforceGUIDInFileName feature. Releases in the same
|
|
140
|
+
# cycle with a higher minor revision number also support the feature.
|
|
141
|
+
supportedReleases = set(["CMSSW_10_6_8", "CMSSW_10_2_20", "CMSSW_9_4_16", "CMSSW_9_3_17", "CMSSW_8_0_34"])
|
|
142
|
+
# a set of specific CMSSW releases that supported the enforceGUIDInFileName feature.
|
|
143
|
+
specificSupportedReleases = set(["CMSSW_10_2_20_UL", "CMSSW_9_4_16_UL", "CMSSW_8_0_34_UL", "CMSSW_7_1_45_patch3"])
|
|
144
|
+
|
|
145
|
+
if not thisCMSSW:
|
|
146
|
+
logging.info("You must provide the CMSSW version being used by this job.")
|
|
147
|
+
return False
|
|
148
|
+
|
|
149
|
+
# true if CMSSW release is >= CMSSW_11_0_0
|
|
150
|
+
if isCMSSWSupported(thisCMSSW, "CMSSW_11_0_0"):
|
|
151
|
+
return True
|
|
152
|
+
# true if CMSSW release is in the specific release set
|
|
153
|
+
elif thisCMSSW in specificSupportedReleases:
|
|
154
|
+
return True
|
|
155
|
+
# true if the CMSSW release's minor revision is >= to one of the supported releases
|
|
156
|
+
else:
|
|
157
|
+
thisMajor, thisMid, thisMinor = [int(i) for i in thisCMSSW.split('_', 4)[1:4]]
|
|
158
|
+
for release in supportedReleases:
|
|
159
|
+
supportedMajor, supportedMid, supportedMinor = [int(i) for i in release.split('_', 4)[1:4]]
|
|
160
|
+
# major and mid revisions need an exact match
|
|
161
|
+
if thisMajor == supportedMajor and thisMid == supportedMid:
|
|
162
|
+
# minor revision need to be >= to the supported minor revision
|
|
163
|
+
if thisMinor >= supportedMinor:
|
|
164
|
+
return True
|
|
165
|
+
return False
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
def testWriter(func, *args):
|
|
169
|
+
"""
|
|
170
|
+
_testWriter_
|
|
171
|
+
|
|
172
|
+
If running Scram object in unittests, this mode will neuter the shell commands to make them
|
|
173
|
+
echo the commands written to the subprocess.
|
|
174
|
+
|
|
175
|
+
"""
|
|
176
|
+
|
|
177
|
+
def newWriter(*args):
|
|
178
|
+
newWriter.__name__ = func.__name__
|
|
179
|
+
newWriter.__doc__ = func.__doc__
|
|
180
|
+
newWriter.__dict__.update(func.__dict__)
|
|
181
|
+
subproc = args[0]
|
|
182
|
+
line = args[1]
|
|
183
|
+
escapedLine = "echo \"%s\"\n" % line
|
|
184
|
+
func(subproc, escapedLine)
|
|
185
|
+
|
|
186
|
+
return newWriter
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
# //
|
|
190
|
+
# // Interceptable function to push commands to the subshell, used to
|
|
191
|
+
# // enable test mode.
|
|
192
|
+
procWriter = lambda s, l: s.stdin.write(encodeUnicodeToBytes(l))
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
class Scram(object):
|
|
196
|
+
"""
|
|
197
|
+
_Scram_
|
|
198
|
+
|
|
199
|
+
Object to encapsulate a scram "session" that can be used to create
|
|
200
|
+
a project area, bootstrap the environment and then use that to
|
|
201
|
+
execute commands
|
|
202
|
+
|
|
203
|
+
Simple enumeration of scram errors is performed, to allow to be mapped to standard
|
|
204
|
+
exception/error conditions
|
|
205
|
+
|
|
206
|
+
"""
|
|
207
|
+
|
|
208
|
+
def __init__(self, **options):
|
|
209
|
+
self.command = options.get("command", "scramv1")
|
|
210
|
+
self.initialise = options.get("initialise", None)
|
|
211
|
+
self.version = options.get("version", None)
|
|
212
|
+
self.directory = options.get("directory", os.getcwd())
|
|
213
|
+
self.architecture = options.get("architecture", None)
|
|
214
|
+
self.test_mode = options.get("test", False)
|
|
215
|
+
self.envCmd = options.get("envCmd", None)
|
|
216
|
+
|
|
217
|
+
# state checks
|
|
218
|
+
self.projectArea = None
|
|
219
|
+
self.runtimeEnv = {}
|
|
220
|
+
|
|
221
|
+
# handler to write to subprocesses
|
|
222
|
+
self.library_path = "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH\n"
|
|
223
|
+
self.procWriter = procWriter
|
|
224
|
+
if self.test_mode:
|
|
225
|
+
# if in test mode, decorate the subprocess writer with the test harness
|
|
226
|
+
self.procWriter = testWriter(procWriter)
|
|
227
|
+
# dont actually try to call a non-existent scram binary in test mode
|
|
228
|
+
self.command = "/bin/echo"
|
|
229
|
+
|
|
230
|
+
# buffers for debug/error reporting
|
|
231
|
+
self.stdout = None
|
|
232
|
+
self.stderr = None
|
|
233
|
+
self.code = None
|
|
234
|
+
self.lastExecuted = None
|
|
235
|
+
|
|
236
|
+
def preCommand(self):
|
|
237
|
+
"""
|
|
238
|
+
_preCommand_
|
|
239
|
+
|
|
240
|
+
build the pre execution command for scram environment
|
|
241
|
+
|
|
242
|
+
"""
|
|
243
|
+
result = ""
|
|
244
|
+
if self.architecture is not None:
|
|
245
|
+
result += "export SCRAM_ARCH=%s\n" % self.architecture
|
|
246
|
+
|
|
247
|
+
if self.initialise is not None:
|
|
248
|
+
result += "%s\n" % self.initialise
|
|
249
|
+
result += """if [ "$?" -ne "0" ]; then exit 2; fi\n"""
|
|
250
|
+
return result
|
|
251
|
+
|
|
252
|
+
def project(self):
|
|
253
|
+
"""
|
|
254
|
+
_project_
|
|
255
|
+
|
|
256
|
+
Do a scram project command in the directory provided
|
|
257
|
+
Sets the projectArea attribute checked by runtime and call
|
|
258
|
+
|
|
259
|
+
"""
|
|
260
|
+
proc = subprocess.Popen(
|
|
261
|
+
["/bin/bash"], shell=True, cwd=self.directory,
|
|
262
|
+
stdout=subprocess.PIPE,
|
|
263
|
+
stderr=subprocess.PIPE,
|
|
264
|
+
stdin=subprocess.PIPE,
|
|
265
|
+
)
|
|
266
|
+
|
|
267
|
+
# send commands to the subshell utilising the process writer method
|
|
268
|
+
self.procWriter(proc, self.preCommand())
|
|
269
|
+
self.procWriter(proc, "%s --arch %s project CMSSW %s\n" % (self.command, self.architecture, self.version))
|
|
270
|
+
self.procWriter(proc, """if [ "$?" -ne "0" ]; then exit 3; fi\n""")
|
|
271
|
+
self.procWriter(proc, "exit 0")
|
|
272
|
+
|
|
273
|
+
self.projectArea = "%s/%s" % (self.directory, self.version)
|
|
274
|
+
self.stdout, self.stderr = proc.communicate()
|
|
275
|
+
self.code = proc.returncode
|
|
276
|
+
self.lastExecuted = "%s project CMSSW %s" % (
|
|
277
|
+
self.command, self.version)
|
|
278
|
+
if self.test_mode:
|
|
279
|
+
# in test mode, the scram command would create the project area
|
|
280
|
+
# have to emulate this by hand here.
|
|
281
|
+
if not os.path.exists(self.projectArea):
|
|
282
|
+
os.makedirs(self.projectArea)
|
|
283
|
+
return proc.returncode
|
|
284
|
+
|
|
285
|
+
def runtime(self):
|
|
286
|
+
"""
|
|
287
|
+
_runtime_
|
|
288
|
+
|
|
289
|
+
Scram runtime command
|
|
290
|
+
|
|
291
|
+
"""
|
|
292
|
+
if self.projectArea is None:
|
|
293
|
+
msg = "Scram Runtime called with Project Area not set"
|
|
294
|
+
self.stdout = msg
|
|
295
|
+
self.stderr = ""
|
|
296
|
+
return 1
|
|
297
|
+
|
|
298
|
+
try:
|
|
299
|
+
proc = subprocess.Popen(
|
|
300
|
+
["/bin/bash"], shell=True, cwd=self.projectArea,
|
|
301
|
+
stdout=subprocess.PIPE,
|
|
302
|
+
stderr=subprocess.PIPE,
|
|
303
|
+
stdin=subprocess.PIPE,
|
|
304
|
+
)
|
|
305
|
+
except Exception as ex:
|
|
306
|
+
msg = "Error thrown while invoking subprocess for scram runtime\n"
|
|
307
|
+
msg += "%s\n" % str(ex)
|
|
308
|
+
msg += "Opening subprocess shell in %s" % self.projectArea
|
|
309
|
+
self.stdout = msg
|
|
310
|
+
self.stderr = ""
|
|
311
|
+
return 1
|
|
312
|
+
|
|
313
|
+
# write via process writer method
|
|
314
|
+
self.procWriter(proc, self.library_path)
|
|
315
|
+
self.procWriter(proc, self.preCommand())
|
|
316
|
+
self.procWriter(proc, "%s ru -sh\n" % self.command)
|
|
317
|
+
self.procWriter(proc, """if [ "$?" -ne "0" ]; then exit 4; fi\n""")
|
|
318
|
+
self.procWriter(proc, "eval `%s ru -sh`\n" % self.command)
|
|
319
|
+
|
|
320
|
+
self.stdout, self.stderr = proc.communicate()
|
|
321
|
+
self.stdout = decodeBytesToUnicode(self.stdout)
|
|
322
|
+
self.stderr = decodeBytesToUnicode(self.stderr)
|
|
323
|
+
if proc.returncode == 0:
|
|
324
|
+
for l in self.stdout.split(";\n"):
|
|
325
|
+
if l.strip() == "":
|
|
326
|
+
continue
|
|
327
|
+
if l.strip().startswith('unset'):
|
|
328
|
+
continue
|
|
329
|
+
l = l.replace("export ", "")
|
|
330
|
+
try:
|
|
331
|
+
var, val = l.split("=", 1)
|
|
332
|
+
except ValueError as ex:
|
|
333
|
+
raise ValueError("Couldn't split line: %s" % l) from ex
|
|
334
|
+
|
|
335
|
+
self.runtimeEnv[var] = val
|
|
336
|
+
if self.test_mode:
|
|
337
|
+
# ensure that runtime env isnt empty in test mode
|
|
338
|
+
# as that will cause an exception in __call__
|
|
339
|
+
self.runtimeEnv['TEST_MODE'] = 1
|
|
340
|
+
self.code = proc.returncode
|
|
341
|
+
self.lastExecuted = "eval `%s ru -sh`" % self.command
|
|
342
|
+
return proc.returncode
|
|
343
|
+
|
|
344
|
+
def __call__(self, command, hackLdLibPath=False, runtimeDir=None, cleanEnv=True):
|
|
345
|
+
"""
|
|
346
|
+
_operator(command)_
|
|
347
|
+
|
|
348
|
+
Run the command in the runtime environment
|
|
349
|
+
|
|
350
|
+
"""
|
|
351
|
+
if self.projectArea is None:
|
|
352
|
+
msg = "Scram Project Area not set/project() not called"
|
|
353
|
+
raise RuntimeError(msg)
|
|
354
|
+
if self.runtimeEnv == {}:
|
|
355
|
+
msg = "Scram runtime environment is empty/runtime() not called"
|
|
356
|
+
raise RuntimeError(msg)
|
|
357
|
+
executeIn = runtimeDir
|
|
358
|
+
if runtimeDir is None:
|
|
359
|
+
executeIn = self.projectArea
|
|
360
|
+
|
|
361
|
+
bashcmd = "/bin/bash"
|
|
362
|
+
if cleanEnv:
|
|
363
|
+
# Start with a clean environment
|
|
364
|
+
bashcmd = "env - " + bashcmd
|
|
365
|
+
|
|
366
|
+
logging.info("Creating a subprocess to run the PSet setup.")
|
|
367
|
+
logging.info("Also recording SCRAM command-line related output.")
|
|
368
|
+
proc = subprocess.Popen([bashcmd], shell=True, cwd=executeIn,
|
|
369
|
+
stdout=subprocess.PIPE,
|
|
370
|
+
stderr=subprocess.STDOUT,
|
|
371
|
+
stdin=subprocess.PIPE,
|
|
372
|
+
)
|
|
373
|
+
|
|
374
|
+
# Passing the environment in to the subprocess call results in all of
|
|
375
|
+
# the variables being quoted which causes problems for search paths.
|
|
376
|
+
# We'll setup the environment the hard way to avoid this.
|
|
377
|
+
rtCmsswBase = None
|
|
378
|
+
rtScramArch = self.architecture
|
|
379
|
+
for varName in self.runtimeEnv:
|
|
380
|
+
self.procWriter(proc, 'export %s=%s\n' % (varName, self.runtimeEnv[varName]))
|
|
381
|
+
if varName == "CMSSW_RELEASE_BASE":
|
|
382
|
+
rtCmsswBase = self.runtimeEnv[varName].replace('\"', '')
|
|
383
|
+
if varName == "SCRAM_ARCH":
|
|
384
|
+
rtScramArch = self.runtimeEnv[varName].replace('\"', '')
|
|
385
|
+
|
|
386
|
+
if os.environ.get('VO_CMS_SW_DIR', None) is not None:
|
|
387
|
+
self.procWriter(proc, 'export VO_CMS_SW_DIR=%s\n' % os.environ['VO_CMS_SW_DIR'])
|
|
388
|
+
if os.environ.get('OSG_APP', None) is not None:
|
|
389
|
+
self.procWriter(proc, 'export VO_CMS_SW_DIR=%s/cmssoft/cms\n' % os.environ['OSG_APP'])
|
|
390
|
+
# In general, CMSSW releases <= 12_6_0 will use CMS_PATH, while anything beyond that
|
|
391
|
+
# requires the SITECONFIG_PATH variable to properly load storage.xml/json file.
|
|
392
|
+
if os.environ.get('CMS_PATH', None) is not None:
|
|
393
|
+
self.procWriter(proc, 'export CMS_PATH=%s\n' % os.environ['CMS_PATH'])
|
|
394
|
+
if os.environ.get('SITECONFIG_PATH', None) is not None:
|
|
395
|
+
self.procWriter(proc, 'export SITECONFIG_PATH=%s\n' % os.environ['SITECONFIG_PATH'])
|
|
396
|
+
if os.environ.get('_CONDOR_JOB_AD'):
|
|
397
|
+
self.procWriter(proc, 'export _CONDOR_JOB_AD=%s\n' % os.environ['_CONDOR_JOB_AD'])
|
|
398
|
+
if os.environ.get('_CONDOR_MACHINE_AD'):
|
|
399
|
+
self.procWriter(proc, 'export _CONDOR_MACHINE_AD=%s\n' % os.environ['_CONDOR_MACHINE_AD'])
|
|
400
|
+
|
|
401
|
+
if hackLdLibPath:
|
|
402
|
+
self.procWriter(proc, self.library_path)
|
|
403
|
+
|
|
404
|
+
self.procWriter(proc, "%s\n" % self.preCommand())
|
|
405
|
+
|
|
406
|
+
if self.envCmd is not None:
|
|
407
|
+
self.procWriter(proc, "%s\n" % self.envCmd)
|
|
408
|
+
|
|
409
|
+
if command.startswith(sys.executable):
|
|
410
|
+
# replace COMP python version with python from CMSSW release if possible
|
|
411
|
+
python27exec = "%s/external/%s/bin/python2.7" % (rtCmsswBase, rtScramArch)
|
|
412
|
+
python26exec = "%s/external/%s/bin/python2.6" % (rtCmsswBase, rtScramArch)
|
|
413
|
+
if os.path.islink(python27exec):
|
|
414
|
+
command = command.replace(sys.executable, python27exec)
|
|
415
|
+
elif os.path.islink(python26exec):
|
|
416
|
+
command = command.replace(sys.executable, python26exec)
|
|
417
|
+
elif hackLdLibPath:
|
|
418
|
+
# reset python path for DMWM python (scram will have changed env to point at its own)
|
|
419
|
+
self.procWriter(proc, "export PYTHONPATH=%s:$PYTHONPATH\n" % ":".join(sys.path)[1:])
|
|
420
|
+
|
|
421
|
+
logging.info(" Invoking command: %s", command)
|
|
422
|
+
self.procWriter(proc, "%s\n" % command)
|
|
423
|
+
self.procWriter(proc, """if [ "$?" -ne "0" ]; then exit 5; fi\n""")
|
|
424
|
+
self.stdout, self.stderr = proc.communicate()
|
|
425
|
+
self.stdout = decodeBytesToUnicode(self.stdout)
|
|
426
|
+
self.stderr = decodeBytesToUnicode(self.stderr)
|
|
427
|
+
logging.info("Subprocess stdout was:\n%s", self.stdout)
|
|
428
|
+
logging.info("Subprocess stderr was:\n%s", self.stderr)
|
|
429
|
+
self.code = proc.returncode
|
|
430
|
+
self.lastExecuted = command
|
|
431
|
+
|
|
432
|
+
return self.code
|
|
433
|
+
|
|
434
|
+
def diagnostic(self):
|
|
435
|
+
"""
|
|
436
|
+
_diagnostic_
|
|
437
|
+
|
|
438
|
+
Diagnostic Error message for a scram command failure
|
|
439
|
+
|
|
440
|
+
"""
|
|
441
|
+
|
|
442
|
+
result = """
|
|
443
|
+
Scram Command Diagnostic:
|
|
444
|
+
Command : %s
|
|
445
|
+
Architecture: %s
|
|
446
|
+
Executed: %s
|
|
447
|
+
Exit Status: %s
|
|
448
|
+
Stdout: %s
|
|
449
|
+
Stderr: %s """ % (
|
|
450
|
+
self.command,
|
|
451
|
+
self.architecture,
|
|
452
|
+
self.lastExecuted,
|
|
453
|
+
self.code,
|
|
454
|
+
self.stdout,
|
|
455
|
+
self.stderr)
|
|
456
|
+
return result
|
|
457
|
+
|
|
458
|
+
def getStdout(self):
|
|
459
|
+
"""
|
|
460
|
+
retrieve stdout of the command executed via the __call__ method\
|
|
461
|
+
note that in current implementation stderr of command execution
|
|
462
|
+
is piped to stdout
|
|
463
|
+
:return: a (possibly long) string
|
|
464
|
+
"""
|
|
465
|
+
return self.stdout
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
"""
|
|
3
|
+
_Unpacker_
|
|
4
|
+
|
|
5
|
+
Minimal WN tool to unpack the WMSandbox and start bootstrapping the job
|
|
6
|
+
|
|
7
|
+
Inputs are:
|
|
8
|
+
|
|
9
|
+
1. Task level Sandbox file
|
|
10
|
+
2. Job Package file
|
|
11
|
+
3. Job Package Index
|
|
12
|
+
4. Job Name is needed to generate an error report in case of failure
|
|
13
|
+
|
|
14
|
+
This will then do the following:
|
|
15
|
+
- create a job directory
|
|
16
|
+
- unpack the sandbox
|
|
17
|
+
- drop the package and index into the job area
|
|
18
|
+
- set everything up so that you can just add the job dir to the pythonpath and then call the runtime startup for the WMCore/WMRuntime stuff
|
|
19
|
+
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
import getopt
|
|
24
|
+
import logging
|
|
25
|
+
import os
|
|
26
|
+
import sys
|
|
27
|
+
import tarfile
|
|
28
|
+
import traceback
|
|
29
|
+
import zipfile
|
|
30
|
+
|
|
31
|
+
options = {
|
|
32
|
+
"sandbox=": "WMAGENT_SANDBOX", # sandbox archive file
|
|
33
|
+
"package=": "WMAGENT_PACKAGE", # job package pickle file
|
|
34
|
+
"index=": "WMAGENT_INDEX", # index of job to be run
|
|
35
|
+
"jobname=": "WMAGENT_JOBNAME", # job name/id
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def makeErrorReport(jobName, exitCode, message):
|
|
40
|
+
"""
|
|
41
|
+
_makeErrorReport_
|
|
42
|
+
|
|
43
|
+
Generate a Job Report indicating failure to bootstrap.
|
|
44
|
+
Build as simple string to avoid dependencies on libraries required
|
|
45
|
+
during bootstrap which may have failed.
|
|
46
|
+
|
|
47
|
+
TODO: Include side & node information lookup
|
|
48
|
+
TODO: FwkJobRep objects need refactor/cleanup for WMAgent
|
|
49
|
+
TODO: Identify set of error codes
|
|
50
|
+
|
|
51
|
+
"""
|
|
52
|
+
xml = "<xml>\n"
|
|
53
|
+
xml += "<FrameworkJobReport Status=\"Failed\" Name=\"%s\">\n" % jobName
|
|
54
|
+
xml += "<ExitCode Value=\"%s\"/>\n" % exitCode
|
|
55
|
+
xml += "<FrameworkError Type = \"BootstrapError\">\n"
|
|
56
|
+
xml += str(message)
|
|
57
|
+
xml += "\n"
|
|
58
|
+
xml += "</FrameworkError>\n"
|
|
59
|
+
xml += "</FrameworkJobReport>\n"
|
|
60
|
+
xml += "</xml>\n"
|
|
61
|
+
with open("FrameworkJobReport.xml", 'w') as handle:
|
|
62
|
+
handle.write(xml)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def createWorkArea(sandbox):
|
|
66
|
+
"""
|
|
67
|
+
_createWorkArea_
|
|
68
|
+
|
|
69
|
+
Create a job working area containing all the bits and pieces
|
|
70
|
+
needed to bootstrap up and kickstart the job
|
|
71
|
+
|
|
72
|
+
"""
|
|
73
|
+
currentDir = os.getcwd()
|
|
74
|
+
jobDir = "%s/job" % currentDir
|
|
75
|
+
if not os.path.exists(jobDir):
|
|
76
|
+
os.makedirs(jobDir)
|
|
77
|
+
if not os.path.exists(os.path.join(jobDir, 'StartupScript')):
|
|
78
|
+
os.makedirs(os.path.join(jobDir, 'StartupScript'))
|
|
79
|
+
|
|
80
|
+
with tarfile.open(sandbox, "r") as tfile:
|
|
81
|
+
tfile.extractall(jobDir)
|
|
82
|
+
|
|
83
|
+
# need to pull out the startup file from the zipball
|
|
84
|
+
with zipfile.ZipFile(os.path.join(jobDir, 'WMCore.zip'), 'r') as zfile:
|
|
85
|
+
startupScript = zfile.read('WMCore/WMRuntime/Startup.py')
|
|
86
|
+
fd = os.open(os.path.join(jobDir, 'Startup.py'), os.O_CREAT | os.O_WRONLY)
|
|
87
|
+
os.write(fd, startupScript)
|
|
88
|
+
os.close(fd)
|
|
89
|
+
|
|
90
|
+
logging.info("PYTHONPATH=%s", os.environ.get("PYTHONPATH"))
|
|
91
|
+
|
|
92
|
+
return jobDir
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def installPackage(jobArea, jobPackage, jobIndex):
|
|
96
|
+
"""
|
|
97
|
+
_installPackage_
|
|
98
|
+
|
|
99
|
+
Install the job package and index into the job directory so that
|
|
100
|
+
it can be found on bootstrap
|
|
101
|
+
|
|
102
|
+
"""
|
|
103
|
+
target = "%s/WMSandbox" % jobArea
|
|
104
|
+
pkgTarget = "%s/JobPackage.pcl" % target
|
|
105
|
+
# shutil.copy(jobPackage, pkgTarget)
|
|
106
|
+
os.system("/bin/cp %s %s" % (jobPackage, pkgTarget))
|
|
107
|
+
|
|
108
|
+
indexPy = "%s/JobIndex.py" % target
|
|
109
|
+
with open(indexPy, 'w') as handle:
|
|
110
|
+
handle.write("jobIndex = %s\n" % jobIndex)
|
|
111
|
+
|
|
112
|
+
return
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def runUnpacker(sandbox, package, jobIndex, jobname):
|
|
116
|
+
"""
|
|
117
|
+
Run everything in the unpacker
|
|
118
|
+
|
|
119
|
+
"""
|
|
120
|
+
|
|
121
|
+
try:
|
|
122
|
+
jobArea = createWorkArea(sandbox)
|
|
123
|
+
installPackage(jobArea, package, jobIndex)
|
|
124
|
+
# sys.exit(0)
|
|
125
|
+
except Exception as ex:
|
|
126
|
+
msg = "Unable to create job area for bootstrap\n"
|
|
127
|
+
msg += str(ex)
|
|
128
|
+
msg += str(traceback.format_exc())
|
|
129
|
+
makeErrorReport(jobname, 1, msg)
|
|
130
|
+
logging.error(msg)
|
|
131
|
+
sys.exit(1)
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
if __name__ == '__main__':
|
|
135
|
+
|
|
136
|
+
try:
|
|
137
|
+
opts, args = getopt.getopt(sys.argv[1:], "", list(options.keys()))
|
|
138
|
+
except getopt.GetoptError as ex:
|
|
139
|
+
msg = "Error processing commandline args:\n"
|
|
140
|
+
msg += str(ex)
|
|
141
|
+
logging.error(msg)
|
|
142
|
+
sys.exit(1)
|
|
143
|
+
|
|
144
|
+
sandbox = os.environ.get('WMAGENT_SANDBOX', None)
|
|
145
|
+
package = os.environ.get('WMAGENT_PACKAGE', None)
|
|
146
|
+
jobIndex = os.environ.get('WMAGENT_INDEX', None)
|
|
147
|
+
jobname = os.environ.get('WMAGENT_JOBNAME', None)
|
|
148
|
+
for opt, arg in opts:
|
|
149
|
+
if opt == "--sandbox":
|
|
150
|
+
sandbox = arg
|
|
151
|
+
if opt == "--package":
|
|
152
|
+
package = arg
|
|
153
|
+
if opt == "--index":
|
|
154
|
+
jobIndex = arg
|
|
155
|
+
if opt == "--jobname":
|
|
156
|
+
jobname = arg
|
|
157
|
+
|
|
158
|
+
if sandbox is None:
|
|
159
|
+
msg = "No Sandbox provided"
|
|
160
|
+
makeErrorReport(jobname, 1, msg)
|
|
161
|
+
logging.error(msg)
|
|
162
|
+
sys.exit(1)
|
|
163
|
+
if package is None:
|
|
164
|
+
msg = "No Job Package provided"
|
|
165
|
+
makeErrorReport(jobname, 1, msg)
|
|
166
|
+
logging.error(msg)
|
|
167
|
+
sys.exit(1)
|
|
168
|
+
if jobIndex is None:
|
|
169
|
+
msg = "No Job Index provided"
|
|
170
|
+
makeErrorReport(jobname, 1, msg)
|
|
171
|
+
logging.error(msg)
|
|
172
|
+
sys.exit(1)
|
|
173
|
+
|
|
174
|
+
runUnpacker(sandbox=sandbox, package=package,
|
|
175
|
+
jobIndex=jobIndex, jobname=jobname)
|