Skip to content

Some FORM fixes#141

Merged
knoepfel merged 1 commit intoFramework-R-D:mainfrom
knoepfel:form-fixes
Dec 2, 2025
Merged

Some FORM fixes#141
knoepfel merged 1 commit intoFramework-R-D:mainfrom
knoepfel:form-fixes

Conversation

@knoepfel
Copy link
Member

@knoepfel knoepfel commented Dec 2, 2025

This PR:

  • Links the ROOT::RIO library during the dictionary-generation step
  • Uses snprintf instead of sprintf when filling a string buffer (per apple-clang warning)

@codecov
Copy link

codecov bot commented Dec 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@           Coverage Diff           @@
##             main     #141   +/-   ##
=======================================
  Coverage   80.31%   80.31%           
=======================================
  Files         115      115           
  Lines        1910     1910           
  Branches      302      302           
=======================================
  Hits         1534     1534           
  Misses        247      247           
  Partials      129      129           
Flag Coverage Δ
unittests 80.31% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4e67f8c...0814aa7. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@aolivier23 aolivier23 left a comment

Choose a reason for hiding this comment

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

Thank you Kyle, looks good to me.

@knoepfel knoepfel closed this Dec 2, 2025
@knoepfel knoepfel reopened this Dec 2, 2025
@knoepfel knoepfel merged commit 6838973 into Framework-R-D:main Dec 2, 2025
51 checks passed
@knoepfel knoepfel deleted the form-fixes branch December 2, 2025 17:23
) # REFLEX_GENERATE_DICTIONARY doesn't work trivially without making a shared
# library
target_link_libraries(${FORM_DATA_PROD_LIB_NAME})
target_link_libraries(${FORM_DATA_PROD_LIB_NAME} ROOT::RIO)
Copy link
Contributor

Choose a reason for hiding this comment

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

I was wondering whether the ROOT::RIO addition could be hidden behind a if(FORM_USE_ROOT_STORAGE)

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, Peter. Just merged this PR. I made the assumption that form_test_data_products corresponded to the dictionary library. I think I can do what you suggest...I'll create another PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's hidden in the next level up here:

if(FORM_USE_ROOT_STORAGE)

Copy link
Contributor

Choose a reason for hiding this comment

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

Even if I'm right, we might still want finer-grained control of when FORM uses ROOT. Right now, I think our tests rely on having a ROOT back end.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, here's a fix that at least keeps the library with track_start from depending explicitly on ROOT unless there's a need. I understand that this code will unconditionally execute when FORM_USE_ROOT_STORAGE is true, but maybe that PR makes refactoring easier later on?

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.

3 participants