Improve how some ActivityRegistry signals are emitted - #51625
Conversation
|
cms-bot internal usage |
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-51625/50449 |
|
A new Pull Request was created by @makortel for master. It involves the following packages:
@Alejandro1400, @Dr15Jones, @EltonSh, @JanChyczynski, @arunhep, @cmsbuild, @francescobrivio, @makortel, @perrotta, @smuzaffar can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
|
@cmsbuild, please test |
|
-1 Failed Tests: UnitTests RelVals RelVals-INPUT AddOn Failed Unit TestsI found 8 errors in the following unit tests: ---> test test-das-selected-lumis had ERRORS ---> test DetectorDescriptionDDCMSTestDriver had ERRORS ---> test GeometryMTDGeometryBuilderTestDriver had ERRORS and more ... Failed RelValsThe relvals timed out after 4 hours. Failed RelVals-INPUTThe relvals timed out after 4 hours. Failed AddOn TestsExpand to see more addon errors ...
|
|
Very interesting failures |
9ca3e83 to
2b6710a
Compare
|
Found one mistake, |
|
@cmsbuild, please test |
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-51625/50467 |
|
Pull request #51625 was updated. @Alejandro1400, @Dr15Jones, @EltonSh, @JanChyczynski, @arunhep, @cmsbuild, @francescobrivio, @makortel, @perrotta, @smuzaffar can you please check and sign again. |
|
@cmsbuild, please test |
|
-1 Failed Tests: UnitTests Failed Unit TestsI found 7 errors in the following unit tests: ---> test test-das-selected-lumis had ERRORS ---> test testJetMETCorrectionsType1MET had ERRORS ---> test test_edmPickEvents had ERRORS and more ... Comparison SummarySummary:
|
|
Comparison differences are related to #47071 |
|
Test failures are known problems or infrastructure related |
|
ignore tests-rejected with ib-failure |
|
+core |
|
+db |
|
This pull request is fully signed and it will be integrated in one of the next master IBs (test failures were overridden). This pull request will now be reviewed by the release team before it's merged. @sextonkennedy, @ftenchini, @mandrenguyen (and backports should be raised in the release meeting by the corresponding L2) |
|
+1 |
PR description:
This PR improves how ActivityRegistry signals for the "easy cases" listed in #51545 are emitted. It adds a
edm::signalslot::SignalSentryhelper class to call a given lambda either atsucceeded()method (exception from the lambda propagated) or at the destructor (exception from the lambda not propagated).The overall pattern followed here is
{ auto sentry = edm::signalslot::make_sentry(<lambda for post signal>); <emit pre signal> <operation itself> sentry.succeeded(); }Creating the sentry for the Post signal first makes the Post signal to be called also if Pre signal throws an exception, and the
succeeded()method call allows exceptions from the Post signal (even if we recommend against those) to propagate if there isn't an exception in flight already.Resolves cms-sw/framework-team#2367
PR validation:
Unit tests pass