dmwm / WMCore

Core workflow management components for CMS.
Apache License 2.0
46 stars 107 forks source link

add a Tier1PromptReco WMSpec unit test #3386

Closed hufnagel closed 12 years ago

hufnagel commented 12 years ago

The new Tier1PromptReco WMSpec needs a unit test. Should test variations of the WriteTiers and AlcaSkims input parameters.

DMWMBot commented 12 years ago

dballest: Added an unit test for the Spec, it tests with alcaProducers from recent cosmics run and write tiers AOD, RECO and ALCARECO. Please comment, I based on the ReReco and DataProcessing tests. I tested the spec and it works. But it seems the patch broke the Dataprocessing task, I ran the DataProcessing unit test and got errors:

{{{ ['logArchive']

F

FAIL: testDataProcessing

Traceback (most recent call last): File "/tmp/dballest/0.8.27/test/python/WMCore_t/WMSpec_t/StdSpecs_t/DataProcessing_t.py", line 64, in testDataProcessing "Error: Wrong number of WF outputs.") AssertionError: Error: Wrong number of WF outputs. -------------------- >> begin captured logging << -------------------- root: DEBUG: Using SQLAlchemy v.0.5.2 root: INFO: Instantiating base WM DBInterface root: DEBUG: Tables for WMCore.WMBS created root: DEBUG: Object in cache root: DEBUG: Object in cache root: INFO: Top level subscription created: 1 root: INFO: Child subscription created: 2 --------------------- >> end captured logging << ---------------------


Ran 1 test in 0.953s }}}

The ['logArchive'] line is a print of the OutputMap of the processing workflow in the test.

sfoulkes commented 12 years ago

sfoulkes: (In 47205b92e94b14dd50cf29800baa6d5eb424f5b5) Add a unit test for the Tier1PromptReco workflow. Fixes #3386.

From: Diego Ballesteros dballest@fnal.gov Signed-off-by: Steve Foulkes sfoulkes@fnal.gov