Project

General

Profile

Feature #17716

Additional error checking for art --debug-config

Added by Herbert Greenlee almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Application
Target version:
Start date:
09/14/2017
Due date:
% Done:

100%

Estimated time:
4.00 h
Spent time:
Scope:
Internal
Experiment:
MicroBooNE
SSI Package:
art
Duration:

Description

Consider the following job fcl "copy.fcl":

process_name: Copy

source:
{
  module_type: RootInput
}

physics:
{
 stream1:  [ out1 ]
 end_paths:     [ stream2 ]  
}

outputs:
{
 out1:
 {
   module_type: RootOutput
 }
}

This job fcl is broken by virtue of the fact that end_paths refers to a non-existent path "stream2". If you run this fcl file, you get the following error:

%MSG-s ArtException:  art 14-Sep-2017 21:36:32 CDT JobSetup
cet::exception caught in art
---- Configuration BEGIN
  Path configuration: The following were encountered while processing path configurations:
  ERROR: Unknown path stream2 specified by user in end_paths.
---- Configuration END
%MSG

However, if you run this fcl file using option --debug-config, art doesn't detect any error.

Since "art --debug-config" should detect errors other than fcl parsing errors, it should complain problems that will prevent a job from running, including non-existent paths in end_paths and trigger_paths. Or there should be some other option that can do this.

History

#1 Updated by Kyle Knoepfel almost 3 years ago

  • Description updated (diff)

#2 Updated by Kyle Knoepfel almost 3 years ago

  • Category set to Application
  • Status changed from New to Feedback
  • Estimated time set to 4.00 h

We can add an additional program option that provides the configuration-checking you are requesting. We will discuss details at the upcoming stakeholder meeting.

#3 Updated by Kyle Knoepfel almost 3 years ago

  • Status changed from Feedback to Assigned
  • Assignee set to Kyle Knoepfel
  • SSI Package art added

Per stakeholder agreement, a new program option will be added that provides the extra checking you request.

#4 Updated by Kyle Knoepfel over 2 years ago

  • Status changed from Assigned to Resolved
  • Target version set to 2.10.00
  • % Done changed from 0 to 100

The new program option is called --validate-config. The program option takes an argument, which is the filename to which the post-processed configuration is written after the configuration validation has been performed.

N.B. In providing this facility, the complete art event-processing object is constructed, which includes calling the constructors of the services, source, and modules, as well as any configured plugins that are created at module/service/source construction time. It is therefore possible that during construction of one of those objects, a failure could occur that is unrelated to configuration per se.

Implemented with commit art:d7d0457.

#5 Updated by Kyle Knoepfel over 2 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF