-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Consumes migration of Alignment/ReferenceTrajectories #35259
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35259/25244
|
A new Pull Request was created by @bbilin (Bugra Bilin) for master. It involves the following packages:
@yuanchao, @malbouis, @cmsbuild, @tvami, @francescobrivio can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild, please test |
-1 Failed Tests: RelVals RelVals
|
1 similar comment
-1 Failed Tests: RelVals RelVals
|
@makortel @Dr15Jones do you have suggestions about #35259 (comment)? |
From just browsing the code in this PR it is not immediately clear to me which of the helper classes is constructed outside of
is not only unnecessary (declaring consumes information there would be way too late), those make reasoning the code by just browsing more difficult. |
Ok, now I found the incorrect calls
cmssw/Alignment/CommonAlignmentProducer/plugins/AlignmentProducer.cc Lines 85 to 86 in 52d9ac8
The cmssw/Alignment/CommonAlignmentProducer/plugins/AlignmentProducer.cc Lines 13 to 14 in 52d9ac8
The helper classes need to be reworked such that either they take the ConsumesCollector in their constructor, or the class that uses the helpers declares the consumes information, gets the ESProducts, and passes them to the helper classes. Which of these is easier depends. In rare cases it is possible that neither of these really work (like in #35269), in which case we can discuss more.
|
@bbilin do you maybe have an update on this? |
Hi @tvami unfortunately I dont have any updates yet. @makortel what I tried was to change, I am stuck as below. So any help, example similar codes or PRs would be useful for me to draw the path. What I tried, for example, to replace cmssw/Alignment/CommonAlignmentProducer/plugins/AlignmentProducer.cc to edm::EDLooper::Status AlignmentProducer::duringLoop(const edm::Event &event, const edm::EventSetup &setup,edm::ConsumesCollector iC) { this Status duringLoop(const edm::Event&, const edm::EventSetup&, edm::ConsumesCollector) override; So I am stuck here, this is clearly not the path to take. Any help, suggestion is welcome. |
@bbilin I'm not sure if I understood your question correctly, so please elaborate if I don't answer to it. The problem on lines 85-86 cmssw/Alignment/CommonAlignmentProducer/plugins/AlignmentProducer.cc Lines 85 to 86 in 52d9ac8
is the call to consumesCollector() on line 86. That function can be called only in the AlignmentProducer constructor. Trying to get an edm::ConsumesCollector in any other way will not work.
The cmssw/Alignment/CommonAlignmentProducer/src/AlignmentProducerBase.cc Lines 281 to 289 in 52d9ac8
I guess you added the cmssw/Alignment/MillePedeAlignmentAlgorithm/plugins/MillePedeAlignmentAlgorithm.cc Line 279 in 52d9ac8
Can those create() calls be moved to the constructors of AlignmentAlgorithmBase -derived classes?
|
Hi @makortel MillePedeAlignmentAlgorithm::MillePedeAlignmentAlgorithm(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC) If true I will try to rework like this. Many thanks, |
@bbilin Yes, along those lines (I presume the call to |
All clear, sorry, did not have any time until today. Will modify accordingly and commit. Thanks! |
Hi @makortel I played around a bit- the changes simplify the dependencies a lot, but what I get is an ld link issue during compilation. I pushed to a separate branch and can merge to the branch of the PR once fixed. https://github.com/bbilin/cmssw/tree/ConsumesMigRefTraj2 Any ideas are welcome. Many thanks, B. |
@bbilin Could you post the link failure message? |
@makortel here it is:
|
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-695a5a/19169/summary.html Comparison SummarySummary:
|
@bbilin can you transform the PR from draft to "open for review"? |
@mmusich done. Thanks. |
Any news from the tests yet? |
I just asked them privately yesterday: we expect some results by tomorrow. |
unhold |
unassign trk-dpg |
for the record, the results of validating this PR from the alignment point of view were presented here. |
Ok so TEC changes still need to be investigated. Let's hope by Tuesday things will get cleared and we can get this in for pre5 |
@vbotta do you maybe have an update on the validation of this? pre5 is supposed to close today... |
pre5 is now delayed, do you think this could converge on a week's timescale? Thanks @vbotta ! |
We tracked down the origin of this small discrepancy and it is not arising from this specific esConsume migration, therefore you have green light to proceed with the merge |
Great, thanks @antoniovagnerini ! |
+alca
|
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. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1
|
PR description:
This PR is about the consumes migration of Alignment/ReferenceTrajectories and its dependencies.
PR validation:
Ran successfully wf 1001.0
1001.0_RunMinBias2011A+RunMinBias2011A+TIER0EXP+ALCAEXP+ALCAHARVDSIPIXELCALRUN1+ALCAHARVD1+ALCAHARVD2+ALCAHARVD3+ALCAHARVD4+ALCAHARVD5 Step0-PASSED Step1-PASSED Step2-PASSED Step3-PASSED Step4-PASSED Step5-PASSED Step6-PASSED Step7-PASSED Step8-PASSED - time date Tue Sep 28 10:38:23 2021-date Tue Sep 28 10:27:48 2021; exit: 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 1 tests passed, 0 0 0 0 0 0 0 0 0 failed
if this PR is a backport please specify the original PR and why you need to backport that PR:
This is not a backport and no backport is needed.