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

Fix TaskPlaceholder dumpPython method #29327

Merged
merged 2 commits into from Mar 30, 2020
Merged

Conversation

rovere
Copy link
Contributor

@rovere rovere commented Mar 27, 2020

PR description:

While developing some utility, I stumble upon what I think is a bug that I fix with this PR.
Removing "white space" differences will help spot the bug and the fix.

PR validation:

I'm not sure how to properly test it. I run it within an interactive python session and it seems to solve the issue.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29327/14399

  • This PR adds an extra 32KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @rovere (Marco Rovere) for master.

It involves the following packages:

FWCore/ParameterSet

@makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please review it and eventually sign? Thanks.
@makortel, @wddgit this is something you requested to watch as well.
@davidlange6, @silviodonato, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@makortel
Copy link
Contributor

Thanks @rovere! Apparently SequencePlaceholder has the same problem

def dumpPython(self, options=PrintOptions()):
result = 'cms.SequencePlaceholder(\"'
if options.isCfg:
result += 'process.'
result += +self._name+'\")\n'

Would you mind fixing that as well on the same go?

There are tests at the end of the file

if __name__=="__main__":
import unittest

but I see none for TaskPlaceholder or SequencePlaceholder. Could you add simple tests e.g. at the end of in this function
def testDumpPython(self):

?

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@rovere
Copy link
Contributor Author

rovere commented Mar 30, 2020

Ciao @makortel
I fixed also the SequencePlaceholder and implemented the unit-tests.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29327/14413

  • This PR adds an extra 32KB to repository

@cmsbuild
Copy link
Contributor

Pull request #29327 was updated. @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please check and sign again.

@makortel
Copy link
Contributor

Thanks!

@makortel
Copy link
Contributor

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 30, 2020

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/5433/console Started: 2020/03/30 14:42

@cmsbuild
Copy link
Contributor

+1
Tested at: 82c03b3
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-aaf497/5433/summary.html
CMSSW: CMSSW_11_1_X_2020-03-29-2300
SCRAM_ARCH: slc7_amd64_gcc820

@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-aaf497/5433/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 3 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 2692110
  • DQMHistoTests: Total failures: 34
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2691757
  • DQMHistoTests: Total skipped: 319
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 33 files compared)
  • Checked 147 log files, 16 edm output root files, 34 DQM output files

@makortel
Copy link
Contributor

+1

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

@silviodonato
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit aad09fb into cms-sw:master Mar 30, 2020
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

4 participants