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

remove python2 pip support and remaining python2 packages except for future #7112

Merged
merged 3 commits into from Jul 16, 2021

Conversation

davidlange6
Copy link
Contributor

No description provided.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 7, 2021

A new Pull Request was created by @davidlange6 (David Lange) for branch IB/CMSSW_12_0_X/master.

@cmsbuild, @smuzaffar, @mrodozov, @iarspider can you please review it and eventually sign? Thanks.
@silviodonato, @dpiparo, @qliphy you are the release manager for this.
cms-bot commands are listed here

@davidlange6
Copy link
Contributor Author

please test

@smuzaffar
Copy link
Contributor

@davidlange6 , we also need to update https://github.com/cms-sw/cmssw/blob/5244916401e27d97ce2dace3341db78c5c08098f/PhysicsTools/PythonAnalysis/test/BuildFile.xml#L29-L31 . I think just

<test name="testNumPy" command="python3 -c 'import numpy'"/>

should be enough now ( i.e drop the <iftool ...> condition)

@davidlange6
Copy link
Contributor Author

davidlange6 commented Jul 7, 2021 via email

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 7, 2021

-1

Failed Tests: UnitTests RelVals AddOn
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-508a55/16552/summary.html
COMMIT: 3b7bf5b
CMSSW: CMSSW_12_0_X_2021-07-06-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmsdist/7112/16552/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-508a55/16552/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-508a55/16552/git-merge-result

Unit Tests

I found errors in the following unit tests:

---> test import-keras had ERRORS
---> test import-tensorflow had ERRORS
---> test testTheano had ERRORS

RelVals

AddOn Tests

  • fastsimcmsDriver.py TTbar_8TeV_TuneCUETP8M1_cfi --conditions auto:run1_mc --fast -n 100 --eventcontent AODSIM,DQM --relval 100000,1000 -s GEN,SIM,RECOBEFMIX,DIGI:pdigi_valid,L1,DIGI2RAW,L1Reco,RECO,EI,VALIDATION --customise=HLTrigger/Configuration/CustomConfigs.L1THLT --datatier GEN-SIM-DIGI-RECO,DQMIO --beamspot Realistic8TeVCollision : FAILED - time: date Wed Jul 7 16:35:11 2021-date Wed Jul 7 16:35:11 2021 s - exit: 256
  • pat1
----- Begin Fatal Exception 07-Jul-2021 16:35:12 CEST-----------------------
An exception of category 'ConfigFileReadError' occurred while
   [0] Processing the python configuration file named /cvmfs/cms-ib.cern.ch/week0/slc7_amd64_gcc900/cms/cmssw-patch/CMSSW_12_0_X_2021-07-06-2300/src/PhysicsTools/PatAlgos/test/IntegrationTest_cfg.py
Exception Message:
 unknown python problem occurred.
ImportError: No module named six

At:
  /cvmfs/cms-ib.cern.ch/week0/slc7_amd64_gcc900/cms/cmssw-patch/CMSSW_12_0_X_2021-07-06-2300/python/FWCore/ParameterSet/Config.py(6): <module>
  /cvmfs/cms-ib.cern.ch/week0/slc7_amd64_gcc900/cms/cmssw-patch/CMSSW_12_0_X_2021-07-06-2300/python/PhysicsTools/PatAlgos/patTemplate_cfg.py(1): <module>
  /cvmfs/cms-ib.cern.ch/week0/slc7_amd64_gcc900/cms/cmssw-patch/CMSSW_12_0_X_2021-07-06-2300/src/PhysicsTools/PatAlgos/test/IntegrationTest_cfg.py(2): <module>

----- End Fatal Exception -------------------------------------------------
  • hlt_data_Fake2cmsDriver.py RelVal -s L1REPACK:Full --data --scenario=pp -n 10 --conditions auto:run2_hlt_Fake2 --relval 9000,50 --datatier "RAW" --eventcontent RAW --customise=HLTrigger/Configuration/CustomConfigs.L1T --era Run2_2016 --fileout file:RelVal_Raw_Fake2_DATA.root --filein /store/data/Run2016B/JetHT/RAW/v1/000/272/762/00000/C666CDE2-E013-E611-B15A-02163E011DBE.root : FAILED - time: date Wed Jul 7 16:35:15 2021-date Wed Jul 7 16:35:15 2021 s - exit: 256
Expand to see more addon errors ...

@smuzaffar
Copy link
Contributor

please test
lets use a newer IB

@davidlange6
Copy link
Contributor Author

my guess is that none of these will be fixed. I need to finish my PR for replacing /usr/bin/env python with /usr/bin/env python3..

@davidlange6
Copy link
Contributor Author

well, but maybe I'm wrong. Keras/tensorflow etc have been python3 only for a while..

@smuzaffar
Copy link
Contributor

Tensorflow for sure is py3 only since long

add back tensor flow - removed by mistake
@davidlange6
Copy link
Contributor Author

please abort

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 8, 2021

Pull request #7112 was updated.

@davidlange6
Copy link
Contributor Author

please test

@davidlange6
Copy link
Contributor Author

sorry - my mistake..

@davidlange6
Copy link
Contributor Author

at least some (all?) of the other errors will be fixed by a PR merged (to move Configuration scripts to python3).

@smuzaffar
Copy link
Contributor

smuzaffar commented Jul 13, 2021

test parameters:

  • full_cmssw = true

@smuzaffar
Copy link
Contributor

please test

@smuzaffar
Copy link
Contributor

@davidlange6 , lets see if cms-sw/cmssw#34471,cms-sw/cmssw#34472,cms-sw/cmssw#34473,cms-sw/cmssw#34474,cms-sw/cmssw#34475 set of PRs fixes the rest of the issues

@smuzaffar
Copy link
Contributor

ok one unit test fails now ( src/FWCore/ParameterSet/test/TestFWCoreParameterSetDriver ) this should be fixed by cms-sw/cmssw#34477

@smuzaffar
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: UnitTests
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-508a55/16789/summary.html
COMMIT: 050ac0a
CMSSW: CMSSW_12_0_X_2021-07-13-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmsdist/7112/16789/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-508a55/16789/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-508a55/16789/git-merge-result

Unit Tests

I found errors in the following unit tests:

---> test TestFWCoreParameterSetDriver had ERRORS
---> test testhep_ml had ERRORS

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 38
  • DQMHistoTests: Total histograms compared: 2786302
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2786279
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 37 files compared)
  • Checked 160 log files, 37 edm output root files, 38 DQM output files
  • TriggerResults: no differences found

@smuzaffar
Copy link
Contributor

@davidlange6 , now TestFWCoreParameterSetDriver is failing in the same way as it is failing in PY3 IBs. Can you please check this unit tests in PY3 IBs? No idea why testhep_ml failed now, may be a glitch

@smuzaffar
Copy link
Contributor

the framework test is being followed here cms-sw/cmssw#34477 (comment)

@davidlange6
Copy link
Contributor Author

davidlange6 commented Jul 14, 2021 via email

@smuzaffar
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-508a55/16876/summary.html
COMMIT: 050ac0a
CMSSW: CMSSW_12_0_X_2021-07-15-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmsdist/7112/16876/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-508a55/16876/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-508a55/16876/git-merge-result

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 38
  • DQMHistoTests: Total histograms compared: 2786302
  • DQMHistoTests: Total failures: 7
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2786273
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 37 files compared)
  • Checked 160 log files, 37 edm output root files, 38 DQM output files
  • TriggerResults: no differences found

@smuzaffar
Copy link
Contributor

looks good, lets get this in

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