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

[CPP20][ALCA, DB] Remove deprecated enum arithmetic #44485

Closed

Conversation

iarspider
Copy link
Contributor

@iarspider iarspider commented Mar 20, 2024

PR description:

Some arithmetic and logic operations on enums are deprecated in C++20. This PR aims to fix these.

PR validation:

Bot tests

@iarspider
Copy link
Contributor Author

please test for CMSSW_14_1_CPP20_X

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 20, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44485/39574

  • This PR adds an extra 60KB to repository

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • Alignment/Geners (alca)
  • CalibFormats/SiStripObjects (alca)
  • Calibration/EcalCalibAlgos (alca)
  • CondCore/EcalPlugins (db)
  • CondCore/PCLConfigPlugins (db)
  • CondFormats/PCLConfig (db, alca)

@saumyaphor4252, @consuegs, @francescobrivio, @perrotta can you please review it and eventually sign? Thanks.
@seemasharmafnal, @yuanchao, @mmusich, @tocheng, @threus, @rsreds, @argiro, @rchatter, @adewit, @wang0jin, @JanChyczynski, @PonIlya, @ReyerBand, @thomreis this is something you requested to watch as well.
@antoniovilela, @rappoccio, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

-1

Failed Tests: Build
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8d328b/38286/summary.html
COMMIT: 2716a9c
CMSSW: CMSSW_14_1_CPP20_X_2024-03-18-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/44485/38286/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.

@perrotta
Copy link
Contributor

There are other such cases, e.g.:

@iarspider
Copy link
Contributor Author

@perrotta thanks, I have somehow missed these.

@iarspider
Copy link
Contributor Author

please test for CMSSW_14_1_CPP20_X

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44485/39591

  • This PR adds an extra 60KB to repository

@cmsbuild
Copy link
Contributor

Pull request #44485 was updated. @francescobrivio, @saumyaphor4252, @perrotta, @consuegs can you please check and sign again.

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8d328b/38301/summary.html
COMMIT: ca438de
CMSSW: CMSSW_14_1_CPP20_X_2024-03-18-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/44485/38301/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@perrotta
Copy link
Contributor

Also here, I think that constexpr would suit better, as suggested by Matti in #44488 (comment)
At least, the could would look nicer reading...
@iarspider please let us know if you intend to pursue that route here

@iarspider
Copy link
Contributor Author

@perrotta I plan to pursue this route in all the PRs aiming to fix deprecated enum arithmetics - or, at least, where it won't require too many additional changes

@iarspider
Copy link
Contributor Author

hold

@cmsbuild
Copy link
Contributor

Pull request has been put on hold by @iarspider
They need to issue an unhold command to remove the hold state or L1 can unhold it for all

@cmsbuild cmsbuild added the hold label Mar 21, 2024
@iarspider iarspider closed this Mar 22, 2024
@iarspider iarspider deleted the cpp20-no-enum-arithmetics_alca_db branch March 22, 2024 10:29
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.

3 participants