Skip to content

DO NOT MERGE - add source venv for vm macos test#1

Open
Ni-Langguth wants to merge 5 commits into
masterfrom
Experimental-source-venv-macos-vm
Open

DO NOT MERGE - add source venv for vm macos test#1
Ni-Langguth wants to merge 5 commits into
masterfrom
Experimental-source-venv-macos-vm

Conversation

@Ni-Langguth

Copy link
Copy Markdown
Owner

This Pull request:

Changes or fixes:

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

This PR fixes #

@github-actions

github-actions Bot commented Sep 10, 2025

Copy link
Copy Markdown

Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit 5646296.

♻️ This comment has been updated with latest results.

hageboeck and others added 5 commits September 23, 2025 13:04
During the merge of histograms with automatic axis ranges, the axis
range was computed when the fill buffer of the first histogram is full.
In this case, this was about halfway during the merge.
The resulting histogram was compared to one whose axis range was
computed on the full statistics, leading to slightly different axes.
By chance, the differences were within the tolerance, but in the commit
to follow, the axis range will be extended slightly to make the maximum
of a distribution part of the valid range. This will make the test fail.

This commit stabilises the test by extending the fill buffer of the first
histogram like for all the others in the test. In this way, all axis ranges
are computed on the same data.
- When asking THLimitsFinder to optimise axis limits, ask for a
  maximum slightly right of the actual maximum of the distribution.
  Otherwise, since the maximum may coincide with the maximum of the
  axis range, values may fall into the overflow.
- Use std::min / std::max to ensure that OptimizeLimits doesn't truncate
  any values.
- For symmetry reasons, also extend the range slightly to lower values.

This fixes the problem observed in
https://root-forum.cern.ch/t/bug-or-feature-in-ttree-draw/62862

Co-authored-by: ferdymercury <ferdymercury@users.noreply.github.com>
THLimitFinder tries to trim empty bins close to the end of an axis range,
but sometimes, the min/max was trimmed as well, so not all data would be
visible in the histogram.

Here, the case from the following post is tested:
https://root-forum.cern.ch/t/bug-or-feature-in-ttree-draw/

Co-authored-by: ferdymercury <ferdymercury@users.noreply.github.com>
Co-authored-by: Jonas Rembser <jonas.rembser@cern.ch>
The C++ version flag should be needed on all linux/mac, but it was
missing e.g. for RISC-V. To remedy that, the flags is now set by
default, and only overridden when needed.

See also:
https://root-forum.cern.ch/t/no-auxcflags-set-in-root-config-when-building-for-riscv64-6-36-02/64163
…o root-ci in macOS CI to acommodate switch to virtual macOS CI machines
@Ni-Langguth
Ni-Langguth force-pushed the Experimental-source-venv-macos-vm branch from 1931140 to 5646296 Compare September 23, 2025 11:47
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