- May 01, 2025
-
-
Bot authored
# [1.0.0-alpha.2](https://git.gitlab.arm.com/bazel/rules_labgrid/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2025-05-01) ### Bug Fixes * **//labgrid/run:** make `env` a `Mapping[str, str]` ([584a8b51](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/584a8b5191864eb85eb185db916438d3b8b18775)) * add bazel 8 support ([7633740e](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/7633740eceb38a19266d1ae8f91660ccb2a63cf8)) * **config_toolchain:** Move defaults to `labgrid_config` ([c7fb769f](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/c7fb769f7ccc6cb4875f3a4d304803fe6473d3da)) * **config_toolchain:** set `LG_ENV` in `labgrid_config` ([10c79055](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/10c790552caf5ed839616b4ded63245f3defd967)) * **executor:** handle `None` in runfile resolution ([cc433aed](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/cc433aedf7b870ad2d6ae382c6c593eab9d2de59)) * get separator from external label ([558795ce](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/558795ce1df3dbc5b812050f7580b6047575d305)) * **LocalhostDriver:** unset runfile env vars ([140ee257](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/140ee2576af8457df4ca806f667d37cb3f01e0a1)) * **LocalhostDriver:** use clean env ([182e89d0](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/182e89d024bf6b9cdec9ba712d7cd9e76804e0f3)) * missing QEMU_IMG runfiles ([a6cf02b7](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/a6cf02b7749b6d78c808b23757bbe9f7c27d4722)) * rename `configurable` to `ssh` ([17b9c485](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/17b9c485315dd66909cb33b9b83e5fc4a3e7f088)) * **run:** directory structure on device matches external Bazel rules ([f3cc52e8](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/f3cc52e886a1d8006a8f68a0d2b60d94fd6a9ef1)) * **runner:** check runfiles exist before transfer ([a3b8bd88](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/a3b8bd8810c0f080f1ae4f5f404100ea4746847b)) * **runner:** respect Bazel test timeout ([f7dacaee](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/f7dacaee3907af631cfe7283ff1c48678c04ccf2)) * **runner:** unset runfile env vars more granularly ([9f087d52](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/9f087d52e1aeda52cdeb0c511f8a2dea5c76337b)) * ssh strategy port default ([824e0e6c](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/824e0e6c1286b04eaca6d009fa4d3535469b60c2)) * switch to rules_license for licensing ([2868b569](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/2868b5698c5b1555932508d1ea724bbc5026a166)) * **test:** only transfer required runfiles ([012bd7fe](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/012bd7fed71de715b4256a67046a66d028dd3db9)) * **test:** respect `env` from `src` ([3ec99b69](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/3ec99b69ce98938c2a3d4ed684fb10a0ff08b0fe)) ### Code Refactoring * move base manager to manager folder ([6fca21f7](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/6fca21f7e28aa4621702700a235836f5ff681f7f)) * rename `crossbar` to `coordinator` ([f79e8691](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/f79e869185e1f5a665a13726368d09803555a9e0)) * rename coordinator to harness ([5b0694c7](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/5b0694c79f19172b55bc59b7112be51ed463a978)) * rename the mock folder local ([86d88703](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/86d88703ac1833bd5e51a88d60b54626fb28025b)) ### Features * **//labgrid:** support multiple Python versions ([285cb301](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/285cb301b2de65f81b184d9db31846ba37620cd7)) * add `labgrid_binary` ([973677c0](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/973677c0b5590757caaefbe3c360980ddb1fc115)) * add `ssh` device platforms ([253e34a9](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/253e34a9797f41e445526f7a28d39d91601314d1)) * add a local gRPC coordinator harness ([cbb6e539](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/cbb6e5393378032a478cfc1dd2728ebe8bcf62a5)) * add new acquire and reserve managers ([582e87e0](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/582e87e03deea8359655cb93a1a02676b5ffa678)) * add the labgrid-coordinator binary ([683f0db5](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/683f0db5a0b3f3d6a56e83fd2add2791d76066f9)) * **config:** add `place_tags` attribute ([b3bd8d1d](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/b3bd8d1db9aebb2833acf843a96061e287832109)) * configurable device toolchain ([050e1ac4](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/050e1ac40fcbc7b2c62ae3e08e8d31182a5c58bb)) * extract `runner` library ([b44481f5](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/b44481f5d1b6ce19a5cf5873153416718906d095)) * make the local harness work standalone ([c53bcb4a](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/c53bcb4aa93a69e9dd74eb3b4ce701ec30b934d3)) * produce stdout from runner execution ([b91cf8f5](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/b91cf8f5f240cfe3cae804199abec76d803efe41)) * **runner:** handle testing env vars ([54bc63b7](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/54bc63b77b4a2735e81fa4db1277c7610cd90903)) * **runner:** support test sharding ([fb6730f2](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/fb6730f27170e0a79361f38f87ae1277c425a2c4)) * **run:** support transferring files to device ([d31befff](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/d31befffd462219cd0542532647ce6f58dbd86fb)) * **test:** add `data` attribute ([7af30cb0](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/7af30cb04fafda8c5761146249f736db26c88841)) * **test:** allow files in `src` ([190474eb](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/190474eb637591d5e91d60e991d945ccf6d1e19c)) * **test:** support `$(location)` substitution in `env` ([4394abde](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/4394abde65abc0f87aeab0268a2f2a1e2627905f)) * **test:** support env attribute ([6e1d044c](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/6e1d044cd986ce26667def146eac7c29d8522778)) * use `[@pre-commit](https://git.gitlab.arm.com/pre-commit)` ([517d37ab](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/517d37abe0020de48bba60d6abe2658043ec47d8)) ### Performance Improvements * **qemu:** improve boot time for amd64 guest on arm64 host ([3a0c9af8](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/3a0c9af86f1e26d70422d3e6a1ca0011a7b50069)) * remove SMP system for different host-guest archs ([a479d96b](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/a479d96bfceb984d8324683c2d69649d999a56da)) ### Reverts * **flag/device:** temporarily remove testing targets ([d99ff65e](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/d99ff65e590eda465ef0c9a36c6976deca4b9b46)) * temporarily remove `arm64` QEMU tests ([c123242e](https://git.gitlab.arm.com/bazel/rules_labgrid/commit/c123242ec7b1966054c451df7b6156fa309bbf8a)) ### BREAKING CHANGES * `crossbar` renamed to `coordinator` * `coordinator` renamed to `harness` * `mock` folder renamed to `local` * `@rules_labgrid//labgrid/constraint/device:configurable` has been renamed to `@rules_labgrid//labgrid/constraint/device:ssh` * manager moved and renamed from executor to manager
-
Alex Tercete authored
-
Alex Tercete authored
-
Alex Tercete authored
Previously, this was done in `labgrid_test`. Doing it in the runner is more flexible (Python insted of Starlark), and also paves the way for custom runner support in `labgrid_test`.
-
Alex Tercete authored
We're trying to simulate a remote device, so we shouldn't inherit env vars from the Bazel process as it can lead to false positives in tests.
-
- Apr 30, 2025
-
-
document how to make use of the ssh platforms and `labgrid_config_toolchain`.
-
Alex Tercete authored
-
Alex Tercete authored
-
- Apr 29, 2025
-
-
Luke Hackwell authored
-
Luke Hackwell authored
-
- Apr 28, 2025
-
-
-
-
-
Tomer Shterenberg authored
-
- Apr 24, 2025
-
-
Luke Hackwell authored
-
Luke Hackwell authored
-
- Apr 23, 2025
-
-
Alex Tercete authored
This makes it possible to use pre-built test binaries.
-
- Apr 16, 2025
-
-
Alex Tercete authored
This allows saving the remote path of a file provided under `data` in an environment variable for later use within `src`. This works for simple cases, but it doesn't support advanced scenarios as path mapping isn't robust yet.
-
Alex Tercete authored
By adding the `data` files to the existing runfiles directory of `src`, they are automatically transferred to the device.
-
the local harness was only usable as a context manager. this commit adds a new target: `bazelisk run //bazel/labgrid/local:harness` this makes the harness available as a standalone program, which sets up a dummy place and tags for it to be used by the labgrid client. the harness chooses a free port on the machine and outputs its url to stdout. the program is terminated using keyboard interrupt.
-
make use of the local harness to run tests against the acquire and reserve context managers. use the new target: `bazelisk test //bazel/labgrid/manager:test`
-
- Apr 15, 2025
-
-
-
the coordinator/harness/exporter packages have been refactored to support the new gRPC coordinator approach that is now being taken in the `Labgrid` project. The handling of the subprocess calls has been simplified and there are a number of changes to support the new output and parameters that can be provided to the coordinator and exporter. The harness test has also been tweaked to allow it to test the functionality correctly. large portions of the crossbar related functionality is also removed as it is no longer necessary along with the additional requirements and python pip related code.
-
crossbar is no longer supported by `Labgrid` and a different coordinator implementation is going to be used so this commit renames the crossbar package to make way for an easier refactoring to a different coordinator. BREAKING CHANGE: `crossbar` renamed to `coordinator`
-
the coordinator/crossbar combination of names was a bit misleading as crossbar was the coordinator and in fact the coordinator package was a harness that combined the local coordinator and exporter as a context manager to be used in other code. This refactor makes that distinction more obvious and also paves the way for the renaming of crossbar to coordinator as crossbar is no longer supported in `Labgrid` BREAKING CHANGE: `coordinator` renamed to `harness`
-
-
the mock folder has now been renamed to local as the coordinator, exporter and client code is actually ran as opposed to having that functionality being mocked. BREAKING CHANGE: `mock` folder renamed to `local`
-
-
- Apr 14, 2025
-
-
Luke Hackwell authored
-
Alex Tercete authored
-
Alex Tercete authored
-
- Apr 11, 2025
-
-
Alex Tercete authored
Recent changes to `labgrid_test` has caused `stardoc` to start failing due to missing `bzl_library` targets in newly added dependencies.
-
Alex Tercete authored
-
Alex Tercete authored
This delegates most responsibilities to the rule the macro is wrapping, which is what we want.
-
Alex Tercete authored
-
Alex Tercete authored
This is the recommended way to implement macros, and makes `labgrid_config` easier to use in isolation.
-
-
-
- Apr 09, 2025
-
-
Alex Tercete authored
-
Alex Tercete authored
BREAKING CHANGE: `@rules_labgrid//labgrid/constraint/device:configurable` has been renamed to `@rules_labgrid//labgrid/constraint/device:ssh`
-