v24.0 #1467
Closed
Emantor
announced in
Announcements
v24.0
#1467
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
New Features in 24.0
--log-(cli|file)-(level|format)
command line arguments and their corresponding pytest.ini configure options
are now respected (making it possible to have different format and logging
levels in the log file than then console).
CONSOLE
has been added between the defaultINFO
andDEBUG
levels. This level will show all reads and writes madeto the serial console during testing.
container images.
the path can't be found. This makes specification of the qemu binary easier to
use.
bindings
base class has been extended, allowing the user to retrieveall resources used by a driver.
UBootStrategy
was extended with aforce()
function.QEMUDriver
has a new get_qemu_base_args() function which can be used toextract the arguments passed to qemu.
SSHDriver
has gained support to forward unix sockets.--fqdn
argument to set the hostname to thefully qualified domain name instead of the hostname.
QEMUDriver
now has an additionaldisk_opts
property which can beused to pass additional options for the disk directly to QEMU
Driver
base class and manydrivers were changed to use this logger.
poe_mib
backend allows switching of power over Ethernet-capableports on switches that use the corresponding SNMP MIB.
RawNetworkInterfaceDriver
allows the replay and recording of networkpackets on ethernet interfaces.
IMXUSBLoader
resource.write-files
subcommand to copy files onto massstorage devices.
NetworkPowerPort
supports a new backendubus
. It controls PoEswitches running OpenWrt using the ubus interface.
ruff <https://github.com/astral-sh/ruff>
_.setuptools_scm
is now used to generate a version file.overwritten.
Bug fixes in 24.0
pyserial-labgrid package. This fixes installation with newer versions
of pip.
module is not available.
github as an egg is no longer properly supported.
labgrid-client.
environment, for more information please consult the
current documentation <https://labgrid.readthedocs.io/en/latest/getting_started.html#coordinator>
_.ERROR, INFO and similar log notifiers.
SSHDriver
cleanup has been fixed.labgrid-client monitor
command now outputs the full resource identifier.console when logging is not enabled.
UnboundLocalError
inside the atomic_replace code which is used inside thecoordinator was fixed.
QemuDriver
correctly handles the different command lines for virglenablement.
power driver.
uses the pytest config stash.
ShellDriver
was fixed to set the correct status attribute.overwritten by the ResourceManager to assign the correct interface name.
test run.
local host.
the marker.
NFSProviderDriver
class was fixed. Documentation was alreadycorrect, however the classname contained an additional P.
--loop
argument for labgrid-client console was fixed.ShellDriver
can now be an empty string.bigger labs where the payload size can be bigger than 1 megabyte.
SSHDriver
redirects/dev/null
to stdin of commands run via SSH.This prevents unexpected input, especially when using the
ManualPowerDriver
or a REPL.ser2net
version check for YAML configurations in the exporter wasfixed.
ser2net
TCP connections for versions >=4.2.0.SerialPortDigitalOutputDriver
wasfixed.
SSHDriver
keepalive is now correctly stopped when using existingconnections.
outlets.
ExternalConsoleDriver
now correctly sets the bufsize to zero toprevent buffering.
Breaking changes in 24.0
Support for Python 3.7 was dropped.
Support for the legacy ticket authentication was dropped: If the coordinator
logs ModuleNotFoundError on startup, switch the crossbar config to anonymous
authentication (see
.crossbar/config-anonymous.yaml
for an example).The Debian package (
debian/
) no longer contains crossbar. Use thecoordinator container <https://hub.docker.com/r/labgrid/coordinator>
_ orinstall it into a separate local venv as described in the
documentation <https://labgrid.readthedocs.io/en/latest/getting_started.html#coordinator>
_.If you see
WARNING: Ticket authentication is deprecated. Please update your coordinator.
on the client when running an updated coordinator, yourcoordinator configuration may set
ticket
instead ofanonymous
auth.The
StepReporter
API has been changed. To start step reporting, you mustnow call
StepReporter.start()
instead ofStepReporter()
, and set uplogging via
labgrid.logging.basicConfig()
.Logging output when running pytest is no longer sent to stderr by default,
since this is both chatty and also unnecessary with the improved logging
flexibility. It it recommended to use the
--log-cli-level=INFO
commandline option, or
log_cli_level = INFO
option in pytest.ini, but if youwant to restore the old behavior add the following to your
conftest.py
file (note that doing so may affect the ability to use some more advanced
logging features)::
def pytest_configure(config):
import logging
import sys
The interpretation of the
-v
command line argument to pytest has changedslightly.
-vv
is now an alias for--log-cli-level=INFO
(effectivelyunchanged),
-vvv
is an alias for--log-cli-level=CONSOLE
, and-vvvv
is an alias for--log-cli-level=DEBUG
.The
BareboxDriver
now remembers the log level, sets it to0
on initialactivation/reset and recovers it on
boot()
. Duringrun()
/run_check()
the initially detected log level is used.The
NFSProviderDriver
now returns mount and path information onstage()
instead of the path to be used on the target. The previous return value did
not fit the NFS mount use case.
The
NFSProvider
andRemoteNFSProvider
resources no longer expect theinternal
andexternal
arguments as they do not fit the NFS mount usecase.
Known issues in 24.0
This discussion was created from the release v24.0.
Beta Was this translation helpful? Give feedback.
All reactions