| 1 |
Release 26.0 (Released Jun 06, 2026) |
| 2 |
------------------------------------ |
| 3 |
Sponsored by: Analog Devices GmbH |
| 4 |
|
| 5 |
New Features in 26.0 |
| 6 |
~~~~~~~~~~~~~~~~~~~~ |
| 7 |
|
| 8 |
- The default interrupt key for the `BareboxDriver` is now CTRL+D (``\x04``) |
| 9 |
instead of a line feed (``\n``). barebox v2025.03.0 onwards handles |
| 10 |
CTRL+D specially to halt autoboot countdown without running interactive |
| 11 |
hooks like bringing up network interfaces automatically. |
| 12 |
- Support for the tinycontrol tcPDU has been added as a power backend. |
| 13 |
- Support for shelly gen2+ devices has been added as a power backend. |
| 14 |
- Support for Waveshare Modbus Relays was added. |
| 15 |
- The upload directory for labgrid agent python files can be set via |
| 16 |
the ``LG_AGENT_PREFIX`` environment variable. |
| 17 |
- The ManagedFile now returns an error when trying to access the underlying |
| 18 |
file path before the file was synced. |
| 19 |
- The RKUSBLoader match was extended with all currently known USB IDs. |
| 20 |
- The error message for trying to acquire a place that is locked by another |
| 21 |
user was improved. |
| 22 |
- The ``Strategy`` class has gained a new ``never_retry`` decorator that |
| 23 |
stores the first exception and raises it for every subsequent call. |
| 24 |
The pytestplugin also correctly respects that StrategyError. |
| 25 |
- IMXUSBDriver has gained a ``verify`` property that is enabled by default, but |
| 26 |
can disable the verification step for SoCs that don't support it. |
| 27 |
- The codebase gained a lot of fixes for python 3.14 support. |
| 28 |
- ``labgrid-client`` with a multi-target environment configuration now |
| 29 |
correctly tries to acquire/release all targets in the environment |
| 30 |
configuration. |
| 31 |
- IMXUSBLoader now correctly recognizes i.MX95 & i.MX91. |
| 32 |
- Exporter configuration files can now include drop-in files from .d |
| 33 |
directories by using jinja templates. |
| 34 |
- Labgrid has gained support for new USB SDWire 3 devices. |
| 35 |
- The BareboxDriver has gained support for the ``boot_command``, similar to |
| 36 |
the UBootDriver. |
| 37 |
- Labgrid has gained support for Aten PE6216 PDUs. |
| 38 |
- The `QEMUDriver` now supports a ``netdev`` argument which can be added to |
| 39 |
``add_port_forward()`` and ``remove_port_forward()`` in case there is more |
| 40 |
than one network interface defined. |
| 41 |
- Guermok HDMI to USB 3.0 capture dongle supported |
| 42 |
- The UBootDriver can now optionally strip timestamps. |
| 43 |
- Labgrid has partially switched to enforce ruff formatting for some files. |
| 44 |
- Labgrid has gained support for the Linaro Automation Appliance (LAA). |
| 45 |
- The MQTTManager now supports authentication. |
| 46 |
- The `consoleexpectmixin` now supports chunking of multiple bytes |
| 47 |
with the ``txchunk`` attribute. |
| 48 |
- Labgrid has gained support for network namespace forwarding from exporters |
| 49 |
to clients. This allows accessing a network as if it is locally connected. |
| 50 |
- HTTPVideoDrivers now optionally allow the specification of a port. |
| 51 |
|
| 52 |
Breaking changes in 26.0 |
| 53 |
~~~~~~~~~~~~~~~~~~~~~~~~ |
| 54 |
- The deprecated pytest plugin option ``--env-config`` has been removed. Use |
| 55 |
``--lg-env`` instead. |
| 56 |
- The deprecated ``NetworkUSBStorageDriver`` has been removed. Use the |
| 57 |
`USBStorageDriver` instead. |
| 58 |
|
| 59 |
Bug fixes in 26.0 |
| 60 |
~~~~~~~~~~~~~~~~~ |
| 61 |
- Console activation in the ShellDriver now correctly disables kernel messages |
| 62 |
on that console. |
| 63 |
- The ShellDriver now correctly handles an existing /tmp/labgrid-ssh directory. |
| 64 |
- An error in the mfi_mpower driver was fixed to correctly use f-strings. |
| 65 |
- An error message in the coordinator was fixed to correctly emit resource and |
| 66 |
reason. |
| 67 |
- The ShellDriver public key writing has been fixed to write the keys in chunks. |
| 68 |
This fixes an issue where the number of allowed characters on the command line |
| 69 |
is too small to contain the full public key. |
| 70 |
- The sync-places contrib script has been fixed to filter tags on creation. |
| 71 |
- Several labgrid client subcommands have been fixed to match the resource name |
| 72 |
as well. |
| 73 |
- Ordering of ResourceMatches has been fixed. |
| 74 |
- Locking problems in the coordinator with regards to reservations have been |
| 75 |
fixed. |
| 76 |
|
| 77 |
Release 25.0.1 (Released Jul 07, 2025) |
| 78 |
-------------------------------------- |
| 79 |
|
| 80 |
Bug fixes in 25.0.1 |
| 81 |
~~~~~~~~~~~~~~~~~~~ |
| 82 |
- Fix losing exceptions in `SSHDriver` control master start while handling |
| 83 |
timeouts in some cases. |
| 84 |
- Make pytestplugin only set a color for the custom console log level if |
| 85 |
formatter class supports it. |
| 86 |
- Add missing `MatchedSysfsGPIO` binding to `GpioDigitalOutputDriver`. |
| 87 |
- Fix a couple of unevaluated variables in exception and log messages. |
| 88 |
- Use only non-deprecated directives in Dockerfile. |
| 89 |
- Always use latest stable docker compose release in CI. |
| 90 |
- Create symlinks in `ManagedFile` even when skipping sync for local providers. |
| 91 |
- Use ``importlib`` instead of ``pkg_resources`` to retrieve version, because |
| 92 |
setuptools (providing ``pkg_resources``) is no longer pre-installed in |
| 93 |
virtualenvs created with the ``venv`` module. |
| 94 |
- Allow passing non-strings to `StepFormatter`. |
| 95 |
- Properly escape file and directory names in the `USBStorageDriver`. |
| 96 |
- Fix ``labgrid-client`` named resource handling for the ``io``, ``bootstrap``, |
| 97 |
``sd-mux`` and ``video`` sub commands |
| 98 |
|
| 99 |
Release 25.0 (Released May 7, 2025) |
| 100 |
----------------------------------- |
| 101 |
As announced `before |
| 102 |
<https://github.com/labgrid-project/labgrid/discussions/1467#discussioncomment-10314852>`_, |
| 103 |
this is the first release using `gRPC <https://grpc.io/>`_ instead of |
| 104 |
crossbar/autobahn for communication between client/exporter and coordinator. |
| 105 |
|
| 106 |
Crossbar/autobahn are unfortunately not very well maintained anymore. |
| 107 |
In labgrid, the crossbar component was moved to its own virtualenv to cope with |
| 108 |
the high number of conflicts caused by outdated dependencies. |
| 109 |
Also, Python 3.13 is not supported in an official crossbar release. |
| 110 |
|
| 111 |
That's why labgrid moves to gRPC with this release. |
| 112 |
gRPC is a well maintained RPC framework with a lot of users. |
| 113 |
As a side effect, the message transfer is more performant and the import times |
| 114 |
are shorter. |
| 115 |
|
| 116 |
This is a **breaking change**. |
| 117 |
Version 25.0 exporters / coordinators / clients can not communicate with |
| 118 |
Version 24.0 and earlier exporters / coordinators / clients. |
| 119 |
All exporters, coordinators and clients in a deployment have to be updated at |
| 120 |
the same time. |
| 121 |
See the "Breaking changes in 25.0" section below for more information. |
| 122 |
|
| 123 |
New Features in 25.0 |
| 124 |
~~~~~~~~~~~~~~~~~~~~ |
| 125 |
- All components can be installed into the same virtualenv again. |
| 126 |
- Add support for Python 3.13. |
| 127 |
- The `QEMUDriver` now supports setting the ``display`` option to |
| 128 |
``qemu-default``, which will neither set the QEMU ``-display`` option |
| 129 |
or pass along ``-nographic``. |
| 130 |
- The amount of buffering in GStreamer video pipelines was reduced to improve |
| 131 |
latency for ``USBVideoDriver`` network streaming. |
| 132 |
- The ``RawNetworkInterfaceDriver`` now supports live streaming of captured |
| 133 |
packets, setting/getting various configuration options and reporting |
| 134 |
statistics. |
| 135 |
- Add support for LogiLink UA0379 / Microdia cameras to the ``USBVideoDriver``. |
| 136 |
- Add more backends to the ``NetworkPowerDriver``: |
| 137 |
|
| 138 |
- Gude 87-1210-18 |
| 139 |
- Digital Loggers PDUs via the REST API |
| 140 |
- Ubiquity mFi mPower power strips |
| 141 |
- Add support for sigrok's channel-group parameter. |
| 142 |
- Make USB hubs exportable for easier monitoring of large bus topologies. |
| 143 |
- Add support for Digital Loggers PDUs via the REST API. |
| 144 |
- Add support for custom paths for ``ssh``, ``scp``, ``sshfs`` and ``rsync`` in |
| 145 |
the ``SSHDriver``. |
| 146 |
- Make the ``QEMUDriver`` configuration more flexible and improve startup error |
| 147 |
reporting. |
| 148 |
- Support labgrid-client power via GPIOs. |
| 149 |
- The Getting Started chapter in the docs was improved. |
| 150 |
- The systemd service for the labgrid-exporter is now configured with |
| 151 |
``Restart=always``. |
| 152 |
- Support listing only unused/released places with ``labgrid-client places``. |
| 153 |
- Replace deprecated SmartStrip class with IotStrip in the tplink power |
| 154 |
backend. |
| 155 |
- Add a ``erase()`` method to the ``AndroidFastbootDriver``. |
| 156 |
|
| 157 |
Bug fixes in 25.0 |
| 158 |
~~~~~~~~~~~~~~~~~ |
| 159 |
- Fix ShellDriver to correctly match network interfaces names with dots and/or |
| 160 |
dashes in ``get_default_interface_device_name()``. |
| 161 |
- Fix reservations for multiple matching tags or values starting with a number. |
| 162 |
- Fix concurrent access to USB HID relays. |
| 163 |
- Fix support for networks without SSID in the agent used by the |
| 164 |
NetworkInterfaceDriver. |
| 165 |
- Add new stlink USB IDs for the ``USBDebugger`` resource. |
| 166 |
- Fix code coverage reporting and submit test results to codecov. |
| 167 |
- Fix waiting for ``NetworkService`` created by the ``DockerDaemon``. |
| 168 |
- Fix error handling for missing interfaces in the ``NetworkInterfaceDriver``'s |
| 169 |
agent. |
| 170 |
- Fix ``pip install`` for archives auto-generated by GitHub. |
| 171 |
|
| 172 |
Breaking changes in 25.0 |
| 173 |
~~~~~~~~~~~~~~~~~~~~~~~~ |
| 174 |
Maintaining support for both crossbar/autobahn as well as gRPC in labgrid would |
| 175 |
be a lot of effort due to their different architectures. |
| 176 |
Therefore, hard migration to gRPC is required. |
| 177 |
|
| 178 |
Previously, the coordinator was running as a component started by the crossbar. |
| 179 |
Now, it is a standalone service which exposes a gRPC API directly. |
| 180 |
|
| 181 |
Due to the gRPC migration, 25.0 includes the following breaking changes: |
| 182 |
|
| 183 |
- The labgrid environment config option ``crossbar_url`` was replaced by |
| 184 |
``coordinator_address``. |
| 185 |
The environment variable ``LG_CROSSBAR`` was replaced by ``LG_COORDINATOR``. |
| 186 |
- The labgrid environment config option ``crossbar_realm`` is now obsolete as |
| 187 |
well as the environment variable ``LG_CROSSBAR_REALM``. |
| 188 |
- The coordinator is available as ``labgrid-coordinator`` (instead of |
| 189 |
``crossbar start``). No additional configuration file is required. |
| 190 |
- The systemd services in ``contrib/systemd/`` were updated. |
| 191 |
|
| 192 |
To update your deployment to 25.0, you'll need to: |
| 193 |
|
| 194 |
- Update the coordinator, all clients and all exporters to the new release. |
| 195 |
- Start ``labgrid-coordinator`` directly (instead of via the crossbar |
| 196 |
configuration file). |
| 197 |
If needed, you can set the listening address using the ``--listen`` option. |
| 198 |
- Update any existing client and exporter configuration by replacing the |
| 199 |
crossbar URL with the coordinator address. |
| 200 |
|
| 201 |
Other breaking changes include: |
| 202 |
|
| 203 |
- Support for Python 3.8 was dropped. |
| 204 |
- The siglent power backend is deprecated because it uses the no longer |
| 205 |
maintained vxi11 module which again uses the deprecated (and in Python 3.13 |
| 206 |
removed) xdrlib. See |
| 207 |
`issue #1507 <https://github.com/labgrid-project/labgrid/issues/1507>`_. |
| 208 |
|
| 209 |
Known issues in 25.0 |
| 210 |
~~~~~~~~~~~~~~~~~~~~ |
| 211 |
|
| 212 |
- gRPC sometimes prints a confusing error message during shutdown. |
| 213 |
We've worked around this by closing stderr on shutdown. |
| 214 |
See `issue #1544 <https://github.com/labgrid-project/labgrid/issues/1544>`_ |
| 215 |
and `PR #1605 <https://github.com/labgrid-project/labgrid/pull/1605>`_. |
| 216 |
|
| 217 |
Release 24.0.3 (Released Feb 12, 2025) |
| 218 |
-------------------------------------- |
| 219 |
|
| 220 |
Bug fixes in 24.0.3 |
| 221 |
~~~~~~~~~~~~~~~~~~~ |
| 222 |
- Fix support for networks without SSID in the agent used by the |
| 223 |
NetworkInterfaceDriver. |
| 224 |
- Fix concurrent access to USB HID relays. |
| 225 |
- Fix some actions workflows. |
| 226 |
|
| 227 |
|
| 228 |
Release 24.0.2 (Released Sep 28, 2024) |
| 229 |
-------------------------------------- |
| 230 |
|
| 231 |
Bug fixes in 24.0.2 |
| 232 |
~~~~~~~~~~~~~~~~~~~ |
| 233 |
- Limit pysnmp's pyasn1 dependency to <0.6.0 in pyproject.toml to work around |
| 234 |
`pyasn1.compat.octets ModuleNotFoundError <https://github.com/pyasn1/pyasn1/issues/76>`_. |
| 235 |
|
| 236 |
|
| 237 |
Release 24.0.1 (Released Aug 19, 2024) |
| 238 |
-------------------------------------- |
| 239 |
|
| 240 |
Bug fixes in 24.0.1 |
| 241 |
~~~~~~~~~~~~~~~~~~~ |
| 242 |
- Add "six" to crossbar-requirements.txt as a stop-gap solution for implicit |
| 243 |
six usage of txtorcon (a crossbar dependency). Fixes errors such as: |
| 244 |
ModuleNotFoundError: No module named 'six' |
| 245 |
|
| 246 |
|
| 247 |
Release 24.0 (Released Aug 12, 2024) |
| 248 |
------------------------------------ |
| 249 |
|
| 250 |
New Features in 24.0 |
| 251 |
~~~~~~~~~~~~~~~~~~~~ |
| 252 |
- When invoking tests with pytest, the ``--log-(cli|file)-(level|format)`` |
| 253 |
command line arguments and their corresponding pytest.ini configure options |
| 254 |
are now respected (making it possible to have different format and logging |
| 255 |
levels in the log file than then console). |
| 256 |
- A new log level called ``CONSOLE`` has been added between the default |
| 257 |
``INFO`` and ``DEBUG`` levels. This level will show all reads and writes made |
| 258 |
to the serial console during testing. |
| 259 |
- The docker support was extended to support buildx, allowing the build of arm64 |
| 260 |
container images. |
| 261 |
- The tool lookup function has been extended to return the original name in case |
| 262 |
the path can't be found. This makes specification of the qemu binary easier to |
| 263 |
use. |
| 264 |
- The ``bindings`` base class has been extended, allowing the user to retrieve |
| 265 |
all resources used by a driver. |
| 266 |
- Support for STLink V2 was added. |
| 267 |
- ``UBootStrategy`` was extended with a ``force()`` function. |
| 268 |
- labgrid was switched from pysnmp to pysnmp-lexstudio. |
| 269 |
- Support for Segger J-Link was added. |
| 270 |
- Place tags are now exposed by the RemotePlace. |
| 271 |
- The sync-places contrib script has gained support for named matches. |
| 272 |
- Remote support for YKush Devices was added. |
| 273 |
- Support for sigrok DMMs was added. |
| 274 |
- Support for Digital Outputs switched via HTTP was added. |
| 275 |
- The ``QEMUDriver`` has a new get_qemu_base_args() function which can be used to |
| 276 |
extract the arguments passed to qemu. |
| 277 |
- The ``SSHDriver`` has gained support to forward unix sockets. |
| 278 |
- The exporter has gained an ``--fqdn`` argument to set the hostname to the |
| 279 |
fully qualified domain name instead of the hostname. |
| 280 |
- The ``QEMUDriver`` now has an additional ``disk_opts`` property which can be |
| 281 |
used to pass additional options for the disk directly to QEMU |
| 282 |
- All drivers now inherit a logger from the ``Driver`` base class and many |
| 283 |
drivers were changed to use this logger. |
| 284 |
- The new ``poe_mib`` backend allows switching of power over Ethernet-capable |
| 285 |
ports on switches that use the corresponding SNMP MIB. |
| 286 |
- The ``RawNetworkInterfaceDriver`` allows the replay and recording of network |
| 287 |
packets on ethernet interfaces. |
| 288 |
- The i.MX93 usb loader USB ID has been added to the ``IMXUSBLoader`` resource. |
| 289 |
- Support for udev matched GPIOs has been added. |
| 290 |
- labgrid-client now has a ``write-files`` subcommand to copy files onto mass |
| 291 |
storage devices. |
| 292 |
- The ``NetworkPowerPort`` supports a new backend ``ubus``. It controls PoE |
| 293 |
switches running OpenWrt using the ubus interface. |
| 294 |
- The pyproject.toml gained a config for `ruff <https://github.com/astral-sh/ruff>`_. |
| 295 |
- ``setuptools_scm`` is now used to generate a version file. |
| 296 |
- labgrid-client console will fallback to telnet if microcom is not available. |
| 297 |
- A power backend for tinycontrol.eu IP Power Socket 6G10A v2 was added. |
| 298 |
- Labgrid now publishes arm64 docker images. |
| 299 |
- Labgrid's YAML parser will now warn when mapping keys are duplicated and thus |
| 300 |
overwritten. |
| 301 |
- LC USB Relais are now supported. |
| 302 |
|
| 303 |
|
| 304 |
Bug fixes in 24.0 |
| 305 |
~~~~~~~~~~~~~~~~~ |
| 306 |
- The pypi release now uses the labgrid pyserial fork in the form of the |
| 307 |
pyserial-labgrid package. This fixes installation with newer versions |
| 308 |
of pip. |
| 309 |
- Several tests have gained an importorskip() call to skip them if the |
| 310 |
module is not available. |
| 311 |
- labgrid now uses its own pyserial fork from pypi since installation from |
| 312 |
github as an egg is no longer properly supported. |
| 313 |
- The build-and-release workflow supports building wheels. |
| 314 |
- Fix named SSH lookups in conjunction with an environment file in |
| 315 |
labgrid-client. |
| 316 |
- The crossbar virtual-environment now needs to be separate from the labgrid |
| 317 |
environment, for more information please consult the `current documentation <https://labgrid.readthedocs.io/en/latest/getting_started.html#coordinator>`_. |
| 318 |
- The markers now are restricted to patterns which won't match WARN, |
| 319 |
ERROR, INFO and similar log notifiers. |
| 320 |
- A race inside the ``SSHDriver`` cleanup has been fixed. |
| 321 |
- The ``labgrid-client monitor`` command now outputs the full resource identifier. |
| 322 |
- Many of the USB loader commands e.g. imx-usb-loader will now print to the |
| 323 |
console when logging is not enabled. |
| 324 |
- An ``UnboundLocalError`` inside the atomic_replace code which is used inside the |
| 325 |
coordinator was fixed. |
| 326 |
- Resources of different classes can now have the same name. |
| 327 |
- A bug within the pytest logging setup was fixed. |
| 328 |
- The ``QemuDriver`` correctly handles the different command lines for virgl |
| 329 |
enablement. |
| 330 |
- A bug was fixed where resource names were ignored during lookup of the correct |
| 331 |
power driver. |
| 332 |
- ManagedFile was fixed to work with the stat command on Darwin. |
| 333 |
- Instead of using a private member on the pytest config, the labgrid plugin now |
| 334 |
uses the pytest config stash. |
| 335 |
- The ``ShellDriver`` was fixed to set the correct status attribute. |
| 336 |
- The USBNetworkInterface now warns if the interface name is set, as it will be |
| 337 |
overwritten by the ResourceManager to assign the correct interface name. |
| 338 |
- Fix sftp option issue in SSH driver that caused sftp to only work once per |
| 339 |
test run. |
| 340 |
- ManagedFile NFS detection heuristic now does symlink resolution on the |
| 341 |
local host. |
| 342 |
- XModem support within the Shelldriver was fixed by removing the newline from |
| 343 |
the marker. |
| 344 |
- A typo in the ``NFSProviderDriver`` class was fixed. Documentation was already |
| 345 |
correct, however the classname contained an additional P. |
| 346 |
- The ``--loop`` argument for labgrid-client console was fixed. |
| 347 |
- The password for the ``ShellDriver`` can now be an empty string. |
| 348 |
- The default crossbar configuration now enables auto-fragmentation to handle |
| 349 |
bigger labs where the payload size can be bigger than 1 megabyte. |
| 350 |
- The ``SSHDriver`` redirects ``/dev/null`` to stdin of commands run via SSH. |
| 351 |
This prevents unexpected input, especially when using the |
| 352 |
``ManualPowerDriver`` or a REPL. |
| 353 |
- The ``ser2net`` version check for YAML configurations in the exporter was |
| 354 |
fixed. |
| 355 |
- The exporter forces ``ser2net`` TCP connections for versions >=4.2.0. |
| 356 |
- The retrieval of the DTR status for ``SerialPortDigitalOutputDriver`` was |
| 357 |
fixed. |
| 358 |
- The ``SSHDriver`` keepalive is now correctly stopped when using existing |
| 359 |
connections. |
| 360 |
- The power backend for raritan devices now supports devices with more than 16 |
| 361 |
outlets. |
| 362 |
- The ``ExternalConsoleDriver`` now correctly sets the bufsize to zero to |
| 363 |
prevent buffering. |
| 364 |
|
| 365 |
Breaking changes in 24.0 |
| 366 |
~~~~~~~~~~~~~~~~~~~~~~~~ |
| 367 |
- Support for Python 3.7 was dropped. |
| 368 |
- Support for the legacy ticket authentication was dropped: If the coordinator |
| 369 |
logs ModuleNotFoundError on startup, switch the crossbar config to anonymous |
| 370 |
authentication (see ``.crossbar/config-anonymous.yaml`` for an example). |
| 371 |
- The Debian package (``debian/``) no longer contains crossbar. Use the |
| 372 |
`coordinator container <https://hub.docker.com/r/labgrid/coordinator>`_ or |
| 373 |
install it into a separate local venv as described in the |
| 374 |
`documentation <https://labgrid.readthedocs.io/en/latest/getting_started.html#coordinator>`_. |
| 375 |
If you see ``WARNING: Ticket authentication is deprecated. Please update your |
| 376 |
coordinator.`` on the client when running an updated coordinator, your |
| 377 |
coordinator configuration may set ``ticket`` instead of ``anonymous`` auth. |
| 378 |
- The `StepReporter` API has been changed. To start step reporting, you must |
| 379 |
now call ``StepReporter.start()`` instead of ``StepReporter()``, and set up |
| 380 |
logging via ``labgrid.logging.basicConfig()``. |
| 381 |
- Logging output when running pytest is no longer sent to stderr by default, |
| 382 |
since this is both chatty and also unnecessary with the improved logging |
| 383 |
flexibility. It it recommended to use the ``--log-cli-level=INFO`` command |
| 384 |
line option, or ``log_cli_level = INFO`` option in pytest.ini, but if you |
| 385 |
want to restore the old behavior add the following to your ``conftest.py`` |
| 386 |
file (note that doing so may affect the ability to use some more advanced |
| 387 |
logging features):: |
| 388 |
|
| 389 |
def pytest_configure(config): |
| 390 |
import logging |
| 391 |
import sys |
| 392 |
|
| 393 |
logging.basicConfig( |
| 394 |
level=logging.INFO, |
| 395 |
format='%(levelname)8s: %(message)s', |
| 396 |
stream=sys.stderr, |
| 397 |
) |
| 398 |
|
| 399 |
- The interpretation of the ``-v`` command line argument to pytest has changed |
| 400 |
slightly. ``-vv`` is now an alias for ``--log-cli-level=INFO`` (effectively |
| 401 |
unchanged), ``-vvv`` is an alias for ``--log-cli-level=CONSOLE``, and |
| 402 |
``-vvvv`` is an alias for ``--log-cli-level=DEBUG``. |
| 403 |
- The `BareboxDriver` now remembers the log level, sets it to ``0`` on initial |
| 404 |
activation/reset and recovers it on ``boot()``. During |
| 405 |
``run()``/``run_check()`` the initially detected log level is used. |
| 406 |
- The `NFSProviderDriver` now returns mount and path information on ``stage()`` |
| 407 |
instead of the path to be used on the target. The previous return value did |
| 408 |
not fit the NFS mount use case. |
| 409 |
- The `NFSProvider` and `RemoteNFSProvider` resources no longer expect the |
| 410 |
``internal`` and ``external`` arguments as they do not fit the NFS mount use |
| 411 |
case. |
| 412 |
|
| 413 |
Known issues in 24.0 |
| 414 |
~~~~~~~~~~~~~~~~~~~~ |
| 415 |
- Some client commands return 0 even if the command failed. |
| 416 |
|
| 417 |
|
| 418 |
Release 23.0.6 (Released Apr 16, 2024) |
| 419 |
-------------------------------------- |
| 420 |
|
| 421 |
Bug fixes in 23.0.6 |
| 422 |
~~~~~~~~~~~~~~~~~~~ |
| 423 |
- In `USBVideoDriver`, use the ``playbin3`` element instead of ``playbin`` to |
| 424 |
fix decoding via VA-API for certain webcams on AMD graphic cards. |
| 425 |
- Let the `SSHDriver` redirect ``/dev/null`` to stdin on ``run()`` to prevent |
| 426 |
unexpected consumption of stdin of the remotely started process. |
| 427 |
- Cover more failure scenarios in the exporter and coordinator systemd |
| 428 |
services, fix the service startup order, do not buffer journal logs. |
| 429 |
|
| 430 |
Release 23.0.5 (Released Jan 13, 2024) |
| 431 |
-------------------------------------- |
| 432 |
|
| 433 |
Bug fixes in 23.0.5 |
| 434 |
~~~~~~~~~~~~~~~~~~~ |
| 435 |
- Fix readthedocs build by specifying Python version and OS. |
| 436 |
- Fix several incompatibilities with doc sphinxcontrib-* dependencies having |
| 437 |
dropped their explicit Sphinx dependencies, which prevented generation of |
| 438 |
labgrid's docs. |
| 439 |
|
| 440 |
Release 23.0.4 (Released Nov 10, 2023) |
| 441 |
-------------------------------------- |
| 442 |
|
| 443 |
Bug fixes in 23.0.4 |
| 444 |
~~~~~~~~~~~~~~~~~~~ |
| 445 |
- Fix dockerfiles syntax error that became fatal in a recent docker release. |
| 446 |
- Fix ShellDriver's xmodem functionality. |
| 447 |
- Pin pylint to prevent incompatibility with pinned pytest-pylint. |
| 448 |
- Fix ``labgrid-client console --loop`` on disappearing serial ports (such as |
| 449 |
on-board FTDIs). |
| 450 |
|
| 451 |
Release 23.0.3 (Released Jul 20, 2023) |
| 452 |
-------------------------------------- |
| 453 |
|
| 454 |
Bug fixes in 23.0.3 |
| 455 |
~~~~~~~~~~~~~~~~~~~ |
| 456 |
- Update to PyYAML 6.0.1 to prevent install errors with Cython>=3.0, see: |
| 457 |
https://github.com/yaml/pyyaml/issues/601 |
| 458 |
https://github.com/yaml/pyyaml/pull/726#issuecomment-1640397938 |
| 459 |
|
| 460 |
Release 23.0.2 (Released Jul 04, 2023) |
| 461 |
-------------------------------------- |
| 462 |
|
| 463 |
Bug fixes in 23.0.2 |
| 464 |
~~~~~~~~~~~~~~~~~~~ |
| 465 |
- Move `SSHDriver`'s control socket tmpdir clean up after the the SSH process |
| 466 |
has terminated. Ignore errors on cleanup since it's best effort. |
| 467 |
- Add missing class name in ``labgrid-client monitor`` resource output. |
| 468 |
- Print USB loader process output if log level does not cover logging it. |
| 469 |
- Fix UnboundLocalError in ``atomic_replace()`` used by the coordinator and |
| 470 |
``labgrid-client export`` to write config files. |
| 471 |
- Let Config's ``get_tool()`` return the requested tool if it is not found in |
| 472 |
the config. Return the resolved path if it exists, otherwise return the value |
| 473 |
as is. Also drop the now obsolete tool fallbacks from the drivers and add |
| 474 |
tests. |
| 475 |
- Fix `USBSDMuxDevice`/`USBSDWireDevice` udev race condition leading to |
| 476 |
outdated control/disk paths. |
| 477 |
- Fix `SSHDriver`'s ``explicit_sftp_mode`` option to allow calls to ``put()`` |
| 478 |
and ``get()`` multiple times. Also make ``scp()`` respect this option. |
| 479 |
- Add compatibility with QEMU >= 6.1.0 to `QEMUDriver`'s ``display`` argument |
| 480 |
for the ``egl-headless`` option. |
| 481 |
|
| 482 |
Release 23.0.1 (Released Apr 26, 2023) |
| 483 |
-------------------------------------- |
| 484 |
|
| 485 |
Bug fixes in 23.0.1 |
| 486 |
~~~~~~~~~~~~~~~~~~~ |
| 487 |
- The pypi release now uses the labgrid pyserial fork in the form of the |
| 488 |
pyserial-labgrid package. This fixes installation with newer versions |
| 489 |
of pip. |
| 490 |
- Several tests have gained an importorskip() call to skip them if the |
| 491 |
module is not available. |
| 492 |
- The build-and-release workflow supports building wheels. |
| 493 |
- The markers now are restricted to patterns which won't match WARN, |
| 494 |
ERROR, INFO and similar log notifiers. |
| 495 |
- Fix named SSH lookups in conjunction with an environment file in |
| 496 |
labgrid-client. |
| 497 |
|
| 498 |
Release 23.0 (Released Apr 24, 2023) |
| 499 |
------------------------------------ |
| 500 |
|
| 501 |
New Features in 23.0 |
| 502 |
~~~~~~~~~~~~~~~~~~~~ |
| 503 |
- Python 3.6 support has been dropped. |
| 504 |
- Exporter config templates now have access to the following new variables: |
| 505 |
isolated (all resource accesses must be tunneled True/False), |
| 506 |
hostname (of the exporter host), name (of the exporter). |
| 507 |
- ModbusRTU driver for instruments |
| 508 |
- Support for Eaton ePDU and TP-Link power strips added, either can be used as |
| 509 |
a NetworkPowerPort. |
| 510 |
- The example strategies now wait for complete system startup using systemctl. |
| 511 |
- Consider a combination of multiple "lg_feature" markers instead of |
| 512 |
considering only the closest marker. |
| 513 |
- There is a new ``get_strategy`` helper function which returns the strategy of |
| 514 |
the target. |
| 515 |
- labgrid-client now supports an ``export`` command which exposes the resource |
| 516 |
information as environment variables. |
| 517 |
- Newer C920 webcams are now supported. |
| 518 |
- The pytestplugin now correctly combines feature markers instead of replacing |
| 519 |
them. |
| 520 |
- The ConsoleLoggingReporter is now exported for library usage. |
| 521 |
- The HD 2MP Webcam is now supported by the video-driver. |
| 522 |
- TP-Link power strips are supported by the NetworkPowerDriver. |
| 523 |
- A ModbusRTUResource and Driver has been added to control RS485 equipment. |
| 524 |
- The strategies within labgrid learned the force() function. |
| 525 |
- The labgrid client SSH command is now able to instantiate the SSHDriver when |
| 526 |
there are multiple NetworkService resources available. |
| 527 |
- eg_pms2_network power port driver supports controlling the Energenie power |
| 528 |
management series with devices like the EG_PMS2_LAN & EG_PMS2_WLAN. |
| 529 |
- The client and coordinator learned of a new "release-from" operation that |
| 530 |
only releases a place if it acquired by a specific user. This can be used to |
| 531 |
prevent race conditions when attempting to automate the cleanup of unused |
| 532 |
places (e.g. in CI jobs). |
| 533 |
- ModbusTCPCoil driver supports writing using multiple coils write method |
| 534 |
in order to make driver usable with Papouch Quido I/O modules. |
| 535 |
- If supported, ser2net started by the exporter now allows multiple connections. |
| 536 |
- SmallUBootDriver driver now supports wide range of Ralink/mt7621 devices |
| 537 |
which expects ``boot_secret`` without new line with new ``boot_secret_nolf`` |
| 538 |
boolean config option. |
| 539 |
- More USBVideo devices have been added. |
| 540 |
- labgrid now uses a custom yaml loader/dumper. |
| 541 |
- labgrid-client add-match/add-named-match check for duplicate matches |
| 542 |
- `DFUDriver` has been added to communicate with a `DFUDevice`, a device in DFU |
| 543 |
(Device Firmware Upgrade) mode. |
| 544 |
- ``labgrid-client dfu`` added to allow communication with devices in DFU mode. |
| 545 |
- Support for QEMU Q35 machine added. |
| 546 |
- `UBootDriver` now handles idle console, allowing driver activation on |
| 547 |
an interrupted U-Boot. |
| 548 |
- Support for the STLINK-V3 has been added to the USBDebugger resource. |
| 549 |
- labgrid-suggest can now suggest matches for a USBPowerPort used by power |
| 550 |
switchable USB hubs. |
| 551 |
- AndroidFastboot is now deprecated and was replaced by AndroidUSBFastboot. This |
| 552 |
is more consistent with the AndroidNetFastboot support. |
| 553 |
- In case multiple matches are found for a driver, labgrid-client now outputs |
| 554 |
the available names. |
| 555 |
- ProcessWrapper now supports an "input" argument to check_output() that allows |
| 556 |
a string to be passed to stdin of the process. |
| 557 |
- The ``NetworkInterfaceDriver`` now supports local and remote SSH port |
| 558 |
forwarding to/from the exporter. |
| 559 |
- labgrid was switched over to use pyproject.toml. |
| 560 |
- A contrib script was added to export coordinator metrics to stasd. |
| 561 |
- The SSH connection timeout can now be globally controlled using the |
| 562 |
``LG_SSH_CONNECT_TIMEOUT`` environment variable. |
| 563 |
- The `QEMUDriver` now supports a ``display`` option which can specify if an |
| 564 |
display device should be created. ``none`` (the default) will not create a |
| 565 |
display device, ``fb-headless`` will create a headless framebuffer device |
| 566 |
for software rendering, and ``egl-headless`` will create a headless GPU |
| 567 |
device for accelerated rendering (but requires host support). |
| 568 |
- The `AndroidFastbootDriver` now supports interaction with network devices in |
| 569 |
fastboot state. |
| 570 |
- Add bash completion for labgrid-client. |
| 571 |
- The `QEMUDriver` now support a ``nic`` property that can be used to create a |
| 572 |
network interface when booting. |
| 573 |
- The SSHDriver now correctly uses the processwrapper for rsync. |
| 574 |
- The `QEMUDriver` now supports API to add port-forwarding from localhost. |
| 575 |
- The get() method for sdwire has been added. |
| 576 |
- If there are multiple named resources for a target, one of them can be named |
| 577 |
"default" to select it automatically if no explicit other name is given. |
| 578 |
- labgrid-client has been extended with --name/-n for most commands. This allows |
| 579 |
attaching multiple power sources/usb-muxes and switching them individually |
| 580 |
from the command line. |
| 581 |
- Add DediprogFlashDriver and DediprogFlasher resource. |
| 582 |
- Add support for Digital Loggers PDU. |
| 583 |
- Add support for Shelly power switches. |
| 584 |
- Make labgrid-client use crossbar_url and crossbar_realm from ennvironment |
| 585 |
config. |
| 586 |
|
| 587 |
Bug fixes in 23.0 |
| 588 |
~~~~~~~~~~~~~~~~~ |
| 589 |
|
| 590 |
- The exporter now exports sysfsgpios during place acquire/release, fixing a |
| 591 |
race in the sysfspgio agent interface. |
| 592 |
- Fixed a bug where using ``labgrid-client io get`` always returned ``low`` |
| 593 |
when reading a ``sysfsgpio``. |
| 594 |
- Fix labgrid-client exit code on keyboard interrupt. |
| 595 |
- Fixed ``labgrid-client forward --remote``/``-R``, which used either the LOCAL |
| 596 |
part of ``--local``/``-L`` accidentally (if specified) or raised an |
| 597 |
UnboundLocalError. |
| 598 |
- Fix udev matching by attributes. |
| 599 |
- Stop Exporter's event loop when register calls fail. |
| 600 |
- Fix exit codes for various subcommands. |
| 601 |
- Omit role and place output for ``labgrid-client reserve`` to fix shell |
| 602 |
evaluation. |
| 603 |
|
| 604 |
Breaking changes in 23.0 |
| 605 |
~~~~~~~~~~~~~~~~~~~~~~~~ |
| 606 |
- ``Config``'s ``get_option()``/``get_target_option()`` convert non-string |
| 607 |
options no longer to strings. |
| 608 |
- `UBootDriver`'s ``boot_expression`` attribute is deprecated, it will no |
| 609 |
longer check for the string during U-Boot boot. This allows activating the |
| 610 |
driver on an already running U-Boot. |
| 611 |
- The uuu command handling was fixed for the UUUDriver. |
| 612 |
- `UBootDriver` boot() method was fixed. |
| 613 |
- Fix proxying of dynamic port power backends with URL in host parameter and |
| 614 |
authentication credentials. |
| 615 |
- The coordinator was switched over to anonymous static authentication. You'll |
| 616 |
have to use the legacy crossbar configuration to support older |
| 617 |
clients/exporters. The 23.1 release will remove support for the legacy ticket |
| 618 |
authentication. |
| 619 |
- AndroidFastboot has been deprecated. Please replace it with the more specific |
| 620 |
AndroidUSBFastboot with the same semantics. |
| 621 |
|
| 622 |
Known issues in 23.0 |
| 623 |
~~~~~~~~~~~~~~~~~~~~ |
| 624 |
|
| 625 |
Release 0.4.0 (Released Sep 22, 2021) |
| 626 |
------------------------------------- |
| 627 |
|
| 628 |
New Features in 0.4.0 |
| 629 |
~~~~~~~~~~~~~~~~~~~~~ |
| 630 |
|
| 631 |
- Duplicate bindings for the same driver are now allowed (see the QEMUDriver) |
| 632 |
- The `NetworkPowerDriver` now additionally supports: |
| 633 |
- Siglent SPD3000X series power supplies |
| 634 |
- Labgrid client lock now enforces that all matches need to be fulfilled. |
| 635 |
- Support for USB HID relays has been added. |
| 636 |
- UBootDriver now allows overriding of currently fixed await boot timeout |
| 637 |
via new ``boot_timeout`` argument. |
| 638 |
- With ``--lg-colored-steps``, two new ``dark`` and ``light`` color schemes |
| 639 |
which only use the standard 8 ANSI colors can be set in ``LG_COLOR_SCHEME``. |
| 640 |
The existing color schemes have been renamed to ``dark-256color`` and ``light-256color``. |
| 641 |
Also, the ``ColoredStepReporter`` now tries to autodetect whether the terminal |
| 642 |
supports 8 or 256 colors, and defaults to the respective dark variant. |
| 643 |
The 256-color schemes now use purple instead of green for the ``run`` lines to |
| 644 |
make them easier distinguishable from pytest's "PASSED" output. |
| 645 |
- Network controlled relay providing GET/PUT based REST API |
| 646 |
- The QEMUDriver gains support for -bios and qcow2 images. |
| 647 |
- Support for audio input has been added. |
| 648 |
- Usage of sshpass for SSH password input has been replaced with the SSH_ASKPASS |
| 649 |
environment variable. |
| 650 |
- Labgrid supports the Linux Automation GmBH USB Mux now. |
| 651 |
- NetworkManager control support on the exporter has been added. This allows |
| 652 |
control of bluetooth and wifi connected to the exporter. |
| 653 |
- TFTP-/NFS-/HTTPProvider has been added, allowing easy staging of files for the |
| 654 |
DUT to later retrieve. |
| 655 |
- Improved LG_PROXY documentation in docs/usage.rst. |
| 656 |
- Exporter now checks /usr/sbin/ser2net for SerialPortExport |
| 657 |
- Support for Tasmota-flashed power outlets controlled via MQTT has been added. |
| 658 |
- The OpenOCDDriver has been reworked with new options and better output. |
| 659 |
- A script to synchronize places to an external description was added. |
| 660 |
- ShellDriver has regained the support to retrieve the active interface and IP |
| 661 |
addresses. |
| 662 |
- Labgrid has gained support for HTTP Video streams. |
| 663 |
- A settle time for the ShellDriver has been added to wait for chatty systems to |
| 664 |
settle before interacting with the shell. |
| 665 |
- Support for Macrosilicon HDMI to USB (MJPEG) adapters was added. |
| 666 |
- Console logfiles can now be created by the labgrid client command. |
| 667 |
- A ManualSwitchDriver has been added to prompt the user to flip a switch or set |
| 668 |
a jumper. |
| 669 |
- AndroidFastbootDriver now supports booting/flashing images preconfigured in |
| 670 |
the environment configuration. |
| 671 |
|
| 672 |
Bug fixes in 0.4.0 |
| 673 |
~~~~~~~~~~~~~~~~~~ |
| 674 |
- ``pytest --lg-log foobar`` now creates the folder ``foobar`` before trying to |
| 675 |
write the log into it, and error handling was improved so that all possible |
| 676 |
errors that can occur when opening the log file are reported to stderr. |
| 677 |
- gstreamer log messages are now suppressed when using labgrid-client video. |
| 678 |
- Travis CI has been dropped for Github Actions. |
| 679 |
|
| 680 |
Breaking changes in 0.4.0 |
| 681 |
~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 682 |
- ``EthernetInterface`` has been renamed to ``NetworkInterface``. |
| 683 |
|
| 684 |
Known issues in 0.4.0 |
| 685 |
~~~~~~~~~~~~~~~~~~~~~ |
| 686 |
- Some client commands return 0 even if the command failed. |
| 687 |
- Currently empty passwords are not well supported by the ShellDriver |
| 688 |
|
| 689 |
Release 0.3.0 (released Jan 22, 2021) |
| 690 |
------------------------------------- |
| 691 |
|
| 692 |
New Features in 0.3.0 |
| 693 |
~~~~~~~~~~~~~~~~~~~~~ |
| 694 |
|
| 695 |
- All `CommandProtocol` drivers support the poll_until_success method. |
| 696 |
- The new `FileDigitalOutputDriver` represents a digital signal with a file. |
| 697 |
- The new `GpioDigitalOutputDriver` controls the state of a GPIO via the sysfs interface. |
| 698 |
- Crossbar and autobahn have been updated to 19.3.3 and 19.3.5 respectively. |
| 699 |
- The InfoDriver was removed. The functions have been integrated into the |
| 700 |
labgridhelper library, please use the library for the old functionality. |
| 701 |
- labgrid-client ``write-image`` subcommand: labgrid client now has a |
| 702 |
``write-image`` command to write images onto block devices. |
| 703 |
- ``labgrid-client ssh`` now also uses port from NetworkService resource if |
| 704 |
available |
| 705 |
- The ``PLACE`` and ``STATE`` variables used by labgrid-client are replaced by |
| 706 |
``LG_PLACE`` and ``LG_STATE``, the old variables are still supported for the |
| 707 |
time being. |
| 708 |
- The SSHDriver's keyfile attribute is now specified relative to the config |
| 709 |
file just like the images are. |
| 710 |
- The ShellDriver's keyfile attribute is now specified relative to the config |
| 711 |
file just like the images are. |
| 712 |
- ``labgrid-client -P <PROXY>`` and the ``LG_PROXY`` environment variable can be |
| 713 |
used to access the coordinator and network resources via that SSH proxy host. |
| 714 |
Drivers which run commands via SSH to the exporter still connect directly, |
| 715 |
allowing custom configuration in the user's ``.ssh/config`` as needed. |
| 716 |
Note that not all drivers have been updated to use the ProxyManager yet. |
| 717 |
- Deditec RELAIS8 devices are now supported by the `DeditecRelaisDriver`. |
| 718 |
- The `RKUSBDriver` was added to support the rockchip serial download mode. |
| 719 |
- The `USBStorageDriver` gained support for BMAP. |
| 720 |
- Flashrom support added, by hard-wiring e.g. an exporter to the DUT, the ROM |
| 721 |
on the DUT can be written directly. The flashrom driver implements the |
| 722 |
bootstrap protocol. |
| 723 |
- AndroidFastbootDriver now supports 'getvar' and 'oem getenv' subcommands. |
| 724 |
- The coordinator now updates the resource acquired state at the exporter. |
| 725 |
Accordingly, the exporter now starts ser2net only when a resources is |
| 726 |
acquired. Furthermore, resource conflicts between places are now detected. |
| 727 |
- Labgrid now uses the `ProcessWrapper` for externally called processes. This |
| 728 |
should include output from these calls better inside the test runs. |
| 729 |
- The binding dictionary can now supports type name strings in addition to the |
| 730 |
types themselves, avoiding the need to import a specific protocol or driver |
| 731 |
in some cases. |
| 732 |
- The remote infrastructure gained support for place reservations, for further |
| 733 |
information check the section in the documentation. |
| 734 |
- The `SigrokDriver` gained support for the Manson HCS-2302, it allows enabling |
| 735 |
and disabling channels, measurement and setting the current and voltage limit. |
| 736 |
- ``labgrid-client write-image`` gained new arguments: ``--partition``, |
| 737 |
``--skip``, ``--seek``. |
| 738 |
- Support for Sentry PDUs has been added. |
| 739 |
- Strategies now implement a ``force`` method, to ``force`` a strategy state |
| 740 |
irrespective of the current state. |
| 741 |
- SSH Connections can now be proxied over the exporter, used by adding a device |
| 742 |
suffix to the `NetworkService` address. |
| 743 |
- UBootDriver now allows overriding of default boot command (``run bootcmd``) |
| 744 |
via new ``boot_command`` argument. |
| 745 |
- The config file supports per-target options, in addition to global options. |
| 746 |
- Add power driver to support GEMBIRD SiS-PM implementing SiSPMPowerDriver. |
| 747 |
- A cleanup of the cleanup functions was performed, labgrid should now clean up |
| 748 |
after itself and throws an error if the user needs to handle it himself. |
| 749 |
- ``labgrid-client`` now respects the ``LG_HOSTNAME`` and ``LG_USERNAME`` |
| 750 |
environment variables to set the hostname and username when accessing |
| 751 |
resources. |
| 752 |
- PyVISA support added, allowing to use PyVISA controlled test equipment from |
| 753 |
Labgrid. |
| 754 |
- ``labgrid-client write-image`` gained a new argument ``--mode`` to specify |
| 755 |
which tool should be used to write the image (either ``dd`` or ``bmaptool``) |
| 756 |
- Exporter configuration file ``exporter.yaml`` now allows use of environment |
| 757 |
variables. |
| 758 |
|
| 759 |
Breaking changes in 0.3.0 |
| 760 |
~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 761 |
- `ManagedFile` now saves the files in a different directory on the exporter. |
| 762 |
Previously ``/tmp`` was used, labgrid now uses ``/var/cache/labgrid``. |
| 763 |
A tmpfiles example configuration for systemd is provided in the ``/contrib`` |
| 764 |
directory. |
| 765 |
It is also highly recommended to enable ``fs.protected_regular=1`` and |
| 766 |
``fs.protected_fifos=1`` for kernels>=4.19. |
| 767 |
This requires user intervention after the upgrade to create the directory and |
| 768 |
setup the cleanup job. |
| 769 |
- ``@attr.s(cmp=False)`` is deprecated and all classes have been moved to |
| 770 |
``@attr.s(eq=False)``, this release requires attrs version 19.2.0 |
| 771 |
- Coordinator work dir is now set to the same dir as the crossbar configuration |
| 772 |
dir. Hence coordinator specific files like ``places.yaml`` and |
| 773 |
``resources.yaml`` are now also stored in the crossbar configuration folder. |
| 774 |
Previously it would use ``..``. |
| 775 |
- The ``HawkbitTestClient`` and ``USBStick`` classes have been removed |
| 776 |
- The original USBStorageDriver was removed, ``NetworkUSBStorageDriver`` was |
| 777 |
renamed to `USBStorageDriver`. |
| 778 |
A deprecated ``NetworkUSBStorageDriver`` exists temporarily for compatibility |
| 779 |
reasons. |
| 780 |
|
| 781 |
Known issues in 0.3.0 |
| 782 |
~~~~~~~~~~~~~~~~~~~~~ |
| 783 |
- There are several reports of ``sshpass`` used within the SSHDriver not working |
| 784 |
in call cases or only on the first connection. |
| 785 |
- Some client commands return 0 even if the command failed. |
| 786 |
- Currently empty passwords are not well supported by the ShellDriver |
| 787 |
|
| 788 |
Release 0.2.0 (released Jan 4, 2019) |
| 789 |
------------------------------------ |
| 790 |
|
| 791 |
New Features in 0.2.0 |
| 792 |
~~~~~~~~~~~~~~~~~~~~~ |
| 793 |
|
| 794 |
- A colored StepReporter was added and can be used with ``pytest |
| 795 |
--lg-colored-steps``. |
| 796 |
- ``labgrid-client`` can now use the last changed information to sort listed |
| 797 |
resources and places. |
| 798 |
- ``labgrid-client ssh`` now uses ip/user/password from NetworkService resource |
| 799 |
if available |
| 800 |
- The pytest plugin option ``--lg-log`` enables logging of the serial traffic |
| 801 |
into a file (see below). |
| 802 |
- The environement files can contain feature flags which can be used to control |
| 803 |
which tests are run in pytest. |
| 804 |
- ``LG_*`` variables from the OS environment can be used in the config file with |
| 805 |
the ``!template`` directive. |
| 806 |
- The new "managed file" support takes a local file and synchronizes it to a |
| 807 |
resource on a remote host. If the resource is not a `NetworkResource`, the |
| 808 |
local file is used instead. |
| 809 |
- ProxyManager: a class to automatically create ssh forwardings to proxy |
| 810 |
connections over the exporter |
| 811 |
- SSHManager: a global manager to multiplex connections to different exporters |
| 812 |
- The target now saves it's attached drivers, resources and protocols in a |
| 813 |
lookup table, avoiding the need of importing many Drivers and Protocols (see |
| 814 |
`Syntactic sugar for Targets`_) |
| 815 |
- When multiple Drivers implement the same Protocol, the best one can be |
| 816 |
selected using a priority (see below). |
| 817 |
- The new subcommand ``labgrid-client monitor`` shows resource or places |
| 818 |
changes as they happen, which is useful during development or debugging. |
| 819 |
- The environment yaml file can now list Python files (under the 'imports' key). |
| 820 |
They are imported before constructing the Targets, which simplifies using |
| 821 |
custom Resources, Drivers or Strategies. |
| 822 |
- The pytest plugin now stores metadata about the environment yaml file in the |
| 823 |
junit XML output. |
| 824 |
- The ``labgrid-client`` tool now understands a ``--state`` option to |
| 825 |
transition to the provided state using a :any:`Strategy`. |
| 826 |
This requires an environment yaml file with a :any:`RemotePlace` Resources and |
| 827 |
matching Drivers. |
| 828 |
- Resource matches for places configured in the coordinator can now have a |
| 829 |
name, allowing multiple resources with the same class. |
| 830 |
- The new `Target.__getitem__` method makes writing using protocols less verbose. |
| 831 |
- Experimental: The labgrid-autoinstall tool was added (see below). |
| 832 |
|
| 833 |
New and Updated Drivers |
| 834 |
~~~~~~~~~~~~~~~~~~~~~~~ |
| 835 |
|
| 836 |
- The new `DigitalOutputResetDriver` adapts a driver implementing the |
| 837 |
DigitalOutputProtocol to the ResetProtocol. |
| 838 |
- The new `ModbusCoilDriver` support outputs on a ModbusTCP device. |
| 839 |
- The new ``NetworkUSBStorageDriver`` allows writing to remote USB storage |
| 840 |
devices (such as SD cards or memory sticks connected to a mux). |
| 841 |
- The new `QEMUDriver` runs a system image in QEmu and implements the |
| 842 |
:any:`ConsoleProtocol` and :any:`PowerProtocol`. |
| 843 |
This allows using labgrid without any real hardware. |
| 844 |
- The new `QuartusHPSDriver` controls the "Quartus Prime Programmer and Tools" |
| 845 |
to flash a target's QSPI. |
| 846 |
- The new `SerialPortDigitalOutputDriver` controls the state of a GPIO using |
| 847 |
the control lines of a serial port. |
| 848 |
- The new `SigrokDriver` uses a (local or remote) device supported by sigrok to |
| 849 |
record samples. |
| 850 |
- The new `SmallUBootDriver` supports the extremely limited U-Boot found in |
| 851 |
cheap WiFi routers. |
| 852 |
- The new `USBSDMuxDriver` controls a Pengutronix USB-SD-Mux device. |
| 853 |
- The new `USBTMCDriver` can fetch measurements and screenshots from the |
| 854 |
"Keysight DSOX2000 series" and the "Tektronix TDS 2000 series". |
| 855 |
- The new `USBVideoDriver` can stream video from a remote H.264 |
| 856 |
UVC (USB Video Class) camera using gstreamer over SSH. Currently, |
| 857 |
configuration for the "Logitech HD Pro Webcam C920" exists. |
| 858 |
- The new `XenaDriver` allows interacting with Xena network testing equipment. |
| 859 |
- The new `YKUSHPowerDriver` and `USBPowerDriver` support software-controlled |
| 860 |
USB hubs. |
| 861 |
- The bootloader drivers now have a ``reset`` method. |
| 862 |
- The `BareboxDriver`'s boot string is now configurable, which allows it to work |
| 863 |
with the ``quiet`` Linux boot parameter. |
| 864 |
- The `IMXUSBLoader` now recognizes more USB IDs. |
| 865 |
- The `OpenOCDDriver` is now more flexible with loading configuration files. |
| 866 |
- The `NetworkPowerDriver` now additionally supports: |
| 867 |
|
| 868 |
- 24 port "Gude Expert Power Control 8080" |
| 869 |
- 8 port "Gude Expert Power Control 8316" |
| 870 |
- NETIO 4 models (via telnet) |
| 871 |
- a simple REST interface |
| 872 |
|
| 873 |
- The `SerialDriver` now supports using plain TCP instead of RFC 2217, which is |
| 874 |
needed from some console servers. |
| 875 |
- The `ShellDriver` has been improved: |
| 876 |
|
| 877 |
- It supports configuring the various timeouts used during the login process. |
| 878 |
- It can use xmodem to transfer file from and to the target. |
| 879 |
|
| 880 |
Incompatible Changes |
| 881 |
~~~~~~~~~~~~~~~~~~~~ |
| 882 |
|
| 883 |
- When using the coordinator, it must be upgrade together with the clients |
| 884 |
because of the newly introduce match names. |
| 885 |
- Resources and Drivers now need to be created with an explicit name |
| 886 |
parameter. |
| 887 |
It can be ``None`` to keep the old behaviour. |
| 888 |
See below for details. |
| 889 |
- Classes derived from :any:`Resource` or :any:`Driver` now need to use |
| 890 |
``@attr.s(cmp=False)`` instead of ``@attr.s`` because of a change in the |
| 891 |
attrs module version 17.1.0. |
| 892 |
|
| 893 |
Syntactic sugar for Targets |
| 894 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 895 |
|
| 896 |
Targets are now able to retrieve requested drivers, resources or protocols by |
| 897 |
name instead of by class. |
| 898 |
This allows removing many imports, e.g. |
| 899 |
|
| 900 |
:: |
| 901 |
|
| 902 |
from labgrid.driver import ShellDriver |
| 903 |
|
| 904 |
shell = target.get_driver(ShellDriver) |
| 905 |
|
| 906 |
becomes |
| 907 |
|
| 908 |
:: |
| 909 |
|
| 910 |
shell = target.get_driver("ShellDriver") |
| 911 |
|
| 912 |
Also take a look at the examples, they have been ported to the new syntax as well. |
| 913 |
|
| 914 |
Multiple Driver Instances |
| 915 |
~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 916 |
|
| 917 |
For some Protocols, it is useful to allow multiple instances. |
| 918 |
|
| 919 |
DigitalOutputProtocol: |
| 920 |
A board may have two jumpers to control the boot mode in addition to a reset |
| 921 |
GPIO. |
| 922 |
Previously, it was not possible to use these on a single target. |
| 923 |
|
| 924 |
ConsoleProtocol: |
| 925 |
Some boards have multiple console interfaces or expose a login prompt via a |
| 926 |
USB serial gadget. |
| 927 |
|
| 928 |
PowerProtocol: |
| 929 |
In some cases, multiple power ports need to be controlled for one Target. |
| 930 |
|
| 931 |
To support these use cases, Resources and Drivers must be created with a |
| 932 |
name parameter. |
| 933 |
When updating your code to this version, you can either simply set the name to |
| 934 |
``None`` to keep the previous behaviour. |
| 935 |
Alternatively, pass a string as the name. |
| 936 |
|
| 937 |
Old: |
| 938 |
|
| 939 |
.. code-block:: python |
| 940 |
|
| 941 |
>>> t = Target("MyTarget") |
| 942 |
>>> SerialPort(t) |
| 943 |
SerialPort(target=Target(name='MyTarget', env=None), state=<BindingState.bound: 1>, avail=True, port=None, speed=115200) |
| 944 |
>>> SerialDriver(t) |
| 945 |
SerialDriver(target=Target(name='MyTarget', env=None), state=<BindingState.bound: 1>, txdelay=0.0) |
| 946 |
|
| 947 |
New (with name=None): |
| 948 |
|
| 949 |
.. code-block:: python |
| 950 |
|
| 951 |
>>> t = Target("MyTarget") |
| 952 |
>>> SerialPort(t, None) |
| 953 |
SerialPort(target=Target(name='MyTarget', env=None), name=None, state=<BindingState.bound: 1>, avail=True, port=None, speed=115200) |
| 954 |
>>> SerialDriver(t, None) |
| 955 |
SerialDriver(target=Target(name='MyTarget', env=None), name=None, state=<BindingState.bound: 1>, txdelay=0.0) |
| 956 |
|
| 957 |
New (with real names): |
| 958 |
|
| 959 |
.. code-block:: python |
| 960 |
|
| 961 |
>>> t = Target("MyTarget") |
| 962 |
>>> SerialPort(t, "MyPort") |
| 963 |
SerialPort(target=Target(name='MyTarget', env=None), name='MyPort', state=<BindingState.bound: 1>, avail=True, port=None, speed=115200) |
| 964 |
>>> SerialDriver(t, "MyDriver") |
| 965 |
SerialDriver(target=Target(name='MyTarget', env=None), name='MyDriver', state=<BindingState.bound: 1>, txdelay=0.0) |
| 966 |
|
| 967 |
Priorities |
| 968 |
~~~~~~~~~~ |
| 969 |
|
| 970 |
Each driver supports a priorities class variable. |
| 971 |
This allows drivers which implement the same protocol to add a priority option |
| 972 |
to each of their protocols. |
| 973 |
This way a `NetworkPowerDriver` can implement the `ResetProtocol`, but if another |
| 974 |
`ResetProtocol` driver with a higher protocol is available, it will be selected |
| 975 |
instead. |
| 976 |
See the documentation for details. |
| 977 |
|
| 978 |
ConsoleLogging Reporter |
| 979 |
~~~~~~~~~~~~~~~~~~~~~~~ |
| 980 |
|
| 981 |
The ConsoleLoggingReporter can be used with the pytest plugin or the library. |
| 982 |
It records the Data send from a DUT to the computer running labgrid. |
| 983 |
The logfile contains a header with the name of the device from the environment |
| 984 |
configuration and a timestamp. |
| 985 |
|
| 986 |
When using the library, the reporter can be started with:: |
| 987 |
|
| 988 |
from labgrid.consoleloggingreporter import ConsoleLoggingReporter |
| 989 |
|
| 990 |
ConsoleLoggingReporter.start(".") |
| 991 |
|
| 992 |
where "." is the output directory. |
| 993 |
|
| 994 |
The pytest plugin accepts the ``--lg-log`` commandline option, either with or |
| 995 |
without an output path. |
| 996 |
|
| 997 |
Auto-Installer Tool |
| 998 |
~~~~~~~~~~~~~~~~~~~ |
| 999 |
|
| 1000 |
To simplify using labgrid for provisioning several boards in parallel, the |
| 1001 |
``labgrid-autoinstall`` tool was added. |
| 1002 |
It reads a YAML file defining several targets and a Python script to be run for |
| 1003 |
each board. |
| 1004 |
Interally, it spawns a child process for each target, which waits until a matching |
| 1005 |
resource becomes available and then executes the script. |
| 1006 |
|
| 1007 |
For example, this makes it simple to load a bootloader via the |
| 1008 |
:any:`BootstrapProtocol`, use the :any:`AndroidFastbootDriver` to upload a |
| 1009 |
kernel with initramfs and then write the target's eMMC over a USB Mass Storage |
| 1010 |
gadget. |
| 1011 |
|
| 1012 |
.. note:: |
| 1013 |
``labgrid-autoinstall`` is still experimental and no documentation has been written. |
| 1014 |
|
| 1015 |
Contributions from: Ahmad Fatoum, Bastian Krause, Björn Lässig, Chris Fiege, Enrico Joerns, Esben Haabendal, Felix Lampe, Florian Scherf, Georg Hofmann, Jan Lübbe, Jan Remmet, Johannes Nau, Kasper Revsbech, Kjeld Flarup, Laurentiu Palcu, Oleksij Rempel, Roland Hieber, Rouven Czerwinski, Stanley Phoong Cheong Kwan, Steffen Trumtrar, Tobi Gschwendtner, Vincent Prince |
| 1016 |
|
| 1017 |
Release 0.1.0 (released May 11, 2017) |
| 1018 |
------------------------------------- |
| 1019 |
|
| 1020 |
This is the initial release of labgrid. |