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

HCAL: small fix of HcalTBSource #38910

Merged
merged 1 commit into from Aug 2, 2022
Merged

Conversation

abdoulline
Copy link

@abdoulline abdoulline commented Aug 1, 2022

PR description:

Fixes a handling of skipEvents parameter
which functionally is similar to that of PoolSource, but specific for HcalTBSource producer.
Used for processing of HCAL local runs (pedestals, led, laser etc.)

PR validation:

As this code is not used in any standard workflow, just for reading HCAL local runs data,
checked by me and one of my colleagues in private.

NB: this is not a backport

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 1, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38910/31351

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 1, 2022

A new Pull Request was created by @abdoulline (Salavat Abdullin) for master.

It involves the following packages:

  • IORawData/HcalTBInputService (alca)

@malbouis, @yuanchao, @cmsbuild, @francescobrivio, @ChrisMisan, @tvami can you please review it and eventually sign? Thanks.
@bsunanda, @mmusich, @tocheng this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@ChrisMisan
Copy link
Contributor

type hcal, bug-fix

@ChrisMisan
Copy link
Contributor

please test

m_i = m_skip;

if (m_skip != 0)
edm::LogWarning("HcalTBSource: skipEvents != 0 works only for the first input file ") << std::endl;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
edm::LogWarning("HcalTBSource: skipEvents != 0 works only for the first input file ") << std::endl;
edm::LogWarning("HcalTBSource") << "skipEvents != 0 works only for the first input file";
  • this is the correct structure
  • you dont need std::endl, the LogWarning takes care of that

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, as a (frequent) user of sdt::cout (during debugging) added it kind of "automatically"... Now has removed.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 1, 2022

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-4a2336/26556/summary.html
COMMIT: d19559c
CMSSW: CMSSW_12_5_X_2022-07-31-2300/el8_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/38910/26556/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: 10 differences found in the comparisons
  • DQMHistoTests: Total files compared: 51
  • DQMHistoTests: Total histograms compared: 3669004
  • DQMHistoTests: Total failures: 19
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3668962
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.004 KiB( 50 files compared)
  • DQMHistoSizes: changed ( 312.0 ): 0.004 KiB MessageLogger/Warnings
  • Checked 210 log files, 47 edm output root files, 51 DQM output files
  • TriggerResults: no differences found

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 1, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38910/31361

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 1, 2022

Pull request #38910 was updated. @malbouis, @yuanchao, @cmsbuild, @saumyaphor4252, @francescobrivio, @ChrisMisan, @tvami can you please check and sign again.

m_i = m_skip;

if (m_skip != 0)
edm::LogWarning("HcalTBSource: skipEvents != 0 works only for the first input file ");
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
edm::LogWarning("HcalTBSource: skipEvents != 0 works only for the first input file ");
edm::LogWarning("HcalTBSource") << "skipEvents != 0 works only for the first input file";

haha

Copy link
Contributor

Choose a reason for hiding this comment

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

You only dealt with half of what I suggested earlier :)

Copy link
Contributor

Choose a reason for hiding this comment

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

@abdoulline also, can you please squash these 3 commits now into 1? 3 commits changing 1 file is not great :) Thanks

@abdoulline
Copy link
Author

abdoulline commented Aug 1, 2022

@tvami
Sorry once again for a mess with this small update, now even squash didn't work for me (after committing the 3d update):
git reset --soft d19559c
git commit --amend

I've got with
git push my-cmssw fix_HcalTBSource :

! [rejected] fix_HcalTBSource -> fix_HcalTBSource (non-fast-forward)
error: failed to push some refs to 'git@github.com:abdoulline/cmssw.git'
hint: Updates were rejected because the tip of your current branch is behind its remote counterpart.

Probably better would be to close this PR and (re)submit it properly...

@ChrisMisan
Copy link
Contributor

@abdoulline this is because you need to do a force push after squashing.

@tvami
Copy link
Contributor

tvami commented Aug 1, 2022

git push git@github.com:abdoulline/cmssw.git +HEAD:fix_HcalTBSource

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 1, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38910/31369

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 1, 2022

Pull request #38910 was updated. @malbouis, @yuanchao, @cmsbuild, @saumyaphor4252, @francescobrivio, @ChrisMisan, @tvami can you please check and sign again.

@tvami
Copy link
Contributor

tvami commented Aug 1, 2022

@cmsbuild , please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 1, 2022

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-4a2336/26575/summary.html
COMMIT: 1ad781f
CMSSW: CMSSW_12_5_X_2022-08-01-1100/el8_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/38910/26575/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: 8 differences found in the comparisons
  • DQMHistoTests: Total files compared: 51
  • DQMHistoTests: Total histograms compared: 3669004
  • DQMHistoTests: Total failures: 8
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3668974
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 50 files compared)
  • Checked 210 log files, 47 edm output root files, 51 DQM output files
  • TriggerResults: no differences found

@tvami
Copy link
Contributor

tvami commented Aug 1, 2022

+alca

  • test pass
  • PR according to description

As this code is not used in any standard workflow, just for reading HCAL local runs data,
checked by me and one of my colleagues in private.

Maybe you could implement a unit test for next time?

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 1, 2022

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

@qliphy
Copy link
Contributor

qliphy commented Aug 2, 2022

+1

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

5 participants