-
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
Ignoring raw channel ids in the unit test database dump comparison #43220
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43220/37562
|
A new Pull Request was created by @igv4321 (Igor Volobouev) for master. It involves the following packages:
@saumyaphor4252, @francescobrivio, @consuegs, @cmsbuild, @perrotta can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
Thank you @igv4321 |
@bsunanda answered why raw channel ids should be ignored in #43200 (comment) It is possible to modify CondTools/Hcal/data/hcalpfcuts.txt, but if raw channel ids are to be ignored, there is no point in doing that. |
I am a bit confused now. Should I bring back the Unit test? Please let me know
…________________________________
From: Igor Volobouev ***@***.***>
Sent: 08 November 2023 13:20
To: cms-sw/cmssw ***@***.***>
Cc: Sunanda Banerjee ***@***.***>; Mention ***@***.***>
Subject: Re: [cms-sw/cmssw] Ignoring raw channel ids in the unit test database dump comparison (PR #43220)
@bsunanda<https://github.com/bsunanda> answered why raw channel ids should be ignored in #43200 (comment)<#43200 (comment)>
It is possible to modify CondTools/Hcal/data/hcalpfcuts.txt, but if raw channel ids are to be ignored, there is no point in doing that.
—
Reply to this email directly, view it on GitHub<#43220 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABGMZOWKP6AXNQRO35ABCGDYDM2WBAVCNFSM6AAAAAA7BVGUSCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBRGI2TQNJTGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Yes @bsunanda please bring back the unit test: it will succeed once this PR gets merged |
What I did not understand from that answer is the following:
In the first case, I think this PR is perfect as such. In the second case I would update it so that the comparison of the rawID values is still possible. |
I am not sure if the comparison of the rawID values is useful or useless, perhaps @bsunanda can comment on that. The point of this particular unit test is to ensure that the text and the database I/O work correctly for HcalPFCuts. Validation of Hcal channel mapping schemes is beyond the intended scope of this test. |
Well we have to modify the DetId definition. This requires changes in the RawID value - we have to specify some bits to define the format of the RawID and that clearly changes RawId value from past to present. I am not sure if such changes will be there in the future. This is the second DetID where the internal bit definitions need to be modified. There were other DetId's which were changed - there we have to go from one class to another class. In any case, RawID is supposed to be a private member and playing with its bits should be kept provate.
…________________________________
From: Igor Volobouev ***@***.***>
Sent: 08 November 2023 15:13
To: cms-sw/cmssw ***@***.***>
Cc: Sunanda Banerjee ***@***.***>; Mention ***@***.***>
Subject: Re: [cms-sw/cmssw] Ignoring raw channel ids in the unit test database dump comparison (PR #43220)
I am not sure if the comparison of the rawID values is useful or useless, perhaps @bsunanda<https://github.com/bsunanda> can comment on that. The point of this particular unit test is to ensure that the text and the database I/O work correctly for HcalPFCuts. Validation of Hcal channel mapping schemes is beyond the intended scope of this test.
—
Reply to this email directly, view it on GitHub<#43220 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABGMZOQ3ELL4FMN7JBZODG3YDNH3BAVCNFSM6AAAAAA7BVGUSCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBRGQZTMMRUGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
please test with #43200 |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-bc0919/35691/summary.html Comparison SummarySummary:
|
+db |
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. @sextonkennedy, @antoniovilela, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
@cms-sw/orp-l2 this PR is needed by #43200, but since it only removes one check from a test unit it can even be merged independently (even though having tested them together it apparently "requires externals" to get merged) |
Thanks |
+1 |
PR description:
Purely technical update of a unit test, will not affect any workflows. Avoiding raw channel id comparison in the unit test of the database dump, as these ids can change.
PR validation:
Unit test was successfully run.