[tmva] Import torch before loading libTMVA in TMVA PyTorch tutorials tests
This PR provides some improvements in pymva, especially in PyMethodBase
Starting build on ROOT-performance-centos8-multicore/soversion, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac11/noimt, mac12arm/cxx20, windows10/default
How to customize builds
@phsft-bot build on ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004-clang/default
Starting build on ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004-clang/default
How to customize builds
@phsft-bot build on ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004-clang/default with flags -DCTEST_TEST_EXCLUDE_NONE=On
Starting build on ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004-clang/default with flags -DCTEST_TEST_EXCLUDE_NONE=On
How to customize builds
Build failed on ROOT-ubuntu2204/nortcxxmod. Running on root-ubuntu-2204-1.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build See console output.
Failing tests:
Test Results
10 files 10 suites 2d 2h 33m 40s :stopwatch: 2 494 tests 2 492 :heavy_check_mark: 0 :zzz: 2 :x: 23 868 runs 23 857 :heavy_check_mark: 0 :zzz: 11 :x:
For more details on these failures, see this check.
Results for commit 7d44eaf0.
:recycle: This comment has been updated with latest results.
Build failed on ROOT-ubuntu2004-clang/default. Running on root-ubuntu-2004-3.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build See console output.
Failing tests:
- projectroot.runtutorials.tutorial_tmva_TMVA_CNN_Classification
- projectroot.runtutorials.tutorial_tmva_TMVA_SOFIE_PyTorch
- projectroot.tmva.pymva.test.gtest_tmva_pymva_test_TestRModelParserPyTorch
- projectroot.tmva.sofie.test.gtest_tmva_sofie_test_TestSofieModels
- projectroot.tmva.pymva.test.PyMVA_Torch_Regression
- projectroot.tmva.pymva.test.PyMVA_Torch_Classification
- projectroot.tmva.pymva.test.PyMVA_Torch_Multiclass
Starting build on ROOT-performance-centos8-multicore/soversion, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac11/noimt, mac12arm/cxx20, windows10/default
How to customize builds
@phsft-bot build on ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004-clang/default with flags -DCTEST_TEST_EXCLUDE_NONE=On
Starting build on ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004-clang/default with flags -DCTEST_TEST_EXCLUDE_NONE=On
How to customize builds
Build failed on ROOT-ubuntu2204/nortcxxmod. Running on root-ubuntu-2204-2.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build See console output.
Failing tests:
Build failed on ROOT-ubuntu2004-clang/default. Running on root-ubuntu-2004-3.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build See console output.
Failing tests:
- projectroot.runtutorials.tutorial_tmva_TMVA_CNN_Classification
- projectroot.runtutorials.tutorial_tmva_TMVA_CNN_Classification_py
- projectroot.runtutorials.tutorial_tmva_TMVA_RNN_Classification_py
- projectroot.runtutorials.tutorial_tmva_TMVA_SOFIE_PyTorch
- projectroot.tmva.pymva.test.PyMVA_Torch_Multiclass
- projectroot.tmva.pymva.test.PyMVA_Torch_Regression
- projectroot.tmva.pymva.test.PyMVA_Torch_Classification
- projectroot.tmva.pymva.test.gtest_tmva_pymva_test_TestRModelParserPyTorch
Failures on Ubuntu2004 are due to use std::regex before loading the PyTorch module. See PyTorch issue: https://github.com/pytorch/pytorch/issues/49460#issuecomment-911365091
regex comes from libROOTNtuple (days component) loaded by TMVA dependency on RDataframe.
Unfortunately cannot disable DAOS when running with testing=On.
Try now building without RDataframe
@phsft-bot build on ROOT-ubuntu2004-clang/default with flags -Ddataframe=Off -DCTEST_TEST_EXCLUDE_NONE=On
Starting build on ROOT-ubuntu2004-clang/default with flags -Ddataframe=Off -DCTEST_TEST_EXCLUDE_NONE=On
How to customize builds
Starting build on ROOT-performance-centos8-multicore/soversion, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac11/noimt, mac12arm/cxx20, windows10/default
How to customize builds
@phsft-bot build on ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004-clang/default with flags -DCTEST_TEST_EXCLUDE_NONE=On -Ddataframe=Off
Starting build on ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004-clang/default with flags -DCTEST_TEST_EXCLUDE_NONE=On -Ddataframe=Off
How to customize builds
Build failed on ROOT-ubuntu2204/nortcxxmod. Running on root-ubuntu-2204-2.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build See console output.
Errors:
- [2023-09-25T14:54:19.188Z] 2265/2283 Test #948: tutorial-tmva-TMVA_SOFIE_RSofieReader .............................................................***Failed Error regular expression found in output. Regex=[: error:] 0.24 sec
Failing tests:
- projectroot.runtutorials.tutorial_tmva_pytorch_ClassificationPyTorch_py
- projectroot.runtutorials.tutorial_tmva_pytorch_ApplicationClassificationPyTorch_py
- projectroot.runtutorials.tutorial_tmva_pytorch_RegressionPyTorch_py
- projectroot.runtutorials.tutorial_pyroot_fillrandom_py
- projectroot.runtutorials.tutorial_pyroot_geometry_py
- projectroot.runtutorials.tutorial_pyroot_hsimple_py
- projectroot.runtutorials.tutorial_roofit_rf502_wspacewrite_py
- projectroot.runtutorials.tutorial_tmva_keras_ClassificationKeras_py
- projectroot.runtutorials.tutorial_tmva_keras_RegressionKeras_py
- projectroot.runtutorials.tutorial_.rootlogon_py
And 337 more
Build failed on ROOT-ubuntu2004-clang/default. Running on root-ubuntu-2004-3.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build See console output.
Errors:
- [2023-09-28T09:23:53.179Z] 1805/2265 Test #944: tutorial-tmva-TMVA_SOFIE_RSofieReader .............................................................***Failed Error regular expression found in output. Regex=[: error:] 0.34 sec
Failing tests:
- projectroot.runtutorials.tutorial_tmva_pytorch_ClassificationPyTorch_py
- projectroot.runtutorials.tutorial_tmva_pytorch_ApplicationClassificationPyTorch_py
- projectroot.runtutorials.tutorial_tmva_pytorch_RegressionPyTorch_py
- projectroot.runtutorials.tutorial_pyroot_hsimple_py
- projectroot.runtutorials.tutorial_pyroot_fillrandom_py
- projectroot.runtutorials.tutorial_pyroot_geometry_py
- projectroot.runtutorials.tutorial_roofit_rf502_wspacewrite_py
- projectroot.runtutorials.tutorial_tmva_keras_ClassificationKeras_py
- projectroot.runtutorials.tutorial_tmva_keras_RegressionKeras_py
- projectroot.runtutorials.tutorial_.rootlogon_py
And 335 more
@lmoneta, is this PR still needed? Is it worth to rebase it on master, or should it be closed?
Last time I checked, all the TMVA tutorials with PyTorch were working just fine so it seems this PR is not required anymore :+1: