Skip to content

[6.42] [Python] Make the regression test for #23728 work effectively - #23925

Merged
guitargeek merged 1 commit into
root-project:v6-42-00-patchesfrom
root-project-bot:BP_6.42_pull_23894
Oct 31, 2026
Merged

guitargeek merged 1 commit into
root-project:v6-42-00-patchesfrom
root-project-bot:BP_6.42_pull_23894

Conversation

@root-project-bot

Copy link
Copy Markdown

Backport of #23894, requested by @guitargeek.

…vely

The test left the destructor of the branch class uncompiled until exit,
so that cling had to JIT-compile it from TROOT::EndOfProcessCleanups().
On Windows, that cleanup runs from libCore's DLL_PROCESS_DETACH, after
libCling's statics have already been torn down, so compiling anything
there crashes with or without the fix (the no-fix run in root-project#23850 fails
identically). Pre-compile the exact destructor instead: the exit-time
call is then a pure cache lookup, which is the regular exit path on
Windows. The bug was in that lookup on the destroyed function-local
static, so the test still fails without the fix.

Write the branch through the overload taking the class name and the
address. The templated Branch() that the pythonization on master calls
refuses collections without a compiled CollectionProxy, which silently
left the tree without the branch and the test without its purpose.

Also give the child process a timeout: without the fix, ROOT's crash
handler can hang instead of terminating the process.

Assisted-by: claude-code:claude-fable-5-1
(cherry picked from commit 98526e5)
@github-actions

Copy link
Copy Markdown

Test Results

    24 files      24 suites   3d 22h 18m 1s ⏱️
 3 904 tests  3 903 ✅ 0 💤 1 ❌
83 594 runs  83 593 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit 0938239.

@guitargeek

Copy link
Copy Markdown
Contributor

The alma8 failures seems unrelated, although I have never seen that particular failure before so it deserved attention in a follow-up:

1378/3818 Test  #478: TMVA-DNN-Optimization-Cpu .........................................................................***Failed    2.26 sec
Testing optimization: (single precision) for Cpu
Stochastic Gradient Descent:  Before Training: Mean Absolute Error = 0.933004, No of Epochs = 200, total Time(sec) 0.451571, After Training: Mean Absolute error = 4.59782e-07
Stochastic Gradient Descent with momentum:  Before Training: Mean Absolute Error = 0.89011, No of Epochs = 200, total Time(sec) 0.452658, After Training: Mean Absolute error = 1.2619e-07
Adam Optimizer:  Before Training: Mean Absolute Error = 1.07146, No of Epochs = 200, total Time(sec) 0.495319, After Training: Mean Absolute error = 3.18713e-07
Adagrad Optimizer:  Before Training: Mean Absolute Error = 0.970562, No of Epochs = 200, total Time(sec) 0.496145, After Training: Mean Absolute error = 1.51285e-07
RMSProp Optimizer without momentum:  Before Training: Mean Absolute Error = 1.02591, No of Epochs = 121, total Time(sec) 0.316793, After Training: Mean Absolute error = 0.104495
---->   Error: RMSPROP test failed ! 
CMake Error at /github/home/ROOT-CI/src/cmake/modules/RootTestDriver.cmake:265 (message):
  error code: 1

@guitargeek
guitargeek merged commit 9ef3ec2 into root-project:v6-42-00-patches Oct 31, 2026
40 of 44 checks passed
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