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 premixing workflows for phase2 #22375

Merged
merged 2 commits into from Mar 5, 2018

Conversation

makortel
Copy link
Contributor

This PR adds premixing workflows for phase2 as variations of the PU workflows as discussed in Feb 6th simulation meeting
https://indico.cern.ch/event/702324/contributions/2885358/attachments/1596021/2527902/slides_mk_simulation_20180206.pdf

  • Stage 1 uses variation number .98 and it is added only for the NuGun fragment
  • Stage 2 uses variation number .99 and it is, for now, added only for the TTbar_14TeV fragment

The workflows are close copies from the run2 premixing workflows, so supposedly they do not run (a bit accidentally .98 does not crash if one gives it privately generated MinBias events as input). The main benefit is to be able to generate the workflow configurations.

Tested in CMSSW_10_1_X_2018-02-26-2300, no changes expected in standard workflows.

@mdhildreth @kpedro88

Not enabled for IBs yet, as there is no attempt to have them working
yet.
@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @makortel (Matti Kortelainen) for master.

It involves the following packages:

Configuration/PyReleaseValidation

@GurpreetSinghChahal, @cmsbuild, @prebello, @kpedro88, @fabozzi can you please review it and eventually sign? Thanks.
@ghellwig, @felicepantaleo, @ebrondol, @Martin-Grunewald 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

@makortel
Copy link
Contributor Author

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 27, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/26348/console Started: 2018/02/27 18:06

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

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

@slava77 comparisons for the following workflows were not done due to missing matrix map:

  • /build/cmsbld/jenkins/workspace/compare-root-files-short-matrix/results/JR-comparison/PR-22375/136.8311_RunJetHT2017F_reminiaod+RunJetHT2017F_reminiaod+REMINIAOD_data2017+HARVEST2017_REMINIAOD_data2017

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 29
  • DQMHistoTests: Total histograms compared: 2499373
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2499196
  • DQMHistoTests: Total skipped: 176
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.880000000107 KiB( 23 files compared)
  • Checked 118 log files, 9 edm output root files, 29 DQM output files

'--eventcontent': 'PREMIX',
'--procModifiers': 'premix_stage1',
},
upgradeStepDict[stepName][k]])
Copy link
Contributor

Choose a reason for hiding this comment

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

this needs to be upgradeStepDict[stepNamePmx][k]] or else you get heCollapse flags

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this needs to be upgradeStepDict[stepNamePmx][k]]

Umm, no. At this stage upgradeStepDict[stepNamePmx][k] is empty (and is actually set on the next line). The point here is to take the baseline PU workflow, and replace these parameters for premixing.

or else you get heCollapse flags

My understanding is that merge gives priority on the first elements of the argument list

# merge dictionaries, with prioty on the [0] index
def merge(dictlist,TELL=False):

so actually the hecollapse would be replaced with premix_stage1.

But this raises a point that for some parameters (procModifiers, customise, maybe also era) sometimes one wants to concatenate the arguments rather than replace them. For customise there are already copy-pasted pattern of "check manually if it exists, then manually append, else set", but given that the need for appending starts to spread, maybe it would be good to think more "central" support for that in merge? I can also try to think of something.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think there are actually two problems:

  1. The variable stepName is not defined anywhere in this loop, so it picks up the last definition, which is in the heCollapse modification. Indeed, this shouldn't be stepNamePmx (I looked too quickly), but needs to be something.
  2. The heCollapse modifications use --procModifier instead of --procModifiers; this is a typo that should be fixed.

The idea about concatenating in merge is a good one, but separate from the problem I observed here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. The variable stepName is not defined anywhere in this loop, so it picks up the last definition, which is in the heCollapse modification. Indeed, this shouldn't be stepNamePmx (I looked too quickly), but needs to be something.

Good catch (what was I thinking...). The stepName here should be step + 'PU' + upgradeSteps[stepType]['suffix'], but now I have to re-think why did I place this piece here instead of being below before the line 2497 (where the lines 2493-2494 set the stepName for this piece).

  1. The heCollapse modifications use --procModifier instead of --procModifiers; this is a typo that should be fixed.

I agree, see #22437.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kpedro88 For 1, I added the definition of stepName before its use and did some minor related cleanup. The generated configuration looks fine now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I created an issue #22492 to remind the concatenation option to merge().

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 5, 2018

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 5, 2018

Pull request #22375 was updated. @GurpreetSinghChahal, @cmsbuild, @prebello, @kpedro88, @fabozzi can you please check and sign again.

@makortel
Copy link
Contributor Author

makortel commented Mar 5, 2018

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 5, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/26503/console Started: 2018/03/05 12:50

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 5, 2018

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 5, 2018

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 5, 2018

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 29
  • DQMHistoTests: Total histograms compared: 2479021
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2478844
  • DQMHistoTests: Total skipped: 176
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 1.12000000007 KiB( 23 files compared)
  • Checked 118 log files, 9 edm output root files, 29 DQM output files

@kpedro88
Copy link
Contributor

kpedro88 commented Mar 5, 2018

+1

@prebello
Copy link
Contributor

prebello commented Mar 5, 2018

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 5, 2018

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)

@fabiocos
Copy link
Contributor

fabiocos commented Mar 5, 2018

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

None yet

5 participants