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
  • !81

Fixes to non-retina cluster HltEfficiencyChecker examples and other test tidy-ups

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Ross John Hunter requested to merge tidy-up-tests into master May 09, 2022
  • Overview 40
  • Commits 15
  • Pipelines 10
  • Changes 40

Closes #31 (closed) and #32 (closed). Since !72 (merged), where Retina clusters became the default for Allen, the tests have all run over files with Retina clusters. However, there are still plenty of examples with no Retina clusters, which were untested and broken by this change. This fixes them by using the hlt1_pp_veloSP sequence, and adds efficiency and rate tests on the hlt1_pp_veloSP sequence.

Other changes

  • Removed the redundant/duplicated hlt1_rate_example.py, as hlt1_rate_default.py is exactly the same,
  • Remove the no_gec examples with no retina clusters, since there is no such Allen sequence. These files were broken and not tested since !72 (merged),
  • Remove an old TOS efficiency test: all the efficiency tests now test this functionality,
  • Reveal some hidden seg faults in the tests from an erroneously caught exception in wizard.py,
  • Then patch those seg faults: the wizard options template needs all the retina-cluster based boilerplate if using the default Allen sequence,
  • Make a bit of effort to use more descriptive tuple paths, partly for clarity and partly to avoid different tests writing/reading to the same place when multithreaded,
  • Try a little to improve the alignment and truncation of rates results (closes #32 (closed)).

TODO:

  • Catch #32 (closed)?
  • Moore MR on documentation
  • Kill the no-gec-no-retina-cluster examples?
  • Test for non-retina cluster examples
  • Hopefully avoid hard-coding the bank types for veloSP sequence? Postpone.

Goes with Moore!1545 (merged). Might require Allen!850 (merged) and Moore!1542 (merged) for new tests to pass (to be tested again)

Edited Jul 19, 2022 by Ross John Hunter
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: tidy-up-tests