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
Uh oh!
There was an error while loading. Please reload this page.
-
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).
CONSOLEhas been added between the defaultINFOandDEBUGlevels. 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.
bindingsbase class has been extended, allowing the user to retrieveall resources used by a driver.
UBootStrategywas extended with aforce()function.QEMUDriverhas a new get_qemu_base_args() function which can be used toextract the arguments passed to qemu.
SSHDriverhas gained support to forward unix sockets.--fqdnargument to set the hostname to thefully qualified domain name instead of the hostname.
QEMUDrivernow has an additionaldisk_optsproperty which can beused to pass additional options for the disk directly to QEMU
Driverbase class and manydrivers were changed to use this logger.
poe_mibbackend allows switching of power over Ethernet-capableports on switches that use the corresponding SNMP MIB.
RawNetworkInterfaceDriverallows the replay and recording of networkpackets on ethernet interfaces.
IMXUSBLoaderresource.write-filessubcommand to copy files onto massstorage devices.
NetworkPowerPortsupports a new backendubus. It controls PoEswitches running OpenWrt using the ubus interface.
ruff <https://github.com/astral-sh/ruff>_.setuptools_scmis 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.
SSHDrivercleanup has been fixed.labgrid-client monitorcommand now outputs the full resource identifier.console when logging is not enabled.
UnboundLocalErrorinside the atomic_replace code which is used inside thecoordinator was fixed.
QemuDrivercorrectly handles the different command lines for virglenablement.
power driver.
uses the pytest config stash.
ShellDriverwas fixed to set the correct status attribute.overwritten by the ResourceManager to assign the correct interface name.
test run.
local host.
the marker.
NFSProviderDriverclass was fixed. Documentation was alreadycorrect, however the classname contained an additional P.
--loopargument for labgrid-client console was fixed.ShellDrivercan now be an empty string.bigger labs where the payload size can be bigger than 1 megabyte.
SSHDriverredirects/dev/nullto stdin of commands run via SSH.This prevents unexpected input, especially when using the
ManualPowerDriveror a REPL.ser2netversion check for YAML configurations in the exporter wasfixed.
ser2netTCP connections for versions >=4.2.0.SerialPortDigitalOutputDriverwasfixed.
SSHDriverkeepalive is now correctly stopped when using existingconnections.
outlets.
ExternalConsoleDrivernow 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.yamlfor 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
ticketinstead ofanonymousauth.The
StepReporterAPI 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=INFOcommandline option, or
log_cli_level = INFOoption in pytest.ini, but if youwant to restore the old behavior add the following to your
conftest.pyfile (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
-vcommand line argument to pytest has changedslightly.
-vvis now an alias for--log-cli-level=INFO(effectivelyunchanged),
-vvvis an alias for--log-cli-level=CONSOLE, and-vvvvis an alias for--log-cli-level=DEBUG.The
BareboxDrivernow remembers the log level, sets it to0on initialactivation/reset and recovers it on
boot(). Duringrun()/run_check()the initially detected log level is used.The
NFSProviderDrivernow 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
NFSProviderandRemoteNFSProviderresources no longer expect theinternalandexternalarguments 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