Skip to content

[roottest] Use heap-allocated TFile and TTree in test - #23147

Closed
vepadulano wants to merge 1 commit into
root-project:masterfrom
vepadulano:cpp11Containers-unorderedMap-heap-tfile-ttree
Closed

vepadulano wants to merge 1 commit into
root-project:masterfrom
vepadulano:cpp11Containers-unorderedMap-heap-tfile-ttree

Conversation

@vepadulano

Copy link
Copy Markdown
Member

Multiple times in the past stack-allocated TFile/TTree have produced random test failures and/or timeouts. Adopt the same strategy done elsewhere, i.e. rely on heap-allocated TFile and TTree.

This is related to #23021 . While I still believe the googletest-based test would be better to have in the longer term, with this PR we can gauge whether the intermittent CI failures are actually do to the stack-allocated TFile/TTree as it happened in the past.

Multiple times in the past stack-allocated TFile/TTree have produced random test
failures and/or timeouts. Adopt the same strategy done elsewhere, i.e. rely on
heap-allocated TFile and TTree.
@vepadulano
vepadulano requested a review from pcanal August 25, 2026 14:40
@vepadulano vepadulano self-assigned this Aug 25, 2026
@vepadulano
vepadulano requested a review from dpiparo as a code owner August 25, 2026 14:40
@github-actions

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 15h 18m 1s ⏱️
 3 858 tests  3 856 ✅ 0 💤 2 ❌
79 482 runs  79 479 ✅ 1 💤 2 ❌

For more details on these failures, see this check.

Results for commit 1556c85.

t.Branch("vecHistoCont", &vecHistoCont,16000,0);
t.Branch("contHistoVec_split", &contHistoVec,16000,99);
t.Branch("contHistoVec", &contHistoVec,16000,0);
auto f = std::make_unique<TFile>(binFilename.c_str(), "UPDATE");

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.

Unfortunately the test still failed despite this change :(

@pcanal pcanal 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.

I have no particular objection to this update (beside that it does not seems to help the test).

@vepadulano

Copy link
Copy Markdown
Member Author

Since this test is not failing only because of eventual problems with stack-allocated TFile/TTree, I will go ahead and close the PR. We can continue the investigation/discussion at #23021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants