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] fix MakeBuildSet to work with both py2/3 #28123

Merged
merged 1 commit into from
Oct 8, 2019
Merged

[Python3] fix MakeBuildSet to work with both py2/3 #28123

merged 1 commit into from
Oct 8, 2019

Conversation

smuzaffar
Copy link
Contributor

PR description:

This fixes the MakeBuildSet script for python3. This is used for checking fwlite build set dependencies

PR validation:

Locally run it with both python2 and python3.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 7, 2019

The code-checks are being triggered in jenkins.

@smuzaffar
Copy link
Contributor Author

please test
although there is nothing in normal PR tests which will make use of this change. It only runs during IB tests

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 7, 2019

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28123/12164

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 7, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/2827/console Started: 2019/10/07 22:41

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 7, 2019

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

It involves the following packages:

Utilities/ReleaseScripts

@cmsbuild, @smuzaffar, @Dr15Jones can you please review it and eventually sign? Thanks.
@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

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 7, 2019

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 7, 2019

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 8, 2019

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 2961052
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2960710
  • DQMHistoTests: Total skipped: 341
  • 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

@smuzaffar smuzaffar changed the title [Python3] fix MakeBuildSet to wor with both py2/3 [Python3] fix MakeBuildSet to work with both py2/3 Oct 8, 2019
@smuzaffar
Copy link
Contributor Author

+core

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 8, 2019

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)

@@ -330,9 +331,8 @@ pitems = []
if outputFormat != "all":
outputFormats = [outputFormat]
for item in outputFormats:
pkg = myPackages[item].keys()
pkg.sort()
pkg = sorted(myPackages[item].keys())
Copy link
Contributor

Choose a reason for hiding this comment

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

@smuzaffar for my understanding, is this change really needed or is it just for smarter coding? The list.sort() should still be available in python3 as far as I can see https://docs.python.org/3/howto/sorting.html

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 could have used pkg=list(myPackages[item].keys()); pkg.sort() but I think current change should be faster if not slower.

@fabiocos
Copy link
Contributor

fabiocos commented Oct 8, 2019

+1

@cmsbuild cmsbuild merged commit 7651484 into cms-sw:master Oct 8, 2019
@davidlange6
Copy link
Contributor

davidlange6 commented Oct 8, 2019 via email

@fabiocos
Copy link
Contributor

fabiocos commented Oct 8, 2019

@davidlange6 ok, you are right, so it cannot be used in that context, thanks

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