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

update DependencyGraph service #17492

Merged
merged 4 commits into from Feb 15, 2017

Conversation

fwyzard
Copy link
Contributor

@fwyzard fwyzard commented Feb 11, 2017

  • show plugin class in tooltip (SVG only)
  • highlight a list of modules

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 11, 2017

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 11, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/17746/console Started: 2017/02/11 15:32

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @fwyzard (Andrea Bocci) for CMSSW_9_0_X.

It involves the following packages:

FWCore/Services

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

cms-bot commands are listed here #13028

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 11, 2017

I would like to add a helper function for this and similar services, to extract the list of modules from a sequence:

def modules_in_sequences(* sequences):
  from FWCore.ParameterSet.SequenceTypes import ModuleNodeVisitor
  modules = []
  for sequence in sequences:
    sequence.visit(ModuleNodeVisitor(modules))
  return [ module.label() for module in modules ]

Any suggestions where it should go ?

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

@Dr15Jones
Copy link
Contributor

@fwyzard I guess the helper function could go into FWCore.ParameterSet.Utilities?

@cmsbuild
Copy link
Contributor

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

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 14, 2017

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 14, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/17771/console Started: 2017/02/14 08:53

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 14, 2017

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 14, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/17772/console Started: 2017/02/14 09:40

@cmsbuild
Copy link
Contributor

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

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 14, 2017

@Dr15Jones do you think the python is OK ?
it would be nice to have similar functions for Tasks, once they are in

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

@wddgit
Copy link
Contributor

wddgit commented Feb 14, 2017

After the Task PR is integrated, the function (modulesInSequences) as written will already would work just fine if you put tasks in the list passed in as an argument. In addition, if there are tasks associated with a sequence the visitor will already visit the modules on those associated tasks if the sequence is passed in as an argument. You might consider renaming the function, but other than that it should just work.

@wddgit
Copy link
Contributor

wddgit commented Feb 14, 2017

One other comment. After the Task PR is merged, the output list of modulesInSequences could contain ESProducers, ESSources and Services even when it is run on a Sequence because of the potential of tasks associated to the sequence. I have not looked at how that output list is used or whether that might cause problems.

@Dr15Jones
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_9_0_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @smuzaffar

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 14, 2017

Hi David, thanks for the comment.
The current use case should still be fine, but I'll update the function to return only ED modules.

@davidlange6
Copy link
Contributor

+1

@davidlange6 davidlange6 merged commit 5e60936 into cms-sw:CMSSW_9_0_X Feb 15, 2017
@fwyzard fwyzard deleted the DependencyGraph_update branch March 1, 2017 02:36
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