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

Python3: Changes needed to run runTheMatrix with python2/3 #28021

Merged
merged 4 commits into from
Sep 26, 2019
Merged

Python3: Changes needed to run runTheMatrix with python2/3 #28021

merged 4 commits into from
Sep 26, 2019

Conversation

smuzaffar
Copy link
Contributor

PR description:

Changes needed to run runTheMatrix with python3

PR validation:

Locally runing of runTheMatix (to dump relval commands) was successful. Order of command-line arguments to cmsDriver.py is not identical (because of change of dict behaviour in python3)

  • python2 runTheMatrix.py -n -e -l 137.8 -i all
found a total of  794  workflows:
      of which the following 1 were selected:

137.8  RunEGamma2018C+HLTDR2_2018+RECODR2_2018reHLT_skimEGamma_Offline_L1TEgDQM+RunEGamma2018D+HLTDR2_2018+RECODR2_2018reHLT_skimEGamma_Prompt_L1TEgDQM+HARVEST2018_L1TEgDQM_MULTIRUN [1]: input from: /EGamma/Run2018C-v1/RAW with run [] 
                                           [2]: cmsDriver.py step2  --datatier FEVTDEBUGHLT --conditions auto:run2_hlt_relval -s L1REPACK:Full,HLT:@relval2018 --process reHLT --data  --era Run2_2018 --eventcontent FEVTDEBUGHLT -n 100 
                                           [3]: cmsDriver.py step3  --conditions auto:run2_data -s RAW2DIGI,L1Reco,RECO,SKIM:ZElectron+SinglePhotonJetPlusHOFilter+EXOMONOPOLE,EI,PAT,ALCA:SiStripCalZeroBias+SiStripCalMinBias+SiStripCalSmallBiasScan+TkAlMinBias+EcalESAlign,DQM:@standardDQMFakeHLT+@miniAODDQM+@L1TEgamma --runUnscheduled  --process reRECO --data  --era Run2_2018 --eventcontent RECO,MINIAOD,DQM --hltProcess reHLT --scenario pp --datatier RECO,MINIAOD,DQMIO --customise Configuration/DataProcessing/RecoTLR.customisePostEra_Run2_2018 -n 100 
                                           [4]: input from: /EGamma/Run2018D-v1/RAW with run []
                                           [5]: cmsDriver.py step5  --datatier FEVTDEBUGHLT --conditions auto:run2_hlt_relval -s L1REPACK:Full,HLT:@relval2018 --process reHLT --data  --era Run2_2018 --eventcontent FEVTDEBUGHLT -n 100 
                                           [6]: cmsDriver.py step6  --conditions auto:run2_data_promptlike -s RAW2DIGI,L1Reco,RECO,SKIM:ZElectron+SinglePhotonJetPlusHOFilter+EXOMONOPOLE,EI,PAT,ALCA:SiStripCalZeroBias+SiStripCalMinBias+SiStripCalSmallBiasScan+TkAlMinBias+EcalESAlign,DQM:@standardDQMFakeHLT+@miniAODDQM+@L1TEgamma --runUnscheduled  --process reRECO --data  --era Run2_2018 --eventcontent RECO,MINIAOD,DQM --hltProcess reHLT --scenario pp --datatier RECO,MINIAOD,DQMIO --customise Configuration/DataProcessing/RecoTLR.customisePostEra_Run2_2018 -n 100 
                                           [7]: cmsDriver.py step7  --conditions auto:run2_data -s HARVESTING:@standardDQMFakeHLT+@miniAODDQM+@L1TEgamma --data  --era Run2_2018 --filein file:step6_inDQM.root,file:step3_inDQM.root --scenario pp --filetype DQM --customise Configuration/StandardSequences/DQMSaverAtJobEnd_cff -n 100 

1 workflows with 7 steps

  • python3 runTheMatrix.py -n -e -l 137.8 -i all
found a total of  794  workflows:
      of which the following 1 were selected:

137.8  RunEGamma2018C+HLTDR2_2018+RECODR2_2018reHLT_skimEGamma_Offline_L1TEgDQM+RunEGamma2018D+HLTDR2_2018+RECODR2_2018reHLT_skimEGamma_Prompt_L1TEgDQM+HARVEST2018_L1TEgDQM_MULTIRUN [1]: input from: /EGamma/Run2018C-v1/RAW with run [] 
                                           [2]: cmsDriver.py step2  --process reHLT -s L1REPACK:Full,HLT:@relval2018 --conditions auto:run2_hlt_relval --data  --eventcontent FEVTDEBUGHLT --datatier FEVTDEBUGHLT --era Run2_2018 -n 100 
                                           [3]: cmsDriver.py step3  --runUnscheduled  --conditions auto:run2_data -s RAW2DIGI,L1Reco,RECO,SKIM:ZElectron+SinglePhotonJetPlusHOFilter+EXOMONOPOLE,EI,PAT,ALCA:SiStripCalZeroBias+SiStripCalMinBias+SiStripCalSmallBiasScan+TkAlMinBias+EcalESAlign,DQM:@standardDQMFakeHLT+@miniAODDQM+@L1TEgamma --datatier RECO,MINIAOD,DQMIO --eventcontent RECO,MINIAOD,DQM --data  --process reRECO --scenario pp --era Run2_2018 --customise Configuration/DataProcessing/RecoTLR.customisePostEra_Run2_2018 --hltProcess reHLT -n 100 
                                           [4]: input from: /EGamma/Run2018D-v1/RAW with run []
                                           [5]: cmsDriver.py step5  --process reHLT -s L1REPACK:Full,HLT:@relval2018 --conditions auto:run2_hlt_relval --data  --eventcontent FEVTDEBUGHLT --datatier FEVTDEBUGHLT --era Run2_2018 -n 100 
                                           [6]: cmsDriver.py step6  --runUnscheduled  --conditions auto:run2_data_promptlike -s RAW2DIGI,L1Reco,RECO,SKIM:ZElectron+SinglePhotonJetPlusHOFilter+EXOMONOPOLE,EI,PAT,ALCA:SiStripCalZeroBias+SiStripCalMinBias+SiStripCalSmallBiasScan+TkAlMinBias+EcalESAlign,DQM:@standardDQMFakeHLT+@miniAODDQM+@L1TEgamma --datatier RECO,MINIAOD,DQMIO --eventcontent RECO,MINIAOD,DQM --data  --process reRECO --scenario pp --era Run2_2018 --customise Configuration/DataProcessing/RecoTLR.customisePostEra_Run2_2018 --hltProcess reHLT -n 100 
                                           [7]: cmsDriver.py step7  -s HARVESTING:@standardDQMFakeHLT+@miniAODDQM+@L1TEgamma --conditions auto:run2_data --data  --filetype DQM --scenario pp --era Run2_2018 --customise Configuration/StandardSequences/DQMSaverAtJobEnd_cff --filein file:step6_inDQM.root,file:step3_inDQM.root -n 100 

1 workflows with 7 steps

@smuzaffar
Copy link
Contributor Author

FYI @davidlange6

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@smuzaffar smuzaffar changed the title Python3: Changes needed to run runThePatrix with python2/3 Python3: Changes needed to run runTheMatrix with python2/3 Sep 18, 2019
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28021/11932

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @smuzaffar (Malik Shahzad Muzaffar) for master.

It involves the following packages:

Configuration/Applications
Configuration/PyReleaseValidation
FWCore/PythonUtilities

@smuzaffar, @Dr15Jones, @chayanit, @zhenhu, @kpedro88, @pgunnell, @franzoni, @cmsbuild, @fabiocos, @davidlange6 can you please review it and eventually sign? Thanks.
@makortel, @Martin-Grunewald, @wddgit this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@smuzaffar
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 18, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/2562/console Started: 2019/09/18 16:15

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@@ -16,8 +16,8 @@
lumi_data = lumi_data['data']

def match_in(sub_list,lumi_list):
sub_list = map(int,sub_list)
lumi_list = map(int,lumi_list)
sub_list = list(map(int,sub_list))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this starts to be a complicated way of writing
for i in range(int(sub_list[0]),int(sub_list[1])+1):
if i >= int(lumi_list[0]) and i <= int(lumi_list[1]): return True
return False

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for suggestion. I have updated it

@smuzaffar
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 25, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/2681/console Started: 2019/09/25 20:42
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/2682/console Started: 2019/09/25 20:48

@smuzaffar
Copy link
Contributor Author

I have moved back to old commit so that we can integrate this PR. I will create a separate PR to fix some more python3 related errors.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@smuzaffar
Copy link
Contributor Author

unhold

@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. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-77c173/2682/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 2958092
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2957749
  • DQMHistoTests: Total skipped: 341
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 33 files compared)
  • Checked 145 log files, 15 edm output root files, 34 DQM output files

@fabiocos
Copy link
Contributor

+1

it looks ready to be integrated, and with this a py3-based IB may be prepared for further tests

@cmsbuild cmsbuild merged commit c1f0db5 into cms-sw:master Sep 26, 2019
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