Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • M MooreAnalysis
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 13
    • Issues 13
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • LHCb
  • MooreAnalysis
  • Merge requests
  • !25

Add --ignore-broken-inputs option to keep running HltEfficiencyChecker if encounter a dodgy file

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Ross John Hunter requested to merge rjhunter-sidestep-FileInputError into master Nov 16, 2020
  • Overview 10
  • Commits 2
  • Pipelines 2
  • Changes 2

FYI @rmatev interested to hear your opinion on this.

As reported awhile ago by @mwhitehe (thanks!), when you run the HltEfficiencyChecker wizard, if you come across a file that cannot be opened for whatever reason, the trigger & tupling will skip it and keep running, making a perfectly valid tuple for analysis. ApplicationMgr will however exit with a not-very-descriptive error code 2, and so our check_call command in wizard.py will throw a CalledProcessError, and HltEfficiencyChecker will stop.

This is not ideal behaviour though:

  • You may consider the tuple you've made to be perfectly valid since the dodgy file was simply skipped,
  • The error code doesn't easily tell you what the problem was - the rest of the log shows the successful completion of a job,
  • Grid sites often go down - since the tupling & trigger will naturally just keep going, why can't HltEfficiencyChecker keep going.

I stop short of enforcing any behaviour, and print a more descriptive message if we encounter this. I added the --ignore-broken-inputs arg so the user can get HltEfficiencyChecker to keep going if that is what they wish.

Edited Nov 17, 2020 by Ross John Hunter
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: rjhunter-sidestep-FileInputError