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

[CMake] Fix a few small issues #17425

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

hageboeck
Copy link
Member

  • Add a few missing labels to unittests
  • Add warnings or errors when ROOT is configured in a way that cannot work (e.g. asking for webdisplay without http)

With http disabled, webdisplay encounters an error during build time.
Here, the error is pushed to cmake configure time.
Previously, no specific component was required, so even though OpenSSL
might be found in the system, the OpenSSL::SSL target might have been
missing.
Although they run python, pyunittests were not labelled as python tests.
When switching off http, and switching webgui on, webgui disables
itself. Instead emitting a helpful warning, a message that can easily
be missed was printed. Since the user might have intended to switch
on the webgui, ROOT should warn before switching it off.
@hageboeck hageboeck self-assigned this Jan 14, 2025
@hageboeck hageboeck requested a review from bellenot as a code owner January 14, 2025 15:24
@@ -871,10 +871,12 @@ if(ROOT_pyroot_FOUND)
analysis/dataframe/df032_RDFFromNumpy.py
math/fit/combinedFit.py
math/fit/multifit.py
math/fit/NumericalMinimization.py
Copy link
Member

Choose a reason for hiding this comment

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

Unrelated to this PR per se. Do you know why we use FILE(GLOB .... here instead of just a hard coded list?

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess the strategy is copied from a different location, and the advantage of GLOB is obviously the support for expressions like:
math/fit/*_numpy.py

Copy link
Member Author

Choose a reason for hiding this comment

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

Here is an example:

legacy/pyroot/*py # legacy ...

I guess people just use globs for all the vetos, so you can switch between list and globs.

Copy link

github-actions bot commented Jan 14, 2025

Test Results

    18 files      18 suites   3d 20h 8m 29s ⏱️
 2 686 tests  2 663 ✅ 23 💤 0 ❌
46 624 runs  46 624 ✅  0 💤 0 ❌

Results for commit 86155b7.

♻️ This comment has been updated with latest results.

… installed.

Instead of checking at test time whether the python packages required by
a tutorial are installed, the check is now done at configure time.
If a required package is not installed, the test is marked as disabled,
so it shows in CTest, but doesn't generate a failure.
This should help the lcg people, who needed to veto these tests manually.
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