Skip to content
Snippets Groups Projects

ATR-23011 -- Type-checking of "flags" argument to RecoFragmentsPool.retrieve

Merged ATR-23011 -- Type-checking of "flags" argument to RecoFragmentsPool.retrieve
All threads resolved!
Merged Teng Jian Khoo requested to merge khoo/athena:master-TMMT-RFP_flags into master
All threads resolved!

The first argument for any function passed to RecoFragmentsPool.retrieve is supposed to be an AthConfigFlags instance. As this is meant to be unique for the whole job, it is not part of the key to the cache of return values held by RecoFragmentsPool.

There were examples of misuse whereby important and malleable arguments to these functions were being passed instead, which could cause misconfiguration. To prevent this, insist that the value of the first (and only non-keyword) argument received is either an instance of ConfigFlags or is None. The latter should be used when there is no information that is used from ConfigFlags.

Various fixes needed to be propagated to signature code such that this will not result in crashes.

Edited by Teng Jian Khoo

Merge request reports

Pipeline #2433893 passed

Pipeline passed for efee9982 on khoo:master-TMMT-RFP_flags

Approval is optional

Merged by Walter LamplWalter Lampl 4 years ago (Mar 29, 2021 7:15pm UTC)

Merge details

  • Changes merged into master with cfef66cb (commits were squashed).
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading