Skip to content

[RF] Avoid using forward-declared class as default template arguments#8997

Merged
guitargeek merged 1 commit into
root-project:masterfrom
guitargeek:patrick_pr_6_fixup_1
Sep 15, 2021
Merged

[RF] Avoid using forward-declared class as default template arguments#8997
guitargeek merged 1 commit into
root-project:masterfrom
guitargeek:patrick_pr_6_fixup_1

Conversation

@guitargeek

@guitargeek guitargeek commented Sep 15, 2021

Copy link
Copy Markdown
Contributor

Avoid using forward-declared class as default template arguments in
RooMinimizer and MinuitFcnGrad.

This is the fix for the following test failures in the nightlies:

    projectroot.roottest.python.cling.roottest_python_cling_class
    projectroot.roottest.python.cling.roottest_python_cling_api
    projectroot.roottest.root.meta.tclass.regression.roottest_root_meta_tclass_regression_execNormalizationInfPy
    projectroot.roottest.python.cling.roottest_python_cling_cling
    projectroot.roottest.root.meta.enumPayloadManipulation.roottest_root_meta_enumPayloadManipulation_checkEnumFwdDecl

For sure we know that these failures got introduced by
#8700.

The failures that we see since root-project#8700, here are the comments where the bot reported them first:
First Ubuntu 16 fail:
root-project#8700 (comment)

First Windows 10 fail:
root-project#8700 (comment)

I narrowed down the origin of this regression to a small part of the
diff of the full PR. The bad guy is some change in one of these files:

  • roofit/roofitcore/inc/RooMinimizer.h
  • roofit/roofitcore/test/CMakeLists.txt
  • roofit/roofitcore/test/TestStatistics/testLikelihoodSerial.cxx

What was fishy in RooMinimizer.h was the usage of a forward-declared
class as default template argument. The default template arguments are
commented out now, because these will only become relevant in later
developments by @egpbos.

@guitargeek guitargeek force-pushed the patrick_pr_6_fixup_1 branch 2 times, most recently from 1b3652e to fc902bf Compare September 15, 2021 01:11
@guitargeek guitargeek changed the title [RF] Fix cling-related test failures on Windows and Ubuntu 16 [RF] Remove RooSentinel::activate() calls in RooMinimizer/RooMinuit Sep 15, 2021
@guitargeek guitargeek closed this Sep 15, 2021
@guitargeek guitargeek changed the title [RF] Remove RooSentinel::activate() calls in RooMinimizer/RooMinuit [RF] Attempt to fix test failures in nightlies Sep 15, 2021
@guitargeek guitargeek reopened this Sep 15, 2021
Avoid using forward-declared class as default template arguments in
`RooMinimizer` and `MinuitFcnGrad`.

This is the fix for the following test failures in the nightlies:

```
    projectroot.roottest.python.cling.roottest_python_cling_class
    projectroot.roottest.python.cling.roottest_python_cling_api
    projectroot.roottest.root.meta.tclass.regression.roottest_root_meta_tclass_regression_execNormalizationInfPy
    projectroot.roottest.python.cling.roottest_python_cling_cling
    projectroot.roottest.root.meta.enumPayloadManipulation.roottest_root_meta_enumPayloadManipulation_checkEnumFwdDecl
```

For sure we know that these failures got introduced by
root-project#8700.

The failures that we see since [root-project#8700](root-project#8700), here are the comments where the bot reported them first:
First Ubuntu 16 fail:
[root-project#8700 (comment)](root-project#8700 (comment))

First Windows 10 fail:
[root-project#8700 (comment)](root-project#8700 (comment))

I narrowed down the origin of this regression to a small part of the
diff of the full PR. The bad guy is some change in one of these files:

  * roofit/roofitcore/inc/RooMinimizer.h
  * roofit/roofitcore/test/CMakeLists.txt
  * roofit/roofitcore/test/TestStatistics/testLikelihoodSerial.cxx

What was fishy in `RooMinimizer.h` was the usage of a forward-declared
class as default template argument. The default template arguments are
commented out now, because these will only become relevant in later
developments by @egpbos.
@phsft-bot

Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

@guitargeek guitargeek changed the title [RF] Attempt to fix test failures in nightlies [RF] Avoid using forward-declared class as default template arguments Sep 15, 2021
@root-project root-project deleted a comment from phsft-bot Sep 15, 2021
@root-project root-project deleted a comment from phsft-bot Sep 15, 2021
@root-project root-project deleted a comment from phsft-bot Sep 15, 2021
@root-project root-project deleted a comment from phsft-bot Sep 15, 2021
@root-project root-project deleted a comment from phsft-bot Sep 15, 2021
@root-project root-project deleted a comment from phsft-bot Sep 15, 2021
@root-project root-project deleted a comment from phsft-bot Sep 15, 2021
@root-project root-project deleted a comment from phsft-bot Sep 15, 2021

@lmoneta lmoneta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@phsft-bot

Copy link
Copy Markdown

Build failed on mac11.0/cxx17.
Running on macphsft20.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot

Copy link
Copy Markdown

Build failed on windows10/cxx14.
Running on null:C:\build\workspace\root-pullrequests-build
See console output.

Errors:

  • [2021-09-15T16:40:24.620Z] LINK : fatal error LNK1104: cannot open file 'C:\build\workspace\root-pullrequests-build\build\bin\libCore.dll' [C:\build\workspace\root-pullrequests-build\build\core\Core.vcxproj]

@phsft-bot

Copy link
Copy Markdown

Build failed on ROOT-debian10-i386/cxx14.
Running on pcepsft10.dyndns.cern.ch:/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@guitargeek guitargeek merged commit 96944d3 into root-project:master Sep 15, 2021
@guitargeek guitargeek deleted the patrick_pr_6_fixup_1 branch September 15, 2021 21:27
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.

3 participants