Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for NOT operator in triggerExpression::Parser [12_4_X] #39151

Merged
merged 8 commits into from Aug 24, 2022

Conversation

missirol
Copy link
Contributor

backport of #39108

PR description:

From #39108 (comment):

  • fixes the NOT operator in the parser used by TriggerResultsFilter
  • includes further updates to improve the behaviour of the parser (requiring a delimiter for special keywords like AND/OR/NOT, allowing for expressions like NOT NOT)
  • the parser now does not allow AND/OR/NOT as names of HLT paths; the implementation of that requirement is maybe suboptimal, but it passes all the tests and considered use cases
  • added unit test for the parser and cmd-line utility to check its behaviour; unit tests of TriggerResultsFilter improved accordingly

Thanks to @fwyzard for finding the solution, and improving the initial version of the PR.

See description and discussions in the original PR for more information.

PR validation:

Relies on the validation done for the original PR.

If this PR is a backport, please specify the original PR and why you need to backport that PR. If this PR will be backported, please specify to which release cycle the backport is meant for:

#39108

Backport of a bugfix to the release cycle currently used for online operations.

missirol and others added 8 commits August 23, 2022 17:09
 - Improve the representation of trigger expression
   - Improved the dumped representation of trigger expressions:
     - AND, OR, and NOT operators add parentheses around their subexpression;
     - uninitialised Path and L1uGT readers use an explicit name instead of FALSE.

 - Print how the expressions are interpreted

 - Delimit tokens and operands
   - Require a delimiter after each token and operamd, to avoid en expression like:
     "NOTSomePath ANDOtherPath"
     to be parsed as:
     "NOT SomePath AND OtherPath"

 - Add more tests

 - Compare the parsed and expected representations
@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 23, 2022

A new Pull Request was created by @missirol (Marino Missiroli) for CMSSW_12_4_X.

It involves the following packages:

  • HLTrigger/HLTcore (hlt)
  • HLTrigger/HLTfilters (hlt)

@cmsbuild, @missirol, @Martin-Grunewald can you please review it and eventually sign? Thanks.
@Martin-Grunewald, @silviodonato, @fwyzard this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@missirol
Copy link
Contributor Author

type bugfix

@missirol
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-a85dca/27018/summary.html
COMMIT: ef869e0
CMSSW: CMSSW_12_4_X_2022-08-23-1100/el8_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/39151/27018/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3677242
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3677218
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 208 log files, 45 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@missirol
Copy link
Contributor Author

+hlt

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_12_4_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_12_5_X is complete. This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy, @rappoccio (and backports should be raised in the release meeting by the corresponding L2)

@perrotta
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit a4af2df into cms-sw:CMSSW_12_4_X Aug 24, 2022
@missirol missirol deleted the devel_fixNOTinHLTparser_124X branch September 8, 2022 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants