Skip to content

Release Candidate v6.15.0#1273

Open
ruck314 wants to merge 10 commits into
mainfrom
pre-release
Open

Release Candidate v6.15.0#1273
ruck314 wants to merge 10 commits into
mainfrom
pre-release

Conversation

slacrherbst and others added 10 commits June 19, 2026 11:02
…PREFIX

Match CMakeLists.txt by setting both BOOST_ROOT and Boost_ROOT so CMP0144
upper-case and mixed-case <PACKAGENAME>_ROOT lookups resolve identically
in the downstream RogueConfig.cmake.in.
Use ${Python3_EXECUTABLE} instead of hard-coded python3 so the numpy
include path comes from the same interpreter find_package(Python3) selected,
matching CMakeLists.txt. Avoids picking up a different python3 on PATH in
multi-python / conda environments.
Sync RogueConfig.cmake.in dependency discovery with CMakeLists.txt
Frames are commonly sent from pure-C++ worker threads, so a Master::sendFrame()
dispatch can reach an attached Slave::acceptFrame() with no GIL held -- Rogue
neither acquires nor releases the GIL around the downstream dispatch. A
pure-C++ Slave subclass needs no action, but one that constructs, manipulates,
or destroys Python-wrapped objects (Boost.Python / pybind11 / NumPy) MUST hold
the GIL while doing so (e.g. rogue::ScopedGil). Touching Python objects without
the GIL races CPython's allocator/GC and can segfault in PyObject_GC_Del during
teardown.

Document this on both Slave::acceptFrame() and Master::sendFrame(), noting that
the base Slave::acceptFrame() releases the GIL in its own body and that Python
_acceptFrame() overrides always run under ScopedGil.
The handler formatter used %(msg)s, which renders record.msg -- the raw format
string -- so printf-style logging args were never substituted and records such
as log.info("Making device %s", name) were emitted as a literal "Making device
%s". Use %(message)s (record.getMessage()) so the args are applied.

Add a regression test that formats a record through the RootLogHandler that Root
attaches to the global pyrogue logger, asserts the formatter is explicitly
configured, and restores the logger's handlers for isolation -- so it fails if
Root regresses to %(msg)s rather than passing silently on logging's default
formatter.
Fix logging arg interpolation; document stream GIL contract
@ruck314 ruck314 marked this pull request as ready for review June 30, 2026 16:37
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