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 circular dependency between FWCore/Framework and FWCore/ParameterSet #18117

Merged
merged 3 commits into from Mar 30, 2017

Conversation

Dr15Jones
Copy link
Contributor

Removed the unnecessary dependency of FWCore/ParameterSet on FWCore/Framework. No functionality was lost due to this change.

A circular dependency had been introduced between the packages FWCore/Framework and FWCore/ParameterSet. The header files causing the cycle turned out not to be needed after switching the algorithm used to determine the type of base class of a module.
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @Dr15Jones (Chris Jones) for master.

It involves the following packages:

FWCore/Framework
FWCore/MessageService
FWCore/Modules
FWCore/ParameterSet
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.
@Muzaffar, @davidlange6, @smuzaffar you are the release manager for this.

cms-bot commands are listed here #13028

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 29, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/18775/console Started: 2017/03/29 11:00

@Dr15Jones
Copy link
Contributor Author

NOTE: it is likely that this will cause problems with other code in CMSSW because that other code was getting needed header files implicitly rather than explicitly. I will fix those problems in this pull request once the testing finds them.

@cmsbuild
Copy link
Contributor

-1

Tested at: 39a067c

You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-18117/18775/summary.html

I found follow errors while testing this PR

Failed tests: Build

  • Build:

I found an error when building:

>> Compiling edm plugin /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_1_X_2017-03-28-2300/src/RecoJets/JetProducers/plugins/SubJetProducer.cc 
>> Compiling edm plugin /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_1_X_2017-03-28-2300/src/RecoJets/JetProducers/plugins/BasicToPFJet.cc 
>> Compiling edm plugin /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_1_X_2017-03-28-2300/src/RecoJets/JetProducers/plugins/VirtualJetProducer.cc 
>> Compiling edm plugin /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_1_X_2017-03-28-2300/src/RecoJets/JetProducers/plugins/CompoundJetProducer.cc 
/build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_1_X_2017-03-28-2300/src/RecoJets/JetProducers/plugins/BasicToPFJet.cc: In member function 'virtual void BasicToPFJet::produce(edm::Event&, const edm::EventSetup&)':
/build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_1_X_2017-03-28-2300/src/RecoJets/JetProducers/plugins/BasicToPFJet.cc:53:8: error: invalid use of incomplete type 'class edm::Event'
   Event.getByToken(inputToken_, BasicJetColl);
        ^
In file included from /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_1_X_2017-03-28-2300/src/FWCore/Framework/interface/Principal.h:27:0,
                 from /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_1_X_2017-03-28-2300/src/FWCore/Framework/interface/EventPrincipal.h:23,
                 from /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_1_X_2017-03-28-2300/src/FWCore/Framework/interface/OccurrenceTraits.h:13,


@cmsbuild
Copy link
Contributor

Comparison not run due to Build errors (RelVals and Igprof tests were also skipped)

@ghellwig
Copy link

+1

@Dr15Jones
Copy link
Contributor Author

+1

@kpedro88
Copy link
Contributor

+1

@civanch
Copy link
Contributor

civanch commented Mar 29, 2017

+1

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

@perrotta
Copy link
Contributor

+1
Reco signature needed because of addition of missing includes

@Dr15Jones
Copy link
Contributor Author

@davidlange6 all the non-core labels are only there because I had to add missing header files.

@davidlange6 davidlange6 merged commit 59b1671 into cms-sw:master Mar 30, 2017
@Dr15Jones Dr15Jones deleted the fixCircularFWCoreDependency branch March 30, 2017 07:29
mmusich added a commit to mmusich/cmssw that referenced this pull request Mar 31, 2017
davidlange6 added a commit that referenced this pull request Mar 31, 2017
fix include for edm::one::EDAnalyzer as a result of #18117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment