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

Code changes for Protobuf 3.21.9 and TensorFlow 2.12 #42228

Merged
merged 6 commits into from
Aug 1, 2023

Conversation

iarspider
Copy link
Contributor

PR description:

Companion PR for cms-sw/cmsdist#8565

PR validation:

Tests in cms-sw/cmsdist#8565

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42228/36238

ERROR: Build errors found during clang-tidy run.

    PROTOBUF_NODISCARD std::string* release_full_pathname();
                       ~~~~~^
DQMServices/Core/interface/ROOTFilePB.pb.h:201:35: error: expected ';' at end of declaration list [clang-diagnostic-error]
    PROTOBUF_NODISCARD std::string* release_full_pathname();
                                  ^
                                  ;
DQMServices/Core/interface/ROOTFilePB.pb.h:222:5: error: unknown type name 'PROTOBUF_NODISCARD' [clang-diagnostic-error]
    PROTOBUF_NODISCARD std::string* release_streamed_histo();
    ^
DQMServices/Core/interface/ROOTFilePB.pb.h:222:29: error: duplicate member 'string' [clang-diagnostic-error]
    PROTOBUF_NODISCARD std::string* release_streamed_histo();
                            ^
DQMServices/Core/interface/ROOTFilePB.pb.h:201:29: note: previous declaration is here
--
DQMServices/Core/interface/ROOTFilePB.pb.h:222:29: error: non-friend class member 'string' cannot have a qualified name [clang-diagnostic-error]
    PROTOBUF_NODISCARD std::string* release_streamed_histo();
                       ~~~~~^
DQMServices/Core/interface/ROOTFilePB.pb.h:222:35: error: expected ';' at end of declaration list [clang-diagnostic-error]
    PROTOBUF_NODISCARD std::string* release_streamed_histo();
                                  ^
                                  ;
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:129: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42228/36248

ERROR: Build errors found during clang-tidy run.

    PROTOBUF_NODISCARD std::string* release_full_pathname();
                       ~~~~~^
DQMServices/Core/interface/ROOTFilePB.pb.h:201:35: error: expected ';' at end of declaration list [clang-diagnostic-error]
    PROTOBUF_NODISCARD std::string* release_full_pathname();
                                  ^
                                  ;
DQMServices/Core/interface/ROOTFilePB.pb.h:222:5: error: unknown type name 'PROTOBUF_NODISCARD' [clang-diagnostic-error]
    PROTOBUF_NODISCARD std::string* release_streamed_histo();
    ^
DQMServices/Core/interface/ROOTFilePB.pb.h:222:29: error: duplicate member 'string' [clang-diagnostic-error]
    PROTOBUF_NODISCARD std::string* release_streamed_histo();
                            ^
DQMServices/Core/interface/ROOTFilePB.pb.h:201:29: note: previous declaration is here
--
DQMServices/Core/interface/ROOTFilePB.pb.h:222:29: error: non-friend class member 'string' cannot have a qualified name [clang-diagnostic-error]
    PROTOBUF_NODISCARD std::string* release_streamed_histo();
                       ~~~~~^
DQMServices/Core/interface/ROOTFilePB.pb.h:222:35: error: expected ';' at end of declaration list [clang-diagnostic-error]
    PROTOBUF_NODISCARD std::string* release_streamed_histo();
                                  ^
                                  ;
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:129: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42228/36251

ERROR: Build errors found during clang-tidy run.

/cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02793/el8_amd64_gcc11/external/tensorflow/2.6.4-94ea81ac8dcc00455e8150b7498bee77/include/tensorflow/core/framework/tensor_shape.h:206:8: note: 'AddDim' declared here
--
RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc:51:3: error: 'this' argument to member function 'AddDim' has type 'const tensorflow::TensorShape', but function is not marked const [clang-diagnostic-error]
  shape.AddDim(8);
  ^~~~~
/cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02793/el8_amd64_gcc11/external/tensorflow/2.6.4-94ea81ac8dcc00455e8150b7498bee77/include/tensorflow/core/framework/tensor_shape.h:206:8: note: 'AddDim' declared here
--
RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc:54:3: error: 'this' argument to member function 'AddDim' has type 'const tensorflow::TensorShape', but function is not marked const [clang-diagnostic-error]
  shape.AddDim(1);
  ^~~~~
/cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02793/el8_amd64_gcc11/external/tensorflow/2.6.4-94ea81ac8dcc00455e8150b7498bee77/include/tensorflow/core/framework/tensor_shape.h:206:8: note: 'AddDim' declared here
--
RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc:55:3: error: 'this' argument to member function 'AddDim' has type 'const tensorflow::TensorShape', but function is not marked const [clang-diagnostic-error]
  shape.AddDim(max_n_pf_);
  ^~~~~
/cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02793/el8_amd64_gcc11/external/tensorflow/2.6.4-94ea81ac8dcc00455e8150b7498bee77/include/tensorflow/core/framework/tensor_shape.h:206:8: note: 'AddDim' declared here
--
RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc:56:3: error: 'this' argument to member function 'AddDim' has type 'const tensorflow::TensorShape', but function is not marked const [clang-diagnostic-error]
  shape.AddDim(1);
  ^~~~~
/cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02793/el8_amd64_gcc11/external/tensorflow/2.6.4-94ea81ac8dcc00455e8150b7498bee77/include/tensorflow/core/framework/tensor_shape.h:206:8: note: 'AddDim' declared here
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:129: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@iarspider
Copy link
Contributor Author

code-checks with cms.week1.PR_78d7858e/57.0-3187777e8b462de4843bc3736a08b743

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42228/36252

ERROR: Build errors found during clang-tidy run.

/cvmfs/cms-ci.cern.ch/week1/PR_78d7858e/el8_amd64_gcc11/external/tensorflow/2.12.0-174560a388c169544bfb91342f3aecd6/include/tensorflow/core/framework/tensor_shape.h:206:8: note: 'AddDim' declared here
--
RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc:51:3: error: 'this' argument to member function 'AddDim' has type 'const tensorflow::TensorShape', but function is not marked const [clang-diagnostic-error]
  shape.AddDim(8);
  ^~~~~
/cvmfs/cms-ci.cern.ch/week1/PR_78d7858e/el8_amd64_gcc11/external/tensorflow/2.12.0-174560a388c169544bfb91342f3aecd6/include/tensorflow/core/framework/tensor_shape.h:206:8: note: 'AddDim' declared here
--
RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc:54:3: error: 'this' argument to member function 'AddDim' has type 'const tensorflow::TensorShape', but function is not marked const [clang-diagnostic-error]
  shape.AddDim(1);
  ^~~~~
/cvmfs/cms-ci.cern.ch/week1/PR_78d7858e/el8_amd64_gcc11/external/tensorflow/2.12.0-174560a388c169544bfb91342f3aecd6/include/tensorflow/core/framework/tensor_shape.h:206:8: note: 'AddDim' declared here
--
RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc:55:3: error: 'this' argument to member function 'AddDim' has type 'const tensorflow::TensorShape', but function is not marked const [clang-diagnostic-error]
  shape.AddDim(max_n_pf_);
  ^~~~~
/cvmfs/cms-ci.cern.ch/week1/PR_78d7858e/el8_amd64_gcc11/external/tensorflow/2.12.0-174560a388c169544bfb91342f3aecd6/include/tensorflow/core/framework/tensor_shape.h:206:8: note: 'AddDim' declared here
--
RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc:56:3: error: 'this' argument to member function 'AddDim' has type 'const tensorflow::TensorShape', but function is not marked const [clang-diagnostic-error]
  shape.AddDim(1);
  ^~~~~
/cvmfs/cms-ci.cern.ch/week1/PR_78d7858e/el8_amd64_gcc11/external/tensorflow/2.12.0-174560a388c169544bfb91342f3aecd6/include/tensorflow/core/framework/tensor_shape.h:206:8: note: 'AddDim' declared here
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:129: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@iarspider
Copy link
Contributor Author

@cms-sw/reconstruction-l2 gentle ping. This is also needed for gcc13 and cpp20 IBs.

@clacaputo
Copy link
Contributor

+reconstruction

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

@smuzaffar
Copy link
Contributor

@perrotta @rappoccio , this should go in along with cms-sw/cmsdist#8565

@perrotta
Copy link
Contributor

please test with cms-sw/cmsdist#8565
(Previous tests were two weeks old, and they have expired by now)

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 1, 2023

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-56091b/33990/summary.html
COMMIT: d487a13
CMSSW: CMSSW_13_3_X_2023-07-31-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/42228/33990/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-56091b/33990/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-56091b/33990/git-merge-result

Comparison Summary

Summary:

  • You potentially removed 11 lines from the logs
  • Reco comparison results: 28 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3150821
  • DQMHistoTests: Total failures: 1569
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3149230
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 207 log files, 159 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@perrotta
Copy link
Contributor

perrotta commented Aug 1, 2023

@cms-sw/reconstruction-l2 are differences in reco/DQM outputs understood and/or accepted?

@perrotta
Copy link
Contributor

perrotta commented Aug 1, 2023

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

6 participants