Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ntuple] Ensure type name given by RField<T> is renormalized #17986

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vepadulano
Copy link
Member

To avoid inconsistencies between the full type name of a custom class reported by the RNTuple IO and the type name reported by ROOT meta. The commit adds a unittest. Previously, the test would fail with exceptions such as:

321: unknown file: Failure
321: C++ exception with description "type mismatch for field f2: DataVector<std::int32_t,std::vector<CustomStruct>> vs. DataVector<int,vector<CustomStruct> >
321: At:
321:   void ROOT::Experimental::REntry::EnsureMatchingType(RFieldToken) const [with T = DataVector<int, std::vector<CustomStruct> >]
321: " thrown in the test body.

@vepadulano vepadulano requested a review from hahnjo March 13, 2025 09:23
@vepadulano vepadulano self-assigned this Mar 13, 2025
@vepadulano vepadulano requested a review from jblomer as a code owner March 13, 2025 09:23
Copy link

github-actions bot commented Mar 13, 2025

Test Results

    19 files      19 suites   5d 5h 3m 29s ⏱️
 2 725 tests  2 717 ✅ 0 💤 8 ❌
50 177 runs  50 169 ✅ 0 💤 8 ❌

For more details on these failures, see this check.

Results for commit 209a806.

♻️ This comment has been updated with latest results.

Copy link
Member

@hahnjo hahnjo left a comment

Choose a reason for hiding this comment

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

I believe we need the same treatment for RField inheriting from RProxiedCollectionField

@vepadulano vepadulano force-pushed the rntuple-renormalize-demangled-name branch from 950713d to f6566b3 Compare March 19, 2025 15:38
@vepadulano vepadulano requested review from hahnjo and pcanal March 20, 2025 09:24
Copy link
Member

@hahnjo hahnjo left a comment

Choose a reason for hiding this comment

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

LG from my side

To avoid inconsistencies between the full type name of a custom class reported
by the RNTuple IO and the type name reported by ROOT meta. The commit adds a
unittest. Previously, the test would fail with exceptions such as:

```
321: unknown file: Failure
321: C++ exception with description "type mismatch for field f2: DataVector<std::int32_t,std::vector<CustomStruct>> vs. DataVector<int,vector<CustomStruct> >
321: At:
321:   void ROOT::Experimental::REntry::EnsureMatchingType(RFieldToken) const [with T = DataVector<int, std::vector<CustomStruct> >]
321: " thrown in the test body.
```

Co-authored-by: Jonas Hahnfeld <[email protected]>
@vepadulano vepadulano force-pushed the rntuple-renormalize-demangled-name branch from f6566b3 to 209a806 Compare March 21, 2025 07: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.

3 participants