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

esConsumes migration for EDModules in SiStrip packages, part 2 #32677

Merged
merged 18 commits into from Jan 28, 2021

Conversation

pieterdavid
Copy link
Contributor

PR description:

esConsumes migration #31061 for modules in packages with SiStrip in the name not done in #31826 (mostly DQM-related).
I tried to keep other changes minimal, but did some refactoring in SiStripMonitorCondData (making it use the helper class SiStripClasToMonitorCondData because they had a lot of duplicate code, and the esConsumes-related changes would have added even more); @sroychow @arossi83 could you have a look and comment on whether this is covered by the tests, or how to validate the changes otherwise?

PR validation:

compiles, runTheMatrix.py -l limited --useInput all passes and only shows differences in TimerService, but that may not cover all modified plugins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32677/20778

  • This PR adds an extra 356KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @pieterdavid (Pieter David) for master.

It involves the following packages:

CalibTracker/SiStripQuality
DQM/SiStripCommissioningDbClients
DQM/SiStripCommissioningSources
DQM/SiStripMonitorClient
DQM/SiStripMonitorHardware
DQM/SiStripMonitorPedestals
DQM/SiStripMonitorSummary
DQMOffline/CalibTracker

@andrius-k, @yuanchao, @kmaeshima, @christopheralanwest, @ErnestaP, @cmsbuild, @jfernan2, @fioriNTU, @tlampen, @pohsun can you please review it and eventually sign? Thanks.
@echabert, @hdelanno, @erikbutz, @sroychow, @robervalwalsh, @gbenelli, @tocheng, @fioriNTU, @jandrea, @idebruyn, @mmusich, @venturia, @threus, @arossi83, @rociovilar this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@mmusich
Copy link
Contributor

mmusich commented Jan 18, 2021

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: HeaderConsistency
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d6f8ca/12323/summary.html
COMMIT: 03b1409
CMSSW: CMSSW_11_3_X_2021-01-17-2300/slc7_amd64_gcc900

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 37
  • DQMHistoTests: Total histograms compared: 2716961
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2716938
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 36 files compared)
  • Checked 156 log files, 37 edm output root files, 37 DQM output files

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d6f8ca/12573/summary.html
COMMIT: 4389691
CMSSW: CMSSW_11_3_X_2021-01-27-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/32677/12573/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: 37
  • DQMHistoTests: Total histograms compared: 2716596
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2716573
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 36 files compared)
  • Checked 156 log files, 37 edm output root files, 37 DQM output files

@yuanchao
Copy link
Contributor

yuanchao commented Jan 28, 2021

@pieterdavid Generally "RunInfoRcd" is needed for sub-systems to run. But sorry, not knowing about your use case so not be able to comment here.

@yuanchao
Copy link
Contributor

+1
Thanks a lot for the update.

@jfernan2
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

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. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@qliphy
Copy link
Contributor

qliphy commented Jan 28, 2021

+1

@makortel
Copy link
Contributor

By quick look it seems that this PR could be causing a failure of TestDQMOnlineClient-sistrip_dqm_sourceclient unit test, see #32770

if (!actionExecutor_.readTkMapConfiguration(eSetup)) {
detCabling_ = &eSetup.getData(detCablingToken_);
if (!actionExecutor_.readTkMapConfiguration(
detCabling_, &eSetup.getData(tkDetMapTokenER_), &eSetup.getData(tTopoTokenER_))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The token was declared to be consumed in EndRun, but is being used in beginRun.

@@ -103,7 +101,8 @@ void SiStripAnalyser::analyze(edm::Event const& e, edm::EventSetup const& eSetup
actionExecutor_.createDummyShiftReport();
} else {
auto& dqm_store = *edm::Service<DQMStore>{};
actionExecutor_.fillStatus(dqm_store, detCabling_, eSetup);
actionExecutor_.fillStatus(
dqm_store, detCabling_, &eSetup.getData(tkDetMapTokenELB_), &eSetup.getData(tTopoTokenELB_));
Copy link
Contributor

@makortel makortel Jan 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The token was declared to be consumed in EndLuminosityBlock, but is being used in analyze.

@mmusich
Copy link
Contributor

mmusich commented Jan 29, 2021

I gave a try to fix the issue #32770 at #32771.
Wondering why the DQM online client unit tests did not run in the PR tests here?
Can someone clarify how the unit tests to be run in a PR are chosen? Via dependencies?

@jfernan2
Copy link
Contributor

I guess it is via dependencies yes, changes in DQM/Integration package in this case
Not sure if experts want to modify the jenkins settings to run always for every PR unit tests which are targeting Online DQM world only
Thanks for the fix

@makortel
Copy link
Contributor

I gave a try to fix the issue #32770 at #32771.

Thanks!

Can someone clarify how the unit tests to be run in a PR are chosen? Via dependencies?

Essentially the code of the PR is checked out, then git cms-checkdeps -a (i.e. all C++ and python source dependencies), and the unit tests of those packages are run. This misses unit tests in a package outside of the aforementioned set of packages that e.g. runs a configuration that loads a plugin defined in the aforementioned set of packages.

This is a known deficiency in the test system that has been discussed a few times. It is possible to ask the bot to run all unit tests, but IIUC the full(_cmssw|) would would lead to also building full CMSSW (@smuzaffar please clarify). So far such failures have been rare-enough for catching them in IBs to be sufficient (even if suboptimal).

@smuzaffar
Copy link
Contributor

For now, one can explicilty ask to run tests for a package by setting the addpkg = CMSSW/Package test parameter. I am looking in to enabling full unit tests for each PR that should avoid such issues.

@makortel
Copy link
Contributor

For now, one can explicilty ask to run tests for a package by setting the addpkg = CMSSW/Package test parameter.

Thanks Shahzad. I remembered something was done, but didn't remember what exactly, and somehow missed the addpkg in http://cms-sw.github.io/cms-bot-cmssw-cmds.html.

@pieterdavid
Copy link
Contributor Author

I gave a try to fix the issue #32770 at #32771.

Thanks @mmusich !

@silviodonato
Copy link
Contributor

see dmwm/T0#4574

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

9 participants