Skip to content

Conversation

@smuzaffar
Copy link
Contributor

@smuzaffar smuzaffar commented Oct 24, 2025

LLVM21 has a new warning virtual method inside a final class and can never be overridden. This PR is to fix these warning.
As suggested in #49211 (comment), this PR ake these classes non-final

See #49208

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 24, 2025

cms-bot internal usage

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @smuzaffar for master.

It involves the following packages:

  • DataFormats/GeometrySurface (simulation)
  • SimCalorimetry/HcalSimAlgos (simulation)

@civanch, @cmsbuild, @kpedro88, @mdhildreth can you please review it and eventually sign? Thanks.
@abdoulline, @bsunanda, @mariadalfonso, @missirol, @mmusich, @rovere, @sameasy this is something you requested to watch as well.
@ftenchini, @mandrenguyen, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@smuzaffar
Copy link
Contributor Author

please test

@smuzaffar
Copy link
Contributor Author

please test for CMSSW_16_0_CLANG_X

@cmsbuild
Copy link
Contributor

-1

Failed Tests: Build
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-1c27d8/48800/summary.html
COMMIT: 275f0a9
CMSSW: CMSSW_16_0_CLANG_X_2025-10-24-1100/el8_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/49211/48800/install.sh to create a dev area with all the needed externals and cmssw changes.

Build

I found compilation warning when building: See details on the summary page.

@civanch
Copy link
Contributor

civanch commented Oct 24, 2025

@smuzaffar , unfortunately, this utility was introduced for dd4hep src/DataFormats/Math/interface/GeantUnits.h

Geant4 peoples commented that it is a potential for problems in future. However, today the fix likely will be needed in many places.

Concerning problem with "final" the alternative solution is to remove "final" declaration from the class - the fix much more simple and will work for sure.

@cmsbuild
Copy link
Contributor

+1

Size: This PR adds an extra 28KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-1c27d8/48799/summary.html
COMMIT: 275f0a9
CMSSW: CMSSW_16_0_X_2025-10-24-1100/el8_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/49211/48799/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 3 lines from the logs
  • Reco comparison results: 9 differences found in the comparisons
  • DQMHistoTests: Total files compared: 51
  • DQMHistoTests: Total histograms compared: 3939953
  • DQMHistoTests: Total failures: 31
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3939902
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 50 files compared)
  • Checked 218 log files, 188 edm output root files, 51 DQM output files
  • TriggerResults: found differences in 1 / 49 workflows

@civanch
Copy link
Contributor

civanch commented Oct 24, 2025

@smuzaffar , I confused: many compilation warnings but bot approved.

@smuzaffar
Copy link
Contributor Author

@civanch , there are many compilation warning in CLANG_X IBs and this PR only fixes some of those that is why you still see many warnings. For Default IB e.g. https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-1c27d8/48799/build-logs/ there are no warnings.

Concerning problem with "final" the alternative solution is to remove "final" declaration from the class - the fix much more simple and will work for sure.

OK, I will update the PR to remove the final keyword from class instead of removing virtual from methods

@smuzaffar smuzaffar force-pushed the simulation-llvm21-virtual-method-final-class branch from 275f0a9 to 3785fac Compare October 27, 2025 11:02
@smuzaffar smuzaffar changed the title [SIMULATION] Fix for virtual method inside a final class [SIMULATION] To virtual method inside a final class; make classes non-final Oct 27, 2025
@cmsbuild
Copy link
Contributor

-1

Failed Tests: Build
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-1c27d8/48829/summary.html
COMMIT: 3785fac
CMSSW: CMSSW_16_0_CLANG_X_2025-10-26-2300/el8_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/49211/48829/install.sh to create a dev area with all the needed externals and cmssw changes.

Build

I found compilation warning when building: See details on the summary page.

@smuzaffar
Copy link
Contributor Author

please test

@smuzaffar
Copy link
Contributor Author

please test with #49212 for CMSSW_16_0_CLANG_X

@cmsbuild
Copy link
Contributor

+1

Size: This PR adds an extra 24KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-1c27d8/48831/summary.html
COMMIT: 3785fac
CMSSW: CMSSW_16_0_X_2025-10-27-1100/el8_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/49211/48831/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 1 lines to the logs
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 51
  • DQMHistoTests: Total histograms compared: 3939953
  • DQMHistoTests: Total failures: 66
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3939867
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 50 files compared)
  • Checked 218 log files, 188 edm output root files, 51 DQM output files
  • TriggerResults: no differences found

@civanch
Copy link
Contributor

civanch commented Oct 27, 2025

+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. @ftenchini, @sextonkennedy, @mandrenguyen (and backports should be raised in the release meeting by the corresponding L2)
Notice This PR was tested with additional Pull Request(s), please also merge them if necessary: #49212

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-1c27d8/48832/summary.html
COMMIT: 3785fac
CMSSW: CMSSW_16_0_CLANG_X_2025-10-26-2300/el8_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/49211/48832/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 199 lines to the logs
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 92012 differences found in the comparisons
  • DQMHistoTests: Total files compared: 51
  • DQMHistoTests: Total histograms compared: 3939953
  • DQMHistoTests: Total failures: 456318
  • DQMHistoTests: Total nulls: 324
  • DQMHistoTests: Total successes: 3483291
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -1.8600000000000003 KiB( 50 files compared)
  • DQMHistoSizes: changed ( 10224.0 ): -0.075 KiB SiStrip/MechanicalView
  • DQMHistoSizes: changed ( 13034.0 ): -2.970 KiB SiStrip/MechanicalView
  • DQMHistoSizes: changed ( 17034.0 ): 4.203 KiB SiStrip/MechanicalView
  • DQMHistoSizes: changed ( 2024.0010001 ): 0.020 KiB JetMET/SUSYDQM
  • DQMHistoSizes: changed ( 250202.181 ): 0.650 KiB SiStrip/MechanicalView
  • DQMHistoSizes: changed ( 7.3 ): -3.688 KiB SiStrip/MechanicalView
  • Checked 218 log files, 188 edm output root files, 51 DQM output files
  • TriggerResults: found differences in 16 / 49 workflows

@smuzaffar
Copy link
Contributor Author

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. @ftenchini, @sextonkennedy, @mandrenguyen (and backports should be raised in the release meeting by the corresponding L2) Notice This PR was tested with additional Pull Request(s), please also merge them if necessary: #49212

#49212 is independent PR , so this PR can go in with out #49212

@ftenchini
Copy link

+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.

4 participants