-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
make hltFindDuplicates
work again
#43644
Conversation
cms-bot internal usage |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43644/38304
|
A new Pull Request was created by @missirol (Marino Missiroli) for master. It involves the following packages:
@cmsbuild, @Martin-Grunewald, @mmusich can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild, please test
|
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-597024/36689/summary.html Comparison SummarySummary:
|
+hlt
|
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @rappoccio, @sextonkennedy, @antoniovilela (and backports should be raised in the release meeting by the corresponding L2) |
d591c3b
to
49dabb4
Compare
I noticed that, using the initial implementation in this PR, modules with nested PSets were not treated correctly. The version in the latest commit should fix this. While fixing this, I changed the unit test to use a dedicated input file (rather than one of the HLT menus), requiring not just that the script runs, but that it also returns the expected results. Other improvements are also included (treatment of the label assigned to groups of duplicate modules, printouts for debugging that can be shown using |
49dabb4
to
04e3b62
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43644/38345
|
Pull request #43644 was updated. @Martin-Grunewald, @cmsbuild, @mmusich can you please check and sign again. |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-597024/36730/summary.html Comparison SummarySummary:
|
+hlt
|
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @antoniovilela, @sextonkennedy, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
The utility
hltFindDuplicates
seems to be broken in recent CMSSW releases (it has not been touched in the last few years, I don't know when it stopped working). This PR aims to introduce minimal updates to make it work again.While testing, I also noticed that the text files produced as outputs are not fully reproducible, because the labels assigned to the groups of duplicate modules (
hltGroup1
,hltGroup2
, etc) are not assigned deterministically. In order to avoid this and make outputs reproducible, the group labelhltGroup[0-9]+
is replaced with a string based on the content of the group (the string contains the type of the plugin followed by the label of the first module of the group in alphabetic order).A unit test is also added as an attempt to make sure that this utility does not break again in the future. In order to make the unit test fast (a few seconds), the test currently uses only the
PRef
menu (the simplest menu in the release with some duplicate modules).Merely technical. No changes expected.
FYI: @fwyzard (in case Andrea is the one who wrote this script, which is what I would guess based on CMSHLT-2099)
PR validation:
Manual checks, and the new unit test passes.
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:
N/A