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

Simple Service to make a GraphViz graph of the modules runtime dependencies #17417

Merged
merged 10 commits into from Feb 8, 2017

Conversation

fwyzard
Copy link
Contributor

@fwyzard fwyzard commented Feb 4, 2017

Simple Service to make a GraphViz graph of the modules runtime dependencies:

  • draw hard dependencies according to the "consumes" dependencies;
  • draw soft dependencies to reflect the order of scheduled modue in each path;
  • draw SubProcesses in subgraphs.

Use GraphViz dot to generate an SVG representation of the dependencies:

dot -v -Tsvg dependency.gv -o dependency.svg

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 4, 2017

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 4, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/17622/console Started: 2017/02/04 21:58

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 4, 2017

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 4, 2017

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 4, 2017

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 4, 2017

<use name="gcc-atomic"/>
<library file="*.cc" name="FWCoreServicesPlugins">
<flags EDM_PLUGIN="1"/>
<flags CXXFLAGS="-Wno-maybe-uninitialized"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

@smuzaffar are you OK with this flag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if there is a way f disabling the check only in the boost headers, that works for me as well...

Copy link
Contributor

Choose a reason for hiding this comment

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

@fwyzard , no there is no way to disable it only for boost. If you are worrying about getting these warnings in IB logs then we do ignore warnings coming from externals.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The problem is that we have -Werror=maybe-uninitialized so they become actual build errors.
If you prefer I can use -Wno-error=maybe-uninitialized to turn them back into warnings.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2017

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

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 8, 2017

OK, I have updated the service based on the feedback at the core software meeting:

  • moved it to a different plugin, so the warnings can be disabled only for this service
  • gather information about the Source module explicitly

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 8, 2017

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2017

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

<library file="DependencyGraph.cc" name="FWCoreServicesDependencyGraphPlugin">
<flags EDM_PLUGIN="1"/>
<flags CXXFLAGS="-Wno-maybe-uninitialized"/>
</library>
Copy link
Contributor

Choose a reason for hiding this comment

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

@Dr15Jones , this looks good to me.

@Dr15Jones
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2017

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

@davidlange6
Copy link
Contributor

apologies that I missed the discussion - what warnings are we trying to work around in this PR?
(ok, I see I have some invalid tool warnings to clean up...but thats not the issue)

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 8, 2017

Boost has some "maybe-uninitialized" variables, and since we normally compile with -Werror=maybe-uninitialized those make the compilation fail.
My workaround was to add -Wno-maybe-uninitialized to the BuildFile, and Shahzad asked to split the plugin so that the flag could be applied only to the new service.

@davidlange6
Copy link
Contributor

ok , thanks - hopefully a new version of boost fixes such issues:)

@davidlange6
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2017

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2017

Comparison job queued.

@cmsbuild cmsbuild merged commit 9868df4 into cms-sw:CMSSW_9_0_X Feb 8, 2017
@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2017

@fwyzard fwyzard deleted the service_GraphViz branch February 9, 2017 11:58
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