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

Add a unit test for correctionlib external #36547

Merged
merged 1 commit into from Jan 10, 2022

Conversation

nsmith-
Copy link
Contributor

@nsmith- nsmith- commented Dec 17, 2021

This is a backport of #35296 which validates the backport of the correctionlib external in cmsdist cms-sw/cmsdist#7523
It provides only C++ and python 2 functionality. The correction CLI utility and python 3 bindings are omitted for now, as the intention here is only to provide legacy support for python 2 nanoAOD-tools.

This will need testing with the externals including cms-sw/cmsdist#7523

@cmsbuild cmsbuild added this to the CMSSW_10_6_X milestone Dec 17, 2021
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @nsmith- (Nicholas Smith) for CMSSW_10_6_X.

It involves the following packages:

  • PhysicsTools/Utilities (analysis)

@cmsbuild, @santocch can you please review it and eventually sign? Thanks.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@qliphy
Copy link
Contributor

qliphy commented Dec 20, 2021

test parameters:

@qliphy
Copy link
Contributor

qliphy commented Dec 20, 2021

please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: Build ClangBuild
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-61cd2d/21395/summary.html
COMMIT: 5bba350
CMSSW: CMSSW_10_6_X_2021-12-19-0000/slc7_amd64_gcc700
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/36547/21395/install.sh to create a dev area with all the needed externals and cmssw changes.

Build

I found compilation error when building:

>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2021-12-19-0000/src/PhysicsTools/Utilities/test/testPrimitive.cc 
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2021-12-19-0000/src/PhysicsTools/Utilities/test/testIntegral.cc 
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2021-12-19-0000/src/PhysicsTools/Utilities/test/testRunner.cpp 
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2021-12-19-0000/src/PhysicsTools/Utilities/test/test_correctionlib.cc 
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2021-12-19-0000/src/PhysicsTools/Utilities/test/testLumiReweight.cc 
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2021-12-19-0000/src/PhysicsTools/Utilities/test/test_correctionlib.cc:4:10: fatal error: correction.h: No such file or directory
 #include "correction.h"
          ^~~~~~~~~~~~~~
compilation terminated.
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2021-12-19-0000/src/PhysicsTools/Utilities/test/test_correctionlib.cc:4:10: fatal error: correction.h: No such file or directory
 #include "correction.h"


Clang Build

I found compilation error while trying to compile with clang. Command used:

USER_CUDA_FLAGS='--expt-relaxed-constexpr' USER_CXXFLAGS='-Wno-register -fsyntax-only' scram build -k -j 32 COMPILER='llvm compile'

****WARNING: Invalid tool correctionlib. Please fix src/PhysicsTools/Utilities/test/BuildFile.xml file.
>> Creating project symlinks
>> Entering Package FWCore/Version
>> Entering Package PhysicsTools/Utilities
>> Compile sequence completed for CMSSW CMSSW_10_6_X_2021-12-19-0000
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 1
+ eval scram build outputlog '&&' '(python3' /data/cmsbld/jenkins/workspace/ib-run-pr-tests/cms-bot/buildLogAnalyzer.py --logDir /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2021-12-19-0000/tmp/slc7_amd64_gcc700/cache/log/src '||' 'true)'
++ scram build outputlog
Reading cached build data
Entering library rule at FWCore/Version
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2021-12-19-0000/src/FWCore/Version/src/GetReleaseVersion.cc 


@qliphy
Copy link
Contributor

qliphy commented Jan 4, 2022

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 4, 2022

-1

Failed Tests: Build ClangBuild
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-61cd2d/21522/summary.html
COMMIT: 5bba350
CMSSW: CMSSW_10_6_X_2022-01-02-0000/slc7_amd64_gcc700
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/36547/21522/install.sh to create a dev area with all the needed externals and cmssw changes.

Build

I found compilation error when building:

>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2022-01-02-0000/src/PhysicsTools/Utilities/test/testPrimitive.cc 
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2022-01-02-0000/src/PhysicsTools/Utilities/test/testIntegral.cc 
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2022-01-02-0000/src/PhysicsTools/Utilities/test/testRunner.cpp 
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2022-01-02-0000/src/PhysicsTools/Utilities/test/testLumiReweight.cc 
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2022-01-02-0000/src/PhysicsTools/Utilities/test/test_correctionlib.cc 
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2022-01-02-0000/src/PhysicsTools/Utilities/test/test_correctionlib.cc:4:10: fatal error: correction.h: No such file or directory
 #include "correction.h"
          ^~~~~~~~~~~~~~
compilation terminated.
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2022-01-02-0000/src/PhysicsTools/Utilities/test/test_correctionlib.cc:4:10: fatal error: correction.h: No such file or directory
 #include "correction.h"


Clang Build

I found compilation error while trying to compile with clang. Command used:

USER_CUDA_FLAGS='--expt-relaxed-constexpr' USER_CXXFLAGS='-Wno-register -fsyntax-only' scram build -k -j 32 COMPILER='llvm compile'

****WARNING: Invalid tool correctionlib. Please fix src/PhysicsTools/Utilities/test/BuildFile.xml file.
>> Creating project symlinks
>> Entering Package FWCore/Version
>> Entering Package PhysicsTools/Utilities
>> Compile sequence completed for CMSSW CMSSW_10_6_X_2022-01-02-0000
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 1
+ eval scram build outputlog '&&' '(python3' /data/cmsbld/jenkins/workspace/ib-run-pr-tests/cms-bot/buildLogAnalyzer.py --logDir /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2022-01-02-0000/tmp/slc7_amd64_gcc700/cache/log/src '||' 'true)'
++ scram build outputlog
Reading cached build data
Entering library rule at FWCore/Version
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2022-01-02-0000/src/FWCore/Version/src/GetReleaseVersion.cc 


@smuzaffar
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-61cd2d/21587/summary.html
COMMIT: 5bba350
CMSSW: CMSSW_10_6_X_2022-01-09-0000/slc7_amd64_gcc700
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/36547/21587/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: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 35
  • DQMHistoTests: Total histograms compared: 3215686
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3215350
  • DQMHistoTests: Total skipped: 334
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 34 files compared)
  • Checked 143 log files, 29 edm output root files, 35 DQM output files
  • TriggerResults: no differences found

@qliphy
Copy link
Contributor

qliphy commented Jan 10, 2022

+1

@qliphy
Copy link
Contributor

qliphy commented Jan 10, 2022

merge

@cmsbuild cmsbuild merged commit c04fa51 into cms-sw:CMSSW_10_6_X Jan 10, 2022
@santocch
Copy link

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_10_6_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_12_3_X is complete. This pull request will be automatically merged.

@nsmith- nsmith- deleted the correctionlib_backport_10_6 branch July 8, 2022 20:46
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