Skip to content

[Minuit2] Fix external index usage in analytical Hessian#20936

Merged
guitargeek merged 1 commit intoroot-project:masterfrom
guitargeek:hessian_external_indexing_bug
Jan 19, 2026
Merged

[Minuit2] Fix external index usage in analytical Hessian#20936
guitargeek merged 1 commit intoroot-project:masterfrom
guitargeek:hessian_external_indexing_bug

Conversation

@guitargeek
Copy link
Contributor

@guitargeek guitargeek commented Jan 18, 2026

Fix external index usage in analytical Hessian and also add a unit test to cover this former bug.

This problem exists since the introduction of external Hessians to Minuit2 in 888a767 in the ROOT 6.28 development cycle.

This bug was discovered while investigating #20913.

Closes #20954.

@github-actions
Copy link

Test Results

    22 files      22 suites   3d 10h 50m 44s ⏱️
 3 813 tests  3 813 ✅ 0 💤 0 ❌
76 744 runs  76 744 ✅ 0 💤 0 ❌

Results for commit 8f29655.

Fix external index usage in analytical Hessian and also add a unit test
to cover this former bug.

This problem exists since the introduction of external Hessians to
Minuit2 in 888a767 in the ROOT 6.28 development cycle.

This bug was discovered while investigating root-project#20913.
Copy link
Member

@hageboeck hageboeck left a comment

Choose a reason for hiding this comment

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

I would suggest disentangling the fix and the test into two commits. It will improve a bit the review experience.

@guitargeek
Copy link
Contributor Author

Ah, okay I get now what you mean! In another PR you made a similar comment, and there I thought you meant "disentangle fix+test from unrelated changes". Sorry for the misunderstanding.

Just to be clear for the future: you prefer test commit first or fix commit first? fix first, so that tests always pass, right?

Copy link
Member

@hageboeck hageboeck left a comment

Choose a reason for hiding this comment

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

LGTM

@hageboeck
Copy link
Member

Just to be clear for the future: you prefer test commit first or fix commit first? fix first, so that tests always pass, right?

Yes, precisely! And if the message says "Add test for xxx", you already know what to expect in the review. By splitting, you could even revert the fix and replace with a new one, and you would expect the test to stay green.

@guitargeek guitargeek merged commit 84cca5e into root-project:master Jan 19, 2026
26 of 29 checks passed
@guitargeek
Copy link
Contributor Author

Damn, sorry it was not split up in two commits in the end! I have done this in my local branch, and realized too late that the PR branch was not synced 🙁 Sorry, I really didn't mean to ignore your request! I juggled too many open PRs and lost the overview....

@AdrianDBS
Copy link

Will this fix be backported to 6.36?

@hageboeck
Copy link
Member

Damn, sorry it was not split up in two commits in the end! I have done this in my local branch, and realized too late that the PR branch was not synced 🙁 Sorry, I really didn't mean to ignore your request! I juggled too many open PRs and lost the overview....

No problem. 🙂

@guitargeek guitargeek deleted the hessian_external_indexing_bug branch January 20, 2026 13:50
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.

[Minuit2] Analytical Hessian indexing mismatch

3 participants