Skip to content

Object auto registration: Next steps - #22817

Merged
hageboeck merged 5 commits into
root-project:masterfrom
hageboeck:AutoReg_GlobalDefault
Aug 5, 2026
Merged

Object auto registration: Next steps#22817
hageboeck merged 5 commits into
root-project:masterfrom
hageboeck:AutoReg_GlobalDefault

Conversation

@hageboeck

@hageboeck hageboeck commented Jul 15, 2026

Copy link
Copy Markdown
Member

Work on disabling auto registration of TEventList / TEntryList.

By now, ROOT has already been prepared to work with auto-registration on and off for TEntryList/TEventList, so what's left is to disable their auto-registration and explain what changed. This is done here.

Preparatory work

Typically, when working towards disabling the auto-registration of certain classes, there is an opportunity to clean up code and fix tangentially related issues that are encountered on the way. Like for the last auto-registration PR (#18083), these will be split off into smaller chunks that are going to be merged first:

Note that to uncover potential auto-registration problems, ROOT is in ROOT 7 mode while this PR is in draft mode. The commit that globally enables ROOT 7 mode will be removed before merging the actual work for TEventList / TEntryList.

TODOs:

  • Remove the commit enabling ROOT 7 mode globally

@hageboeck hageboeck self-assigned this Jul 15, 2026
@github-actions

github-actions Bot commented Jul 15, 2026

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 14h 7m 19s ⏱️
 3 853 tests  3 853 ✅ 0 💤 0 ❌
79 408 runs  79 408 ✅ 0 💤 0 ❌

Results for commit a733fcf.

♻️ This comment has been updated with latest results.

Comment thread .github/workflows/root-ci.yml Outdated
@hageboeck
hageboeck marked this pull request as ready for review July 29, 2026 11:40
@hageboeck
hageboeck force-pushed the AutoReg_GlobalDefault branch from 2b3620f to fe3ae12 Compare July 29, 2026 11:46
@hageboeck
hageboeck force-pushed the AutoReg_GlobalDefault branch from fe3ae12 to 4830ae7 Compare August 3, 2026 11:11
@hageboeck
hageboeck force-pushed the AutoReg_GlobalDefault branch from 4830ae7 to 62e7c38 Compare August 4, 2026 07:09

@guitargeek guitargeek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

Nothing controversial to see here. Thanks for the work!

TEntryList and its derived classes will from here on only register
themselves to gDirectory when the thread-local auto-registration is
enabled.
Explain that defaults can be set using .rootrc or using environment
variables, and how to do this from within the program.
Clang-format enforces lines breaks, even if the lines weren't touched in
git-clang-format mode.
@hageboeck
hageboeck force-pushed the AutoReg_GlobalDefault branch from 62e7c38 to a733fcf Compare August 4, 2026 16:05
@hageboeck
hageboeck merged commit dfe7f80 into root-project:master Aug 5, 2026
34 checks passed
@hageboeck
hageboeck deleted the AutoReg_GlobalDefault branch August 5, 2026 08:18
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