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

Removed use of '#define private public' for testing #11610

Merged
merged 1 commit into from
Oct 4, 2015

Conversation

Dr15Jones
Copy link
Contributor

Tests had converted all private to public in order to test internals. This no longer works with newer versions of gcc since it messes up linking. Switched to using friend instead.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2015

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

Removed use of '#define private public' for testing

It involves the following packages:

DataFormats/Common
DataFormats/Provenance
FWCore/Framework
FWCore/PluginManager
FWCore/ServiceRegistry
FWCore/Utilities

@cmsbuild, @smuzaffar, @Dr15Jones can you please review it and eventually sign? Thanks.
@makortel, @Martin-Grunewald, @wddgit, @wmtan this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
If you are a L2 or a release manager you can ask for tests by saying 'please test' in the first line of a comment.
@Degano you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@Dr15Jones
Copy link
Contributor Author

please test

@Dr15Jones
Copy link
Contributor Author

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2015

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2015

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2015

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2015

-1
Tested at: 0ef30e6
I found an error when building:

>> Compiling  /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2015-09-30-2300/src/DataFormats/Provenance/test/indexIntoFile_t.cppunit.cc 
>> Compiling  /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2015-09-30-2300/src/DataFormats/Provenance/test/indexIntoFile1_t.cppunit.cc 
>> Compiling  /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2015-09-30-2300/src/DataFormats/Provenance/test/indexIntoFile2_t.cppunit.cc 
In file included from /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2015-09-30-2300/src/DataFormats/Provenance/test/indexIntoFile_t.cppunit.cc:12:0:
/tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2015-09-30-2300/src/DataFormats/Provenance/interface/IndexIntoFile.h: In member function 'void TestIndexIntoFile::check(const edm::IndexIntoFile::IndexIntoFileItr&, edm::IndexIntoFile::EntryType, int, int, int, long long int, long long int)':
/tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2015-09-30-2300/src/DataFormats/Provenance/interface/IndexIntoFile.h:780:19: error: 'edm::IndexIntoFile::EntryType edm::IndexIntoFile::IndexIntoFileItr::type() const' is private
         EntryType type() const { return impl_->type(); }
                   ^
/tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2015-09-30-2300/src/DataFormats/Provenance/test/indexIntoFile_t.cppunit.cc:120:30: error: within this context
                    iter.type() == type &&
                              ^


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

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
3cca4f7
edd325e
423d214
66508ba
ebde143
You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-11610/8563/git-log-recent-commits
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-11610/8563/git-merge-result

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2015

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

Tests had converted all private to public in order to test internals. This no longer works with newer versions of gcc since it messes up linking. Switched to using friend instead.
@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2015

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

@Dr15Jones
Copy link
Contributor Author

please test

@Dr15Jones
Copy link
Contributor Author

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2015

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2015

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2015

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 2, 2015

-1

Tested at: ed2e9d1
I found errors in the following unit tests:

---> test testRecoMETMETProducers had ERRORS

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

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
3cca4f7
edd325e
423d214
66508ba
ebde143
You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-11610/8568/git-log-recent-commits
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-11610/8568/git-merge-result

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 2, 2015

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 2, 2015

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 2, 2015

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 2, 2015

-1

Tested at: ed2e9d1
I found errors in the following unit tests:

---> test testRecoMETMETProducers had ERRORS

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 2, 2015

@davidlt
Copy link
Contributor

davidlt commented Oct 2, 2015

Not sure why test is failing, because first thing RecoMET/METProducers/test/runtests.sh does it to run cmsDriver command to generate the input file.

https://github.com/cms-sw/cmssw/blob/CMSSW_7_6_X/RecoMET/METProducers/test/runtests.sh

@davidlange6
Copy link
Contributor

how do we clean up files after a command finishes? It seems the file is found by one subsequent job but not the next

On Oct 2, 2015, at 1:20 PM, davidlt [email protected] wrote:

Not sure why test is failing, because first thing RecoMET/METProducers/test/runtests.sh does it to run cmsDriver command to generate the input file.

https://github.com/cms-sw/cmssw/blob/CMSSW_7_6_X/RecoMET/METProducers/test/runtests.sh


Reply to this email directly or view it on GitHub.

@davidlt
Copy link
Contributor

davidlt commented Oct 2, 2015

Tried it locally and got different experience. One thing, PR tests does show cmsDriver being executed. Test:

Running script: /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2015-10-01-2300/src/RecoMET/METProducers/test/runtests.sh
# Conditions read from  CMS_CONDITIONS  via FrontierProd 
%MSG-w CondDBESSource:  (NoModuleName) 02-Oct-2015 09:39:50 CEST pre-events

Locally:

Running script: /mnt/build/davidlt/CMSSW_7_6_X_2015-10-01-2300/src/RecoMET/METProducers/test/runtests.sh
GEN,SIM,RECOBEFMIX,DIGI:pdigi_valid,L1,L1Reco,RECO,ENDJOB
We have determined that this is simulation (if not, rerun cmsDriver.py with --data)

Which failed for me:

ImportError: No module named PFRecoTauDiscriminationAgainstElectron_cfi

I don't see cmsDriver being invoked in IBs logs also:
https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/slc6_amd64_gcc493/CMSSW_7_6_X_2015-10-01-2300/unitTestLogs/RecoMET/METProducers

Ah, it's a patch IB so it doesn't show the actual issues.

It's failing in the normal IB also (you just need to find a full IB to see the logs with errors): https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/slc6_amd64_gcc493/CMSSW_7_6_X_2015-10-01-1100/unitTestLogs/RecoMET/METProducers

@davidlt
Copy link
Contributor

davidlt commented Oct 2, 2015

Recompiled again and testRecoMETMETProducers worked fine locally.

@davidlange6
Copy link
Contributor

@davidlt - i'll merge and we can see what happens...

davidlange6 added a commit that referenced this pull request Oct 4, 2015
Removed use of '#define private public' for testing
@davidlange6 davidlange6 merged commit 8f18e30 into cms-sw:CMSSW_7_6_X Oct 4, 2015
@Dr15Jones Dr15Jones deleted the removePrivateToPublic branch October 14, 2015 07:22
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.

4 participants